前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【latex】LaTeX如何输入大小写罗马数字?

【latex】LaTeX如何输入大小写罗马数字?

作者头像
蛮三刀酱
发布2019-09-10 20:02:03
3K0
发布2019-09-10 20:02:03
举报

原帖地址:http://blog.sina.com.cn/s/blog_5e16f1770100g5sl.html

 以前,帮助一同学输入LaTeX源文件的时候才知道,LaTeX不能输入罗马数字,搞得我好几天都在研究和寻找,最后,终于搞定,相信大家如果使用罗马数字,肯定不会再有问题了。 如下解决方案:

\uppercase\expandafter{\romannumeral20}

将输入大写罗马数字20,

\romannumeral20

将输入小写罗马数字20。

演示结果图:

LaTeX技巧100:LaTeX如何输入大小写罗马数字?
LaTeX技巧100:LaTeX如何输入大小写罗马数字?

演示代码: \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}

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2016年06月19日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档