Possible Duplicate:
Using simple quotes “” instead of \text{}

For subscripts I usally use \textup but if you have many of them it's much to write and read.



The density of water is $\rho_{\textup{Water}} = \SI{1.0}{kg\per d\cubic m}$.

So instead of that, similar to the new formular editor of Word, I'd like to write:




But I prefer the first version because it is more flexible you could also write:


Is there a package that provides something like that? I have seen this question: Redefine underscore to produce roman subscript without breaking file names, but I don't want to change the default behavior for indices/subscripts.

  • Have you seen Using simple quotes "" instead of \text{}? Commented Jan 26, 2013 at 21:46
  • @Qrrbrbirlbel, no I haven't. That is exactly what I was looking for. Thanks
    – quinmars
    Commented Jan 26, 2013 at 21:50
  • Aside from the markup syntax it is probably better to use \mathrm rather than \textup to be consistent with other uses of roman font on math expressions (rather than use the possibly different text font family current outside the expression) Commented Jan 26, 2013 at 21:54
  • 1
    @quinmars In this answer he links to this document which, in page 269 it shows how to achieve something similar (Kodetip 10.1). I don't understand danish but seeing the example it works perfect (I substituted \textup by \mathrm).
    – Manuel
    Commented Jan 26, 2013 at 22:05
  • @Manuel, thanks for the tip. This works even better. The quote version doesn't work for me. I think it clashs with babel or another package.
    – quinmars
    Commented Jan 26, 2013 at 22:26


Browse other questions tagged .