\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
so I can write things like:
\begin{lemma}
If something is true then something else follows.
\end{lemma}
\begin{definition}
Let $A$ be a something. We say $A$ is a \emph{something else} if
some conditions hold.
\end{definition}
These work fine (note that the numbering for all theorems, lemmas,
definitions, etc. is in the same sequence, which is what I want).
Unfortunately the italics in definitions are the opposite way
around to how I want them, because (it seems) any text in an environment
created by a \newtheorem statement is in italics.
I've tried writing \begin{definition}\emph{...}\end{definition}
which has the disadvantages that (1) I'd have to change every definition
(there are well over 100) and (2) any maths symbols in "...", don't
appear in italics any more!
I'd be greatful if anyone could show me how to correct this.
Thanks very much for your help,
William Bland.
Use the theorem package, which allows you to set the font for your
theorems:
\theorembodyfont{\rm}% Or which font you use
\newtheorem{Foo}{Bar:}
\begin{document}
\begin{Foo}Hello \emph{World}!\end{Foo}
\end{document}
This produces the desired result.
[snipped]
> Use the theorem package, which allows you to set the font for your
> theorems:
>
> \theorembodyfont{\rm}% Or which font you use
Brilliant! Thanks very much for your help.
Cheers,
Bill.
Your problem has already been solved in another message. I just wanted
to point out that math symbols are not affected by \emph unless you
forget to put them in math mode. Try
\textit{Let $x$ be positive.}
versus
\textit{\emph{Let $x$ be positive.}}
--
Dan Luecking
University of Arkansas
Sent via Deja.com
http://www.deja.com/
Check the documentation for amsthm. You can create very fine-tuned
theorem environments. More generally, you'd better use ams packages if
you write a lot of math!
Michele