我的 MWE 是,
\documentclass{article}
\usepackage{glossaries}
\makeglossaries
\newglossaryentry{latex}
{
name=latex,
description={Is a markup language specially suited for scientific documents}
}
\begin{document}
should show below, but doesnt.
\printglossaries
\end{document}
生成以下 PDF 文档,其中包含文本(“应该在下面显示,但没有。”),但没有词汇表。词汇表包已安装/重新安装。我正在使用 WinEdt11 和 PDFTeXify。
答案1
令人惊讶的是,当我在正文中引用词汇表条目时,它仍然不起作用:
\documentclass{article}
\usepackage{glossaries}
\makeglossaries
\newglossaryentry{latex}
{
name=latex,
description={Is a markup language especially suited for scientific documents}
}
\begin{document}
\printglossaries
You should cite the glossary entry: \gls{latex} % Reference the glossary entry
\end{document}
但是,当我添加选项时glossaries-extra
,automake
您会得到您想要的内容:
\documentclass{article}
\usepackage{glossaries}
\usepackage[nonumberlist,automake]{glossaries-extra} % nonumberlist avoids numbering the lsit
\makeglossaries
\newglossaryentry{latex}
{
name=latex,
description={Is a markup language especially suited for scientific documents}
}
\begin{document}
You should cite the glossary entry: \gls{latex} % Reference the glossary entry
\printglossaries
\end{document}
一个更加可定制的工作示例是:
\documentclass{article}
\usepackage[nogroupskip,nonumberlist,symbols]{glossaries}
\usepackage[automake]{glossaries-extra}
\makeglossaries
\newglossaryentry{latex}
{
name=latex,
description={Is a markup language especially suited for scientific documents}
}
\begin{document}
You should cite the glossary entry: \gls{latex} % Reference the glossary entry
\printglossary[style=long,nonumberlist,title={List of abbreviations and acronyms\vspace{-0.3cm}}]
\pagebreak
\end{document}