LaTeX使用nomencl制作术语表

您所在的位置:网站首页 latex术语表 LaTeX使用nomencl制作术语表

LaTeX使用nomencl制作术语表

2024-07-16 07:22| 来源: 网络整理| 查看: 265

文章目录 一、代码示例二、编译使用步骤三、一些修改四、展示

一、代码示例 \documentclass{article} \usepackage[nocfg]{nomencl} \makenomenclature \begin{document} \section*{Main equations} \begin{equation} a =\frac{N}{A} \end{equation}% \nomenclature{$a$}{The number of angels per unit area\nomrefeq}% \nomenclature{$N$}{The number of angels per needle point\nomrefpage}% \nomenclature{$A$}{The area of the needle point}% The equation $\sigma = m a$% \nomenclature{$\sigma$}{The total mass of angels per unit area\nomrefeqpage}% \nomenclature{$m$}{The mass of one angel} follows easily. \eqdeclaration{32} \printnomenclature \end{document} 二、编译使用步骤

使用 \makenomenclature ,这个命令会扫描 tex 文件里面的 nomenclature{symbols}{description} 命令然后把它扫描成一系列 nomenclatureentry 并保存在一个 .nlo 文件中,随后我们需要在命令行中输入一个 makeindex filename.nlo -s nomencl.ist filename.nls 命令,这个命令会将 nlo 文件里的 一些列的 entry 扫描成 item 然后再次编译之后就能运行出想要的结果。

选中文件夹 shift + 鼠标右键 -> 在此处打开Powershell窗口 (需提前设置,可百度) latex/pdflatex filename makeindex filename.nlo -s nomencl.ist filenmae.nls

最后在TextStudio中编译。

三、一些修改 \setlength{\nomitemsep}{0.2cm} %设置术语之间的间距 \printnomenclature[2cm] 设置术语与描述之间的距离 \renewcommand{\nomentryend}{.} %设置打印出术语的结尾的字符 \renewcommand{\eqdeclaration}[1]{见公式:(#1)}%设置打印见公式的样式 \renewcommand{\pagedeclaration}[1]{见第 (#1) 页}%设置打印页的样式 \renewcommand{\nomname}{术语表} %修改术语表标题的名称。 四、展示

在这里插入图片描述参考连接



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3