原帖地址:http://blog.sina.com.cn/s/blog_5e16f1770100g5sl.html
以前,帮助一同学输入LaTeX源文件的时候才知道,LaTeX不能输入罗马数字,搞得我好几天都在研究和寻找,最后,终于搞定,相信大家如果使用罗马数字,肯定不会再有问题了。 如下解决方案:
\uppercase\expandafter{\romannumeral20}
将输入大写罗马数字20,
\romannumeral20
将输入小写罗马数字20。
演示结果图:
演示代码: \documentclass{article} \usepackage{CJK} \usepackage{times} \pagestyle{empty} \setcounter{page}{6} \setlength\textwidth{59.0pt} \usepackage{colortbl} \begin{CJK*}{GBK}{song} \begin{document} \begin{tabular} {>{\columncolor{blue}\color{white}\bfseries}cc|c|} \rowcolor[gray]{0.8} \color{black} 小写罗马数字 & \bfseries 大写罗马数字&\bfseries 对应阿拉伯数字\\[2pt] \romannumeral1& \uppercase\expandafter{\romannumeral1} &1\\ \romannumeral2& \uppercase\expandafter{\romannumeral2} &2\\ \romannumeral3& \uppercase\expandafter{\romannumeral3} &3\\ \romannumeral4& \uppercase\expandafter{\romannumeral4} &4\\ \romannumeral5& \uppercase\expandafter{\romannumeral5} &5\\ \vdots& \vdots &\vdots\\ \cellcolor[gray]{0.8}\color{black}\romannumeral10& \uppercase\expandafter{\romannumeral10}&10\\ \hline \end{tabular} \paragraph{} \newpage \end{CJK*} \end{document}
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有