I'm writing a text where the variable I_{a,b,c}^{d,e,f} occurs a lot. It occurs as well in plain text as in mathematical environments. I would like ONE command, that can be used in both cases, something like
\newcommand{\Ioften}{$I_{a,b,c}^{d,e,f}$}
However this will only work, when I use it in plain text, not in the mathematical environment. That is I could use it now \Ioften, but not in the equation $3\cdot \Ioften$
\ensuremath. Personally, I'd just define\Ioftenwithout$and insert them manually when writing inline math. – campa Dec 21 '17 at 16:15\ensuremath? To me this looks like a good idea – Jürg W. Spaak Dec 21 '17 at 16:20