为什么文档不能打印首字母缩略词和词汇表

为什么文档不能打印首字母缩略词和词汇表

我已将词汇表和首字母缩略词保存在Glossay.tex文件中,并使用 将其包含在 latex 主论文文档中\input{Appendices/Glossary.tex}。我已遵循 overleaf 中的模板,但文档未显示首字母缩略词列表和词汇表

\usepackage[acronym]{glossaries} % for Glossary and definitions
\makeglossaries

\input{Appendices/Glossary.tex}

\begin{document}
.....
....
...
%% ----------------------------------------------------------------
\clearpage

\printglossary[type=\acronymtype]
%\input{Appendices/Glossary}
\printglossary

% Now begin the Appendices, including them as separate files

\addtocontents{toc}{\vspace{2em}} % Add a gap in the Contents, for aesthetics

\appendix % Cue to tell LaTeX that the following 'chapters' are Appendices

%\input{Appendices/AppendixA}   % Appendix Title
%\input{Appendices/Glossary.tex}
%\input{Appendices/AppendixB} % Appendix Title


\addtocontents{toc}{\vspace{2em}}  % Add a gap in the Contents, for aesthetics
\backmatter
\label{Bibliography}
\lhead{\emph{Bibliography}}  % Change the left side page header to "Bibliography"
\bibliographystyle{unsrtnat}  % Use the "unsrtnat" BibTeX style for formatting the Bibliography
\bibliography{mybib}  % The references (bibliography) information are stored in the file named "Bibliography.bib"


\end{document}  

可能是什么原因?

文件中的条目Glossary.tex如下所示:

\newacronym{svm}{SVM}{support vector machine}
\newacronym{crf}{CRFs}{conditional random fields}

相关内容