模板
\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等