我关注了线并尝试运行一个简单的代码:
\documentclass{scrreprt}
\usepackage{longtable}
\usepackage[acronym]{glossaries}
% abbreviations:
\newacronym{ny}{NY}{New York}
\newacronym{la}{LA}{Los Angeles}
% nomenclature:
\newglossaryentry{angelsperarea}{
name = $a$ ,
description = The number of angels per unit area,
}
\newglossaryentry{numofangels}{
name = $N$ ,
description = The number of angels per needle point
}
\makeglossaries
\begin{document}
\gls{ny}, \gls{la} are abbreviations whereas
\gls{angelsperarea}, \gls{numofangels} are part of the nomenclature
\printglossary[type=\acronymtype,title=Abbreviations]
\printglossary[title=Nomenclature]
\end{document}
如果我使用下面的文档类,上面的代码段可以正确显示首字母缩略词article
:
\documentclass{article}
scrreprt
但如果文档类别如下,则不会显示任何输出:
\documentclass{scrreprt}
文本版本:
TeX 3.14159265 (TeX Live 2015/Debian)
kpathsea version 6.2.1