what are the conventions when to use upright letters in math mode?
Example:
\begin{align}
W_{mag} = \frac{1}{2}LI^2
\end{align}
should the inductivity and the current be typeset in upright letters (\mathrm)?
what are the conventions when to use upright letters in math mode?
Example:
\begin{align}
W_{mag} = \frac{1}{2}LI^2
\end{align}
should the inductivity and the current be typeset in upright letters (\mathrm)?
I would typeset this as
\[
W_\mathrm{mag} = \frac{1}{2} L I^2
\]
i.e. variables should be in standard math mode italic, while subscripts that are simply labels should be upright.
There is no correct answer for this, as it depends on the style of your region, your academic field, and personal taste. See What's the proper way to typeset a differential operator? for a helpful discussion of this topic.
\DeclareMathOperator\mag{mag}so I can have$W_\mag$. (correct me if it is evil) – Symbol 1 Aug 04 '15 at 07:02\magis a TEX primitive, second using\mathopwith subscript will give some grouping issue so you still have to typeW_{\mag}. Might as well do\newcommand{\mag}{\mathrm{mag}}. – Francis Dec 20 '15 at 21:52