我使用的是基于memoir
文档类别的样式。在其他具有其他文档类别的文档中(例如article
),我使用了glossaries
包来写出首字母缩略词、使用\newacronym
和\acrlong{}
等。但是,当我尝试复制相同的词汇表文件以在基于memoir
缩写列表的文档中使用时,不会写出。\acrshort{}
但是,正在运行的文本中的首字母缩略词将打印出来而不会出现任何错误。有没有办法“强制”打印出首字母缩略词列表?
编辑:MWE:
\documentclass[a4wide,11pt]{memoir}
\usepackage[acronym,toc]{glossaries}
\usepackage{glossary-mcols}
\makeglossaries
\newacronym{li}{LI}{Lead Installer}
\newacronym{pm}{PM}{Project Manager}
\newacronym{nks}{NKS}{New Karolinska Solna}
\begin{document}
\tableofcontents
\listoftables
\printglossary
\printglossary[type=\acronymtype, title=List of Abbreviations,style=index]
Above this text there should be a list of acronyms.
\section{First section}
The \acrfull{li} is responsible of notifying the \acrlong{pm} of any damages or missing equipment within two days of delivery. \acrshort{nks} for example.
\begin{table}[ht]
\centering
\begin{tabular}{c|c}
a &b \\
c & d
\end{tabular}
\caption{Test table}
\label{tab:my_label}
\end{table}
\end{document}
我还收到以下警告,我相信这些警告至少可以部分解释该问题:
(/usr/local/texlive/2015/texmf-dist/tex/latex/glossaries/base/glossaries-compat
ible-307.sty
Package: glossaries-compatible-307 2015/11/30 v4.20 (NLCT)
)
\gls@level=\count170
\@gls@tmpb=\toks34
\gls@tmplen=\skip189
Package glossaries Warning: Overriding \printglossary on input line 5207.
Package glossaries Warning: Overriding `theglossary' environment on input line
5848.