I would like to write all chemical formulas in my document using the mhchem
package which facilitates the use of the document font. It works quite nicely so far, but it fails for the letter "x".
This is how it should look like:
This is the result using \ce{NO_x}
:
Do you have any suggestions on how to use the document font (and not the math font) for the letter x in chemical formulas?
Interestingly, though, it does work for uppercase letters:
\ce{NO_{\text{x}}}
chemformula
instead ofmhchem
and use\ch{NO_x}
(the correct input then would be\ch{NO_{$x$}}
which means it requires a little more thinking and typing of the user).