我希望实现一个简单的词汇表。我有以下例子:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{glossaries}
\makeglossaries
\newglossaryentry{latex}
{
name=latex,
description={Is a mark up language specially suited
for scientific documents}
}
\newglossaryentry{maths}
{
name=mathematics,
description={Mathematics is what mathematicians do}
}
\title{How to create a glossary}
\author{ }
\date{ }
\begin{document}
\maketitle
The \Gls{latex} typesetting markup language is specially suitable
for documents that include \gls{maths}.
\clearpage
\printglossaries
\end{document}
我在Mac上使用TexPad。但是\printglossaries命令不起作用,我没有收到错误信息,也没有打印出词汇表。有人知道为什么吗?
这是我得到的.pdf文件:GlossariesTest.pdf