When I define a macro such as:
\newcommand{\mymacro}{a_{\text{sample}}}
the "sample" text is italic when used in e.g. an example environment.
How can I make sure it will not adjust to this environment?
When I define a macro such as:
\newcommand{\mymacro}{a_{\text{sample}}}
the "sample" text is italic when used in e.g. an example environment.
How can I make sure it will not adjust to this environment?
\textnormal; related: http://tex.stackexchange.com/questions/88730/mathrm-or-mbox-what-is-the-convention-when-writing-a-equation – egreg Feb 14 '13 at 18:45\textnormalproperly. – Werner Feb 14 '13 at 18:49