Use of Acronyms in LaTeX

dedalo picture dedalo · Jan 17, 2010 · Viewed 17.4k times · Source

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.

Answer

Will Robertson picture Will Robertson · Jan 18, 2010

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}