我正在尝试在我的 LaTeX 文档中包含一个简单的术语表,
我已经在谷歌上搜索过类似的东西,但从未运行过。
我想使用一个或多个术语表。
- 正文中如何写?
- 如何打印?
- 在哪个位置执行什么?
最佳答案
有一个适合初学者的不错的博客:LaTeX glossary and list of acronyms
这是一个例子:
\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}
关于latex - 简单 LaTeX 术语表示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2426835/