I am using a self defined command to typeset isotopes with charges. It is as follows:
\newcommand{\elem}[3]{\ensuremath{{\vphantom{#2}}#1\mathrm{#2}#3}}
Example:
\elem{^{16}_{8}}{O}{^{2-}_{2}}
What I would like to achieve, is that the sub- and superscript on the left side are aligned to the O. The right sub- and superscript are of course aligned to the O by default. Does anyone have a (preferrably simple) solution?
tensorpackage. (maybe not duplicate, but the answer for someone not dealing with chemical notation.) – barbara beeton Jun 19 '16 at 15:44