Any idea at how I can have a subscript on the left side of a variable?
This is for an agent-based model that requires a little too many indices --- so I thought of trailing the one refer ...
Any idea at how I can have a subscript on the left side of a variable?
This is for an agent-based model that requires a little too many indices --- so I thought of trailing the one refer ...
You can use \prescript
macro provided by mathtools
\documentclass{report}
\usepackage{mathtools}
\usepackage{atbegshi}
\begin{document}
\[
\prescript{}{5}{\mathit{edu}}_{2,3}= \prescript{}{5}{\mathit{yr}} \prescript{}{5}{\mathit{wg}} + 2
\]
\end{document}
edu
is. So I will change it as you said. :) Thanks.
\mathit{edu}
and not \textit
? I still don't understand the place for \mathit
and \mathrm
.
\text??
command in math-mode shows some lack of it (well, \text??
shouldn't ever be used outside preamble, IMHO). For example, try this semantically correct variant: \[ \mathrm{e}^{x} = 1 \quad\text{if and \emph{only if}}\quad x = 0\]
versus: \[ \textrm{e}^{x} \quad\textrm{if and }\textit{only if}\quad x = 0 \]
. The result is very likely the same, unless you are inside {theorem}
for instance, but the semantics are lost. Of course, even better would be having a macro for the constant if you use it more than once or twice.
\documentclass{report}
\usepackage{mathtools}
\begin{document}
\[
\sideset{_5}{_{2,3}}{\mathop{edu}}= \sideset{_5}{}{\mathop{yr}} \sideset{_5}{}{\mathop{wg}} + 2
\]
\[ \sideset{_{ll}^{ul}}{_{lr}^{ur}}\prod \]
\end{document}
\sideset
. That is as well clear from the fact that you need explicit \mathop
to make it work.