[Tex/LaTex] Displaying a Carbonate Ion with mhchem

chemistrymhchem

I want to write out the formula for the aqueous carbonate ion using the mhchem package. If I write out CO3^{2-}, it looks the way it should be. (See image.)

Ionic Equation - Normal

However, I want to write out: CO3^{2-}_{(aq)}. The 2- charge gets shifted along to the right of the (aq) state symbol. (See image.)

Ionic Equation - Incorrect

Is there any means of fixing this?

Best Answer

\documentclass[a4paper,12pt]{article}
\usepackage{mhchem}

\begin{document}
 \ce{CO3^{2-}_{\rlap{(aq)}}\; ->}
\end{document}

\rlap suppresses the width of the content, so you need a \; to get the correct spacing.

Related Question