我使用该acronym
包来制作缩写列表。其中一个条目需要有一个斜体字母。
\documentclass{article}
\usepackage[acronym,toc, nogroupskip]{glossaries}
\begin{document}
\printglossary[type=\acronymtype,style=long3col, title=\centerline{LIST OF ABBREVIATIONS}, toctitle=List of Abbreviations, nonumberlist=true]
\newacronym{test}{TEST}{\textit{italicPart} normal-format part}
\end{document}
我将非常感激您的帮助。谢谢。
答案1
该glossaries
包需要相当特定的命令调用序列才能工作。以下是一个修改后的示例:
% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
% we must invoke pdflatex, then makeglossaries, then pdflatex again.
% arara is not required for this but convenient.
\documentclass{article}
\usepackage[acronym,toc,nogroupskip]{glossaries}
\makeglossaries % like makeindex
% entries should be defined in the preamble
\newacronym{test}{TEST}{\textit{italicPart} normal-format part}
\newacronym{foo}{FOO}{fried omelette obsession}
\begin{document}
% but defining entries is not enough - we also need to add them
% to the output
get the entry into the glossary: \glsadd{test}
if we omit this, as we do with the defined entry FOO, we won't see it in the output.
\printglossary[type=\acronymtype,style=long3col, title=\centerline{LIST OF ABBREVIATIONS}, toctitle=List of Abbreviations, nonumberlist=true]
\end{document}
该包功能强大,但也很复杂。有时,手动将缩写词写入环境或表格glossaries
中可能更直接。description