2

I have a constant defined by

\newcommand{\Lip}{\textrm{Lip}}

or

\def\Lip{\text{Lip}}

I use this constant in equations. But in the theorem environment, it appears in italic style. Does anyone know how to make it appear the same as it being put outside of theorem environment?

Thank you very much!

3 Answers 3

5

if you are using amsmath (which you may be, since you are using \text) it would be better to use \DeclareMathOperator{\Lip}{Lip}. then it will always be in an upright font.

1

You could use

\newcommand{\Lip}{\ensuremath{\mathrm{Lip}}}
0
1
\usepackage{xspace}% To avoid adding a forced space after a command: '\Lip\ '
...
\newcommand{\Lip}{{\upshape Lip}\xspace}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .