"Missing number, treated as zero." in LaTex [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this questionI want to get the Roman number开发者_Python百科 of 2. So I use $\Roman{2}$
inside text. But then I got an error
Missing number, treated as zero.
How can I fix it?
Thanks and regards!
I would suggest to use that snippet:
\makeatletter
\newcommand{\rmnum}[1]{\romannumeral #1}
\newcommand{\Rmnum}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother
now you can call:
\Rmnum{2} % II
\rmnum{2} % ii
I think you mean \Roman
not \Rome
. Anyway, \Roman
prints the value of a counter as a roman numeral, so you can't use it with "2".
Short answer - use \romannumeral 2
.
Long answer - define commands as described here.
精彩评论