简单 LaTeX 术语表示例
我试图在我的 LaTeX 文档中包含一个简单的术语表,
我已经在 google 上搜索过类似的内容,但从未运行过。
我想使用一个或多个术语表。
- 文中怎么写呢?
- 如何打印?
- 在哪个位置执行什么?
I'm trying to include a simple glossary to my LaTeX document,
I already searched for something like that on google, but never got it running.
I would like to use glossary or glossaries.
- how to write it in the text?
- how to print it?
- what to execute on which position?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于初学者来说,有一个不错的博客: LaTeX 术语表和首字母缩略词列表
这是一个示例:
There is a nice blog for beginners: LaTeX glossary and list of acronyms
Here is an example:
嗯,有一个
glossaries
包< /a> CTAN。阅读 pdf 文档 。检查您的安装中是否已经有它,如果没有安装它,并将
\usepackage{glossaries}
放在文档的序言中,您就可以使用它了。看起来您在序言中需要
\usepackage{glossaries}
和\makeglossaries
,以及一些\newglossaryentry
和\newacronym
调用(我并不清楚它们是否只出现在序言中或者可以出现在文档文本中)。最后,您将需要在文本中进行一次或多次\printglossary
调用。使用\gsl
将参数上的术语表条目与其出现的页面连接起来。处理该文件必须包括对 makeglossaries 的调用,然后至少再调用一次 Latex。
除了文档中提到的示例之外,还有 一个 Stack Overflow 问题,其中包含一个最小文件使用
词汇表
。您可能对首字母缩略词词汇表特别感兴趣。Well, there is a
glossaries
package on CTAN. Read the pdf documentation.Check if you already have it in your installation, if not install it, and put
\usepackage{glossaries}
in the preamble of you document and it will be available to you.It looks like you need
\usepackage{glossaries}
and\makeglossaries
in the preamble, and some number of\newglossaryentry
and\newacronym
calls (it is not immediately clear to me if these only go in the premble or can go in the document text). Finally, you will need one or more\printglossary
calls in the text. Use\gsl
to connect glossary entries on the argument with the pages they occur on.Processing the file will have to include a call to
makeglossaries
followed by at least one more invokation of latex.In addition to the samples mentioned in the documentation there is a Stack Overflow question which includes a minimal file making use of
glossaries
. You may be particularly interested in the acronym glossary.