I'm preparing a thesis for publication, and the publisher requires the use of a font with old style numerals in textmode. This results in old style numerals being used when I use the \ce command. No problem, I just redefine \ce so that it's automatically in math mode, like so:


\makeatletter % undo the wrong changes made by mathspec

\setmathsfont(Digits){TeX Gyre Termes}

%All uses of \ce are in math mode:


This gets me the proper numerals, and a proper minus sign as a bonus, but now the brackets don't match those in text mode:

Two version of the same chemical formula, each having the desired elements, but each undesirable in their own way.

Is there a way to replace these mathmode brackets with the textmode brackets? Perhaps something based on this answer?

  • If you look closely, the parentheses aren't the same either. May 16, 2019 at 15:47

1 Answer 1


Why don't you change instead the textfont used by mhchem, e.g.:






enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .