我正在尝试在我的LaTeX文档中包含一个简单的词汇表,
我已经在google上搜索了类似的内容,但从未运行过.
我想使用词汇表或词汇表.
好吧,CTAN上有一个glossaries包.阅读pdf文档.
检查您的安装是否已经安装,如果没有安装,并将其放入\usepackage{glossaries}文档的序言中,您将可以使用它.
它看起来像你需要\usepackage{glossaries}和\makeglossaries前言,以及一些\newglossaryentry和\newacronym电话(如果这些只是在预设中或者可以在文档文本中进行,我不会立即清楚).最后,您需要\printglossary在文本中进行一次或多次调用.使用\gsl术语表条目与他们发生页面上的参数进行连接.
处理文件必须包括一个调用,makeglossaries然后至少再调用一次latex.
除了文档中提到的示例之外,还有一个Stack Overflow问题,其中包含一个使用的最小文件glossaries.您可能对首字母缩略词词汇表特别感兴趣.
有一个适合初学者的不错的博客:LaTeX 词汇表和首字母缩略词列表
下面是一个例子:
\documentclass{article}
% Load the package
\usepackage{glossaries}
% Generate the glossary
**\makeglossaries**
\begin{document}
%Term definitions
\newglossaryentry{utc}{name=UTC, description={Coordinated Universal Time}}
\newglossaryentry{adt}{name=ADT, description={Atlantic Daylight Time}}
\newglossaryentry{est}{name=EST, description={Eastern Standard Time}}
% Use the terms
\gls{utc} is 3 hours behind \gls{adt} and 10 hours ahead of \gls{est}.
%Print the glossary
\printglossaries
\end{document}
Run Code Online (Sandbox Code Playgroud)