LaTeX术语表Nomenclature

模板

\documentclass{article}
\usepackage{nomencl}%所用宏包
\makenomenclature%必须加上,放在\begin{document}之前

\begin{document}
\printnomenclature%放在想输出术语表的地方,一般是段首
\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.
\end{document}

编译

  • 1.pdflatex直接运行,生成pdf文档。
    可以发现文件夹中出了一个后缀为.nlo的文件

  • 2.在对应文件夹下打开cmd命令窗口(Shift+鼠标右键),并输入下面命令,回车

    makeindex .nlo -s nomencl.ist -o .nls
    记得把换成自己tex文件的名称 如,makeindex Template.nlo -s nomencl.ist -o Template.nls
    一定要把<>去掉!!!

  • 3.pdflatex直接运行,就可以看到pdf相应位置出现了术语表

想要了解更多关于Latex术语表中nomencl分类(subgroup)为 参数Parameters 变量Variables等

posted @ 2020-03-26 14:14  inexcel  阅读(7364)  评论(0编辑  收藏  举报