12

我正在尝试在我的 LaTeX 文档中包含一个简单的词汇表,

我已经在谷歌上搜索过类似的东西,但从来没有运行过。

我想使用词汇表或词汇表。

  1. 怎么写在正文里?
  2. 怎么打印?
  3. 在哪个位置执行什么?
4

2 回答 2

8

好吧, CTAN上有一个glossaries。阅读pdf 文档

检查您是否已经在安装中安装了它,如果没有安装它,并将其放入\usepackage{glossaries}文档的序言中,它将可供您使用。


看起来您需要\usepackage{glossaries}and\makeglossaries在序言中,以及一些\newglossaryentryand\newacronym调用(我不清楚这些仅在序言中还是可以在文档文本中)。\printglossary最后,您将需要在文本中调用一个或多个调用。用于\gsl将论点上的词汇表条目与它们出现的页面联系起来。

处理文件必须包括一个调用,makeglossaries然后至少再调用一次乳胶。

除了文档中提到的示例之外,还有一个 Stack Overflow 问题,其中包括使用glossaries. 您可能对首字母缩写词表特别感兴趣。

于 2010-03-11T17:10:04.897 回答
6

有一个适合初学者的不错的博客: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}
于 2015-04-30T08:25:21.163 回答