ich möchte ein Acronym in einem newcommand nutzen.
\newcommand{foobar}{\ac{foo}~bar}
Beim erstmaligen setzen von \foobar sollte jedoch die lange Version von \ac{foo} erscheinen.
Warum klappt das nicht?
\newcommand{foobar}{\ac{foo}~bar}
\documentclass{article} \newcommand{foobar}{\ac{foo}~bar} \begin{document} \end{document}
! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.3 \newcommand{foobar}{\ac{foo}~bar}
\documentclass{article} \usepackage{acronym} \newacro{foo}{die lange foo-Beschreibung} \newcommand{\foobar}{\ac{foo}~bar} \begin{document} \foobar \foobar \end{document}