1

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?

marked as duplicate by yo', Mensch, Werner, Marco Daniel, Stefan Kottwitz Mar 2 '13 at 21:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.