简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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