繁体   English   中英

无法在 latex 中使用 \printglossary 显示词汇表

[英]Unable to show the glossary with \printglossary in latex

我得到了一个 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}

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

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

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

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

\usepackage[automake]{glossaries-extra}

然后清除缓存。

我在 Overleaf 上遇到了这个问题。 问题是我将项目作为 zip 上传,并且 Overleaf 在根目录中创建了一个额外的嵌套目录,其中包含我的项目名称。 一切正常,但词汇表不行。

为了解决这个问题,我只是通过拖动每个文件将所有文件移动到根目录。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM