Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

MWE:

\documentclass{minimal}

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

\RequirePackage[version=3]{mhchem}

\begin{document}
\MakeUppercase{Preparation of \ce{Mn3Ga}.}
\end{document}

output:

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

1 Answer 1

up vote 8 down vote accepted

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

\documentclass{minimal}

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

\usepackage{textcase}

\usepackage[version=3]{mhchem}

\begin{document}
\MakeTextUppercase{Preparation of \NoCaseChange{\ce{Mn3Ga}}.}
\end{document}
share|improve this answer

Your Answer

 
discard

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.