![在 LaTeX 中的缩写/首字母缩略词列表中添加特定标题](https://linux22.com/image/296551/%E5%9C%A8%20LaTeX%20%E4%B8%AD%E7%9A%84%E7%BC%A9%E5%86%99%2F%E9%A6%96%E5%AD%97%E6%AF%8D%E7%BC%A9%E7%95%A5%E8%AF%8D%E5%88%97%E8%A1%A8%E4%B8%AD%E6%B7%BB%E5%8A%A0%E7%89%B9%E5%AE%9A%E6%A0%87%E9%A2%98.png)
如果我有以下代码来处理在 LaTeX 中生成首字母缩略词列表
\usepackage[acronym,footnote,nonumberlist]{glossaries} % Makes a list of abbreviations.
\usepackage{glossary-mcols}
\include{Glossary}
\makeglossaries
\glossarystyle{mcolindex}
正在使用以下方法打印:
\glsaddall
\printglossaries
我在首字母缩略词列表上方获得了标题Acronyms
。我是否可以为列表指定自己的标题?
因为我希望列表出现在其他“...列表”部分之后,如下所示:
List of Figures
List of Tables
List of Abbreviations
以下哪项比以下更一致:
List of Figures
List of Tables
Acronyms
如果我使用:
% Print glossary.
\glsaddall
\printglossary[title={List of abbreviations}]
然后报告中就不会打印任何词汇表,并且日志中会有以下内容:
Command Line: makeindex.exe -s "Main.ist" -t "Main.glg" -o "Main.gls" "Main.glo"
Startup Folder: C:\Users\Mr Morgan\Documents\College\PhD\Thesis
This is makeindex.exe, version 2.14 [02-Oct-2002] (kpathsea + Thai support).
Scanning style file C:/Users/Mr Morgan/Documents/College/PhD/Thesis/Main.ist...........................done (27 attributes redefined, 0 ignored).
Scanning input file Main.glo...done (0 entries accepted, 0 rejected).
Nothing written in Main.gls.
Transcript written in Main.glg.
Command Line: makeindex.exe -s "Main.ist" -t "Main.alg" -o "Main.acr" "Main.acn"
Startup Folder: C:\Users\Mr Morgan\Documents\College\PhD\Thesis
This is makeindex.exe, version 2.14 [02-Oct-2002] (kpathsea + Thai support).
Scanning style file C:/Users/Mr Morgan/Documents/College/PhD/Thesis/Main.ist...........................done (27 attributes redefined, 0 ignored).
Scanning input file Main.acn....done (13 entries accepted, 0 rejected).
Sorting entries....done (43 comparisons).
Generating output file Main.acr....done (38 lines written, 0 warnings).
Output written in Main.acr.
Transcript written in Main.alg.
答案1
如果您只使用acronym
包选项,正如我从上面的代码中假设的那样,使用
\printglossary[type=acronym,title={List of Abbreviations}]
代替
\printglossaries
应该可以解决问题。
如果您使用多个词汇表,则必须\printglossary[]
为每个词汇表重复该命令。