如果我有以下代码来处理在 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[]
为每个词汇表重复该命令。