\reaction{H2 + OH* <=> H2O + H*}
I want to cross-reference an equation that I've introduced with the reaction-environment from the mhchem package. How can I do it? Hope for your answers.

Sonntag
\reaction{H2 + OH* <=> H2O + H*}
\documentclass{article} \usepackage[version=3]{mhchem} \begin{document} \reaction{H2 + OH* <=> H2O + H*} \label{Water} See reaction~\ref{Water} \end{document}
\documentclass{article} \usepackage { chemexec } \usepackage[version=4,arrows=pgf-filled]{mhchem} \begin{document} \reaction{O2 + H* <=> OH* + O*} \end{document}
\documentclass{article} \usepackage { chemexec } \usepackage[version=4,arrows=pgf-filled]{mhchem} \begin{document} \reaction{H2 + OH* <=> H2O + H* \label{Water}} See reaction~\ref{Water} \end{document}
chemexec
has been my first attempt of writing a package ever. I knew little to nothing about writing a package and it is an obsolete package. Don't use it but use mhchem or chemmacros or chemformula instead. Using chemexec
is at your own risk and I won't provide any support to any conflicts due to its usage.
\documentclass{article} \usepackage{chemmacros} \usepackage{showframe} \begin{document} \listofreactions \begin{reaction} H2 + O* <=> OH* + H* \end{reaction} \renewtagform{reaction}[R ]{\{}{\}} \begin{reactions} Ca + O &-> CaO \\ H2 + O* &<=> OH* + H* \end{reactions} \end{document}
Users browsing this forum: No registered users and 1 guest