提问于:
浏览数:
3452
各位老师好!我想想下图一样生成术语表(分类为变量、常数、集合等等)s

但是目前只找到直接生成术语表的方法,如图2所示。

(各方面编译什么的都正常,只是想再优化一下)
这是对应图2的代码
请教各位!
```
\printnomenclature%放在想输出术语表的地方,一般是段首
\section*{Main equations}
\begin{equation}
a=\frac{N}{A}
\end{equation}%
\nomenclature[set]{$a$}{The number of angels per unit area}%
\nomenclature[set]{$N$}{The number of angels per needle point}%
\nomenclature[2]{$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.
```
3 回答
0
提供 MWE 谢谢 [https://sikouhjw.gitee.io/2020/03/08/2020-03-08-ask-questions/](https://sikouhjw.gitee.io/2020/03/08/2020-03-08-ask-questions/)
0
自问自答[Latex术语表中nomencl分类 Parameters Variables等等](https://www.cnblogs.com/inexcel/p/12574654.html)
效果图

直接用:
```
\documentclass{article}
\usepackage{nomencl}
\usepackage{ifthen}
\renewcommand{\nompreamble}{}% code after main title
\renewcommand{\nomgroup}[1]{%
\item[\textbf{%
\ifthenelse{\equal{#1}{M}}{Parameters}{}%
\ifthenelse{\equal{#1}{N}}{Variables}{}
0
乍一看,我以为要做索引呢……
一般如果内容不多,我就当是无线表格一样处理了。
你的回答
请登录后回答
你的回答将会帮助更多人,请务必认真回答问题。