Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use of Acronyms in LaTeX

Tags:

latex

acronym

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.

like image 397
dedalo Avatar asked Jan 17 '10 16:01

dedalo


1 Answers

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}
like image 59
Will Robertson Avatar answered Nov 15 '22 11:11

Will Robertson