I'm wondering about the correct use of \mathrm{} and/or \text{} (or similar) in formulas. I've read these topics (and some more):
Is there a preference of when to use \text and \mathrm? and
Difference between \textrm{} and \mathrm{} and
Is \mathrm really preferable to \text? [duplicate]
but I'm not fully satisfied with my findings yet. As far as I understood it's best to use \text{} for something like:
$ a = b \text{if, and only if, ...} $ or $ C = \text{const.} $
while \mathrm{} would be used for indices, like
$ \rho_\mathrm{water} $ or $ m_\mathrm{main} $
because \text{} does not necessarily provide upright font (e.g. in an italic context).
My problem with \mathrm{} is that it doesn't accept German umlauts. I want to name a parameter $ m_{äq} $, which is short for for "m äquivalent" (an equivalent mass). When I use m_\mathrm{äq} the "ä" will not be visible, even m_\mathrm{{\"a}q} doesn't work. m_\text{äq} works fine, but it feels like \text{} is not the correct command in this case.
I'm using mathtools (including amsmath) and
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
if this is of any importance.



\mathrm{\text{Äpfel}}? ;-) – Jun 12 '15 at 11:14\mathrmas it would be for an english abreviation, but sadly the world we live in isn't always logical.\textrm(which I'd use rather than\text) has the advantage of working. – David Carlisle Jun 12 '15 at 11:15\textupbetter, as not to force the font into the rm variant? – daleif Jun 12 '15 at 11:28\loguses a fixed font. – David Carlisle Jun 12 '15 at 11:32\mathrm{}should be correct, but it simply doesn't work with Ä Ö Ü? – zaddo Jun 12 '15 at 11:36