![更改缩写列表中一个条目的一个字母的格式](https://linux22.com/image/344994/%E6%9B%B4%E6%94%B9%E7%BC%A9%E5%86%99%E5%88%97%E8%A1%A8%E4%B8%AD%E4%B8%80%E4%B8%AA%E6%9D%A1%E7%9B%AE%E7%9A%84%E4%B8%80%E4%B8%AA%E5%AD%97%E6%AF%8D%E7%9A%84%E6%A0%BC%E5%BC%8F.png)
我使用该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