TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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{...}.

share|improve this question
up vote 8 down vote accepted

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}}.}
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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