nomencl宏包
提问
参考How to achieve nomenclature entries like: symbol, Description, Dimension and unit, etc?
主要copy这一篇customize vertical space of entries and subgroup names in nomenclature
效果图
直接用:
\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}{}% add more groups as needed
}]%
}
\makenomenclature
\begin{document}
\nomenclature[M]{M$_1$}{big-M parameters}
\nomenclature[N]{$t$}{temperature}
\nomenclature[N]{$t1$}{temperature111}
\nomenclature[M]{$t2$}{temperature121}
\printnomenclature
\end{document}