我得到了一个Latex项目作为模板,我决定在上面添加一个词汇表,然而,\printglossary
不起作用。我可以添加和使用不同的条目,所以我想词汇表的创建不是问题。
我使用的是Overleaf,如果我尝试一个全新的项目,只有词汇表(代码如下),\printglossary
就可以正常工作。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[acronym, toc]{glossaries}
\makeglossaries
\input{Bibliocosas/glossary.tex}
\begin{document}
\tableofcontents
\section{First Section}
The \Gls{latex} typesetting markup language is specially suitable for documents that include \gls{maths}. \Glspl{formula} are rendered properly an easily once one gets used to the commands.
\clearpage
\section{Second Section}
\vspace{5mm}
Given a set of numbers, there are elementary methods to compute its \acrlong{gcd}, which is abbreviated \acrshort{gcd}. This process is similar to that used for the \acrfull{lcm}.
\clearpage
\printglossary
\clearpage
\printglossary[type=\acronymtype]
\end{document}
我在给定的项目中使用章节和章节,这是问题的原因吗?
发布于 2021-04-03 04:30:00
使用\makenoidxglossaries
和\printnoidxglossaries
似乎可以解决这个问题。
我以为我已经试过了,但我想我错了。然而,我仍然不知道为什么前面的代码在给定的项目中不起作用。
https://stackoverflow.com/questions/66924808
复制相似问题