LaTeX增加术语表(符号解释)Nomenclatures

比如在论文写作中我们想要在手稿中增加以上图片类似的术语解释,可以使用以下步骤:

1. 在导言区加入:

\usepackage{nomencl}

\makenomenclature

2.在你想放置术语表的地方加入:

\printnomenclature
\nomenclature{\(c\)}{Speed of light in a vacuum}
\nomenclature{\(h\)}{Planck constant} 
\nomenclature{\(c\)}{Speed of light in a vacuum}
\nomenclature{\(h\)}{Planck constant}
\nomenclature{\(c\)}{Speed of light in a vacuum}
\nomenclature{\(h\)}{Planck constant}

注:\printnomenclature是把术语表打印出来,而\nomenclature的使用方法就是\nomenclature{你的符号}{你的解释}

但是这个时候编译pdf并无任何效果!

3.编译后在文章根目录会发现出现.nlo的文件

4.打开cmd命令窗口(快捷键:win+R),使用cmd命令切换到文章的目录下(具体搜索cmd命令教程)

5.然后输入命令:makeindex AE.nlo -s nomencl.ist -o AE.nls (AE需要替换你文件的名字)

6.重新编译LateX发现已生成术语表

7.导言区加入命令:\usepackage{tcolorbox}

8.把之前的用以下命令套起来

\begin{tcolorbox}[colback=white,colframe=black]
        之前的命令(第二步的那些命令)
\end{tcolorbox}

9.重新编译,大功告成!

其他操作1:如果单栏环境中使用双列术语表怎么办呢?

(1)在导言区加入命令:\usepackage{multicol}

(2)然后使用以下命令把\printnomenclature套起来即可(\printnomenclature是把术语表打印出来,之前提过)。此外,2可以改成3,4等等,改成几就是几列

\begin{multicols}{2}
\printnomenclature
\end{multicols}

其他操作2:术语表中的符号是乱排的没有按照列出的顺序排列怎么办?

(1)删除已生成的部分文件(不要乱删,按修改日期排一下顺序,删除最新生成的,不要删.tex文件)

(2)然后在之前的命令前加序号,如:

\nomenclature[001]{\(c\)}{Speed of light in a vacuum}
\nomenclature[002]{\(h\)}{Planck constant} 
\nomenclature[003]{\(c\)}{Speed of light in a vacuum}
\nomenclature[004]{\(h\)}{Planck constant}
\nomenclature[005]{\(c\)}{Speed of light in a vacuum}
\nomenclature[006]{\(h\)}{Planck constant}

(3)编译tex文件

(4)执行第5步(cmd命令那一步)

(5)再编译tex文件即可

注:每次对术语表的更改都需要重新编译手稿来生成新的.nlo文件,然后进行第5步(不然术语表不会改变)

  • 13
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值