I want to write hydroxyl radicals quite frequently, so I thought of making a small macro. But with the macro, the text is not processed as chemical compounds in the mhchem package. Consider the following MWE:
\documentclass{standalone}
\usepackage[version=3]{mhchem}
\usepackage{amsmath}
\newcommand\ohrad{OH^{.}}
\begin{document}
This is with the macro \ce{\ohrad}, this is without the macro \ce{OH^{.}}
\end{document}
and the output


\cestarts scanning token by token and what it finds is not a letter to be typeset upright, but a control sequence and it does nothing with it; but eventually TeX expands it (in math mode). – egreg Oct 07 '13 at 20:10\newcommand\ohrad{\cf{OH^{.}}}. Macros reveal\ceinnards: math mode... butmhchem's formulae are nestable – cgnieder Oct 07 '13 at 20:10