Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Using the package acronym, I get a error defining acronyms with \acrodef or \newacro instead of \acro:

! LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                        
l.11 \end{acronym}
?

It is possible to ignore this error, but I need a compiling file for submission at a conference.

This is an example, triggering that error:

\documentclass{scrartcl}
\usepackage[printonlyused]{acronym}
\begin{document}
This is an example; \ac{IHE}.\\
And \ac{IHE} again!

\begin{acronym}[IHE]
\acrodef{IHE}{\emph{Integrating the Health Enterprise}}
\end{acronym}
\end{document}
share|improve this question

1 Answer 1

up vote 4 down vote accepted

According to section 2.3 of the acronym manual, \acrodef should be used "[i]f one does not want an acronym list to be produced at all" (p. 4). Inside an acronym environment simply use the \acro command.

\documentclass{scrartcl}
\usepackage[printonlyused]{acronym}
\begin{document}
This is an example; \ac{IHE}.\\
And \ac{IHE} again!

\begin{acronym}[IHE]
\acro{IHE}{\emph{Integrating the Health Enterprise}}
\end{acronym}
\end{document}

enter image description here

\acrodef works outside the acronym environment:

\documentclass{scrartcl}
\usepackage[printonlyused]{acronym}
\acrodef{IHE}{\emph{Integrating the Health Enterprise}}
\begin{document}
This is an example; \ac{IHE}.\\
And \ac{IHE} again!
\end{document}

enter image description here

share|improve this answer
    
I intended not to produce the list at all. I didn't notice that I can use \arcodef outside the acronym environment. Looking around on this site, I found the option nolist for that package, too. Sadly it's not that good described in the manual; it appears in the implementation section … –  Johannes Dec 4 '11 at 21:08
    
@Johannes: If my answer was helpful, you can thank me by upvoting it (with the upward pointing arrow to the left of it; you need 15 reputation points before you can upvote) and accepting it (by clicking on the checkmark). –  lockstep Dec 4 '11 at 21:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.