tags:

views:

1161

answers:

2

Hi,

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.

A: 

Hi

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.

Regards

Mark

High Performance Mark
Thanks for your answer. I'll try defining the acronym before using it, however, when I use the bibliography package I define the bibliography at the end of the document and I'm able to use it anywhere.
dedalo
Hi tried defining the acronym before using it, but I still don't get it to be printed. I don't get any error message.
dedalo
Hmm, I'm out of ideas, it worked for me, defining the acronym first. You did run LaTeX twice on the document didn't you ? I guess you have to do that with the bibliography package (??) as you do when building a ToC or index.
High Performance Mark
What do you mean when you say "...run LaTeX twice on the document..."?
dedalo
+3  A: 

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}
Will Robertson