开发者

"Missing number, treated as zero." in LaTex [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 9 years ago.

Improve this question

I 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜