微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决无法在乳胶中使用 \printglossary 显示词汇表

我收到了一个 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 似乎可以解决问题。

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。