using roman letter in Latex

(Original Post: http://nw360.blogspot.com/2007/09/roman-numerals-in-latex.html)

Ok, we have to admit that it is not easy to input roman numerals in Latex. There is still a way.
In the preamble, i.e. before \begin{document}, define

\makeatletter
\newcommand{\rmnum}[1]{\romannumeral #1}
\newcommand{\Rmnum}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother

Then in the document part, \rmnum{num} is used to input the roman numeral of num,\Rmnum is for the uppercase. If you prefer to use other commands, just change the red part in the definition part.

Advertisements

About cc112358

I love the world
This entry was posted in latex. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s