Seite 1 von 1

mhchem in acronym

Verfasst: Do 21. Mai 2015, 23:21
von abgehterpeter
Weis jemand wie man den "\ce" befehl im "\acro" befehl verwenden kann?
Lieben Gruß
Christian

Verfasst: So 30. Aug 2015, 20:00
von cgnieder
Kurze Antwort: Ja. :p

Längere Antwort: mit dem optionalen Argument, das in der Doku beschrieben ist
If the acronym requires problematic or complicate TeX stuff (font commands, . . . ), then this code can be given in the optional argument short name . The first argument acronym is then a simpler string to identify the acronym.
\documentclass{article}

\usepackage{acronym,mhchem}

\begin{document}

\begin{acronym}
  \acro{H2O}[\ce{H2O}]{Wasser}
\end{acronym}

\ac{H2O}
 
\end{document}
Grüße