mhchem in acronym

Formelsatz für Mathematik, Naturwissenschaften und Technik


abgehterpeter
Forum-Newbie
Forum-Newbie
Beiträge: 2
Registriert: Do 21. Mai 2015, 22:53

mhchem in acronym

Beitrag von abgehterpeter »

Weis jemand wie man den "\ce" befehl im "\acro" befehl verwenden kann?
Lieben Gruß
Christian

Benutzeravatar
cgnieder
Forum-Meister
Forum-Meister
Beiträge: 730
Registriert: Fr 22. Okt 2010, 18:37
Wohnort: Herrenberg
Kontaktdaten:

Beitrag 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
Clemens
Paketauthor

Antworten