Why do I get an "ERROR: Please use \mathaccent for accents in math mode." for the following code?
\[c=439 450\times10^6\frac{\mathrm{millimètre}}{\mathrm{seconde}}\]
I am guessing \usepackage[utf8]{inputenc}
is having problems with the accented "è" in "millimètre."
Best Answer
It works fine when you use
\text
instead of\mathrm
.\text
is part ofamsmath
, which is loaded bymathtools
…\mathrm
won’t create real text, it only changes the math alphabet from italics to recto. But in the math alphabet there are no accent characters likeè
…