本篇博文参考自http://blog.sina.com.cn/s/blog_5e16f1770100gdyg.html
LaTeX不直接支持显示大小写罗马数字,但是可以通过自定义命令来实现。
定义新的命令\rmnum和\Rmnum,用来显示大小写罗马数字。用法:\rmnum{数字},\Rmnum{数字}。
\makeatletter
\newcommand{\rmnum}[1]{\romannumeral #1}
\newcommand{\Rmnum}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother
在文章的导言区加入上面四行,然后就可以在正文中使用命令\rmnum{数字}和\Rmnum{数字}来分别显示大小写罗马数字。