For me it depends on the context. Using your example, I would agree that you should use $k_{\text{B}}$
since it is short for $k_{\text{Boltzmann}}$
. Note the use of \text{...}
from the amsmath
package, that does a decent job of sticking to the math mode font size, depending on the context.
On that note, $k_{Boltzmann}$
"looks strange" because (La)TeX typesets it like it does regular math, which in this case is the variable B
, followed by the variable o
, followed by the variable l
, and so on. My use of the term "variable" may be incorrect. The point I'm trying to make is that each letter is treated on it's own in math mode, rather than combining them like is done in text mode. The spacing is correct as-is in math mode, it just doesn't look like text.
With this discussion in mind, I hope you agree that $x_i$
should remain $x_i$
. Of course, if you are referring to i
in your text somewhere (instead of $i$
), then it should be upright. IMHO, it is all (mostly?) driven by context.
B
ink_\text B
is part of a name, which would be upright if not in a subscript; whereas thei
inx_i
is a variable, which would still be slanted if not in a subscript. (Nonetheless, I agree that one often slants single-letter abbreviations of names, despite logic.)