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!

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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.