0

I am using a book style file and in the preamble I defined some theorem environment. But in the Definition and Lemma part I want nonitalic content. Please suggest. My preamble are

\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{exercise}{Exercise}[chapter]
\newtheorem{example}{Example}[chapter]
\newtheorem{definition}{Definition}[chapter]
\newtheorem{lemma}{Lemma}[chapter]

2 Answers2

0

Below suggestion is not good but it works...

\newtheorem{odefinition}{Definition}[chapter]
\newenvironment{definition}{\begin{odefinition}\rm}\end{odefinition}}

\newtheorem{olemma}{Lemma}[chapter]
\newenvironment{lemma}{\begin{olemma}\rm}\end{olemma}}
MadyYuvi
  • 13,693
0

You can use the ntheorem package:

\documentclass{book}
\usepackage{ntheorem}
\newtheorem{tm}{Theorem}[chapter]
\theorembodyfont{\upshape}
\newtheorem{lm}{Lemma}[chapter]
\newtheorem{defi}{Definition}
\begin{document}
  \begin{tm}It happens that $2+2=4$\end{tm}
  \begin{lm}Why not?\end{lm}
\end{document}