无法在乳胶中使用 \printglossary 显示术语表

anm*_*lea 10 latex overleaf

我得到了一个 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}
Run Code Online (Sandbox Code Playgroud)

我在给定项目中使用章节而不是部分,这是问题的原因吗?

anm*_*lea 11

使用\makenoidxglossariesand\printnoidxglossaries似乎显然可以解决问题。

我以为我已经尝试过了,但我想我错了。但是,我仍然不知道为什么前面的代码在给定的项目中不起作用。

  • 很高兴我在 2 小时的测试后发现了这一点,离线编译了我的术语表和首字母缩略词列表,但不在 Overleaf 中。您的回答确保它们确实在 Overleaf 中编译!另外,“\printnoidxglossary[type=\acronymtype,title=Acronyms]”和“\printnoidxglossary[title=Glossary]”允许我为每个列表指定单独的标题。(而不是用一个命令创建两个列表)。 (3认同)

Sun*_*GGX 9

至于我,我有同样的问题,但我在使用词汇表包后使用词汇表额外包修复了它。

\usepackage[automake]{glossaries-extra}
Run Code Online (Sandbox Code Playgroud)

然后清除缓存。