答案1
这是带有的符号符号表的示例glossaries
,通过应用用户定义的词汇表样式删除页码。
说\glsaddall
一次提供所有符号!
\documentclass{book}
\usepackage[acronym,nomain]{glossaries} % use glossaries-package
\setlength{\glsdescwidth}{15cm}
\newglossary[slg]{symbolslist}{syi}{syg}{Symbolslist} % create add. symbolslist
\makeglossaries % activate glossaries-package
% ==== EXEMPLARY ENTRY FOR SYMBOLS LIST =========================================
\newglossaryentry{symb:Pi}{name=\ensuremath{\pi},
description={Geometrical value},
type=symbolslist}
\newglossaryentry{height}{name=\ensuremath{h},
description={Height of tower},
type=symbolslist}
\newglossaryentry{energyconsump}{name=\ensuremath{P},
description={Energy consumption},
type=symbolslist}
\newglossarystyle{notationlong}{%
\setglossarystyle{long}% base this style on the list style
\renewenvironment{theglossary}{% Change the table type --> 3 columns
\begin{longtable}{lp{0.6\glsdescwidth}}}%
{\end{longtable}}%
\renewcommand*{\glossaryheader}{% Change the table header
\bfseries Sign & \bfseries Description \\
\hline
\endhead}
\renewcommand*{\glossentry}[2]{% Change the displayed items
\glstarget{##1}{\glossentryname{##1}} %
& \glossentrydesc{##1}
\tabularnewline
}
}
\usepackage{blindtext}
\begin{document}
\printglossary[type=symbolslist,style=notationlong] % list of symbols
\blindtext
\glsaddall
\end{document}