I use the Lucida font for my documents with its old style numerals in text and its lining figures in mathmode.
But how can I get lining figures inside chemical eqautions with mhchem?
Here is some sample code (I compile with either latex or pdflatex)
\documentclass{minimal}
\usepackage[paperwidth=90mm, paperheight=20mm, left=10pt, top=20pt]{geometry}%
\usepackage[romanfamily=bright-osf,stdmathdigits=true,scale=.9]{lucimatx}
\usepackage{mhchem}
\begin{document}
Chemical formula: \ce{2 H2O -> 2H2 + O2}
\end{document}
This is what I get
This is what I want

I already tried
{\fontfamily{hlh}\selectfont \ce{2 H2O -> 2H2 + O2}}
But that will mess up the format if the equations get more complicated
I found a related entry with the same problem but this guy uses luatex: text figures (old style numbers) and mhchem


