多语言展示
当前在线:274今日阅读:162今日分享:23

Latex Nomenclature 包添加术语表方法

在采用Latex撰写学术论文时,有时需要调用Nomenclature包进行术语表的生成。
工具/原料
1

TeXLive2014

2

Sublime

方法/步骤
1

添加示例文件或者将以下内容复制到空白的Tex文件中。\documentclass{article}\usepackage{nomencl}\makenomenclature\begin{document}\section*{Main equations}\begin{equation}a=frac{N}{A}\end{equation}%\nomenclature{$a$}{The number of angels per unit area}%\nomenclature{$N$}{The number of angels per needle point}%\nomenclature{$A$}{The area of the needle point}%The equation $sigma = m a$%\nomenclature{$sigma$}{The total mass of angels per unit area}%\nomenclature{$m$}{The mass of one angel}follows easily.\printnomenclature\end{document}

2

在示例文件夹下打开命令窗口(Shift+鼠标右键),并输入下面命令,回车latex .tex会生成以下文件。

3

继续在当前的命令窗口输入下面命令,回车makeindex .nlo -s nomencl.ist -o .nls便会在文件目录下多出nls文件

4

再次对文档进行编译,仍在命令行中输入下面命令latex .tex回得到下图中所示的文档。

注意事项
1

上述指令为latex的命令,可以在sublime中CTRL+B实现;

2

如果nomenclature有更新,第3步的工作要重新进行;

3

在遇到特殊问题时,将latex编译产生的文件全部删除,并重新生成是个不错的解决方案~

推荐信息