It seems to be the de facto standard to use \mathrm for upright letter notation in math mode as opposed to \text. Would it not be better to use \text in general?
One particular problem I am thinking of is when writing in a sans serif-style document (e.g. beamer). In many cases here, your text and math is set in a sans serif font (for screen readability, I guess). Using \mathrm in this case causes the argument to appear in a roman font (with serifs), whereas using \text seems to correctly pick up that the text style in the document is sans serif and display the argument in upright sans serif.
So, would it not be better to generally use \text instead of \mathrm for "upright" notation in math mode?


\text{}returns to the text mode and so it uses the current font. Also, try to type\alpha+\text{A_1}+x. – Sigur Feb 13 '13 at 10:31\mathrmstill contains mathematical symbols, whereas\textexplicitly marks text and as such returns to text mode (which is different from math mode). In math mode you have different typesetting rules (e.g. spacing) and on top of that by using them interchangeably you don't make use of the semantic mark-up either. Bottomline: I strongly advise aginst this practice! – Count Zero Feb 13 '13 at 10:34\mathrm. Upright letters only appear in operators for me, so I use\DeclareMathOperator. Otherwise it is text, so I use\text. – mafp Feb 13 '13 at 10:35\mathrmwhen you are in a serif font "environment" and to use\mathsfwhen you are in a sans serif font "environment"? – Thomas Arildsen Feb 13 '13 at 10:52\mathrmwhen you are in a sans serif environment (as far as I remember beamer e.g. does it). See also http://tex.stackexchange.com/questions/22350/difference-between-textrm-and-mathrm/22353#22353 – Ulrike Fischer Feb 13 '13 at 10:58\mathrmproduces serif font. So I had better redefine to be on the safe side. – Thomas Arildsen Feb 13 '13 at 11:04$\rho_\textrm{Water}$. Descriptive indices aren't variables, as opposed to, e. g., i in $x_i$ which is clearly a variable. – AlexG Feb 13 '13 at 11:21\textrmwon't always give you an upright font! – Hendrik Vogt Feb 13 '13 at 12:07\mathrmbe the better choice? – AlexG Feb 13 '13 at 13:26\textwould use the document's main text font which may be Sans. I'd prefer the upright shape of the current math font. – AlexG Feb 13 '13 at 13:32\mathrm. – mafp Feb 13 '13 at 14:04\rho_{\text{Water}}won't give you uprightWaterin an italic context, so wouldn't\mathrmbe the better choice? (Personally, I use the plain\rm...) – Hendrik Vogt Feb 13 '13 at 14:20\textis only appropriate for insertions that are not part of an equation (as amsldoc.pdf suggests), such as "if and only if" or "where", because you get the main text font (which is not what you want in the case of descriptive indices [and operators, of course]). – AlexG Feb 13 '13 at 14:40\rho_{\text{Water}}. – Hendrik Vogt Feb 13 '13 at 15:14\texthere, because "Water" is part of the equation and should match the current math font (usually a serif font), not the surrounding text font which could be quite different. Textual insertions such as the ones mentioned in my comment above must of course use the surrounding text font and\textwould be required for these. – AlexG Feb 13 '13 at 15:20\mathrmthe best choice then? EDIT: Or maybe\textnormal? – Hendrik Vogt Feb 13 '13 at 15:40