答案1
你可以使用包nomencl
。这里有一个小的使用示例:
\documentclass{article}
\usepackage{amssymb}
\usepackage[stdsubgroups,nocfg]{nomencl}
\renewcommand{\nomname}{Index of Notation}
\renewcommand{\nomgroup}[1]{%
\ifthenelse{\equal{#1}{A}}{%
\item[\textbf{Analysis}]}{%
\ifthenelse{\equal{#1}{K}}{%
\item[\textbf{Sets}]}{%
\ifthenelse{\equal{#1}{P}}{%
\item[\textbf{Probability/measure theory}]}{%
\ifthenelse{\equal{#1}{X}}{%
\item[\textbf{Spaces of functions}]}{%
{}}}}}}
\usepackage{setspace}
\makenomenclature
\begin{document}
\nomenclature[ainf]{$\inf \varnothing$}{$\inf \varnothing=+\infty$}%
\nomenclature[aint]{$\lfloor x \rfloor$}{integer part of $x$}%
\nomenclature[at]{$x^\top$}{transpose of the vector $x$}%
\nomenclature[ka]{$A^c$}{complement of the set $A$}%
\nomenclature[kint]{int $A$}{interior of the set $A$}%
\nomenclature[kcl]{cl $A$}{closure of the set $A$}%
\nomenclature[pd]{$\sim$}{distributed as}%
\nomenclature[pDir]{$\delta_x$}{Dirac measure at $x$}%
\nomenclature[xcm]{$C(M)$}{space of continuous functions\\$f\colon M \rightarrow\mathbb{R}$}%
\onehalfspacing
\printnomenclature
\end{document}
请参阅手册以了解使用方法,特别是第节2.9.1 高级子群(但在最新版本 5.2 的手册的示例中似乎有一个拼写错误,因为{R}
和{G}
必须分别替换为{V}
和{C}
。)