简体   繁体   English

在LaTeX中使用缩略语

[英]Use of Acronyms in LaTeX

I'm trying to add a list of all acronyms I use at the end of my document. 我正在尝试添加我在文档末尾使用的所有首字母缩略词的列表。

This is an example of what I'm trying: 这是我正在尝试的一个例子:

\begin{thebibliography}{mel}

\bibitem[Sigurdur]{mel}
Sigurdur Sigurdsson,\emph{'Mel Frequency Cepstral Coefficients: An Evaluation of     Robustness of MP3 Encoded Music'}, Informatics and Mathematical Modelling, Technical   University of Denmark

\end{thebibliography}

\begin{acronym}{H2O}
\acro{H2O}[$H_2O$]{water}
\end{acronym}

I want to print this page after the Bibliography page. 我想在参考书目页面后打印此页面。

At the beginning of the document I'm adding the following line: 在文档的开头我添加以下行:

\usepackage[printonlyused,withpage]{acronym}

and within the document I try \\ac{H2O} , but I didn't get it to print the acronym H2O, nor the acronym list. 在文档中我尝试\\ac{H2O} ,但我没有得到它来打印首字母缩略词H2O,也不是首字母缩略词列表。

Does anyone know what am I missing? 有谁知道我错过了什么?

Thanks. 谢谢。

Your example doesn't compile correctly (you should have square brackets for the argument to the acronym environment); 您的示例无法正确编译(您应该为首字母缩略词环境的参数设置方括号); here's a minimal example that should help to get you started: 这是一个应该帮助您入门的最小示例:

\documentclass{article}
\usepackage[printonlyused,withpage]{acronym}
\begin{document}
Acronym: \ac{H2O} \\
Again: \ac{H2O}
\begin{acronym}[H2O]
\acro{H2O}[$\mathrm{H_2O}$]{water}
\end{acronym}
\end{document}

I'm not familiar with the acronyms package but I suspect that your problem is this: you have defined the acronym at the end of the document and tried to use it prior to its definition. 我不熟悉首字母缩略词包但我怀疑你的问题是这样的:你已经定义了文档末尾的首字母缩略词,并尝试在定义之前使用它。

I haven't even got a good guess about why your acronym list was not printed. 我甚至没有很好地猜测为什么你的首字母缩略词列表没有打印出来。

If this is no use and you decide to post again, include the error messages that LaTeX generated -- or tell us that it didn't generate any. 如果这没用,并且您决定再次发布,请包含LaTeX生成的错误消息 - 或者告诉我们它没有生成任何错误消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM