How do I achieve a proper uppercase including chemical formulas typeset with mhchem, i.e. everything but chemical formulas are capital letters?



\RequirePackage[paperwidth=70mm, paperheight=20mm, left=10pt, top=20pt]{geometry}%


\MakeUppercase{Preparation of \ce{Mn3Ga}.}


incorrect example output

which produces MN and GA instead of Mn and Ga, respectively. Please note that I do not want to use $...$ (cp. this question) and \MakeTextUppercase from the textcase package, but the mhchem package and \ce{...}.


The textcase package provides a version of uppercase that is more careful about these things


\usepackage[paperwidth=70mm, paperheight=20mm, left=10pt, top=20pt]{geometry}%



\MakeTextUppercase{Preparation of \NoCaseChange{\ce{Mn3Ga}}.}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.