未打印缩略词

未打印缩略词

这是我的主要文件:

\documentclass{article}
\usepackage[margin=2.5cm]{geometry}
\usepackage[acronym]{glossaries}
\input{acronymes.tex}
\input{glossary.tex}

\makenoidxglossaries

\begin{document}
\sffamily
 The  typesetting markup language is specially suitable 
for documents that include \gls{maths}. are 
rendered properly an easily once one gets used to the commands.

Given a set of numbers, there are elementary methods to compute 
its \acrshort{gcd}, 

    \printglossary[type=\acronymtype]
    \printnoidxglossary[nonumberlist]
    \printglossary


\end{document}

acronymes.tex 的内容为:

\newacronym{gcd}{GCD}{Greatest Common Divisor}

还有 glossary.tex

\newglossaryentry{maths}
{
        name=maths,
        description={A mathematical expression}
}

这是基于这个例子

但对我来说,没有印刷缩写词:在此处输入图片描述

我做错了什么?我已经尝试过了:未显示缩写词列表

谢谢您的帮助

答案1

您正在使用,\makenoidxglossaries因此您需要使用\printnoidxglossary

这意味着当您使用时\printglossary什么都不会发生,因此您只会得到一个词汇表(中间命令)。

这是您修复的代码

\documentclass{article}
\usepackage[margin=2.5cm]{geometry}
\usepackage[acronym]{glossaries}
\input{acronymes.tex}
\input{glossary.tex}

\makenoidxglossaries

\begin{document}
\sffamily
 The  typesetting markup language is specially suitable 
for documents that include \gls{maths}. are 
rendered properly an easily once one gets used to the commands.

Given a set of numbers, there are elementary methods to compute 
its \acrshort{gcd}, 

    \printnoidxglossary[type=\acronymtype]
    \printnoidxglossary[nonumberlist]
    %\printglossary <-This does nothing



\end{document}

相关内容