[Tuglist] How to write theorems etc. in a colour other than black.

E. Krishnan tuglist@tug.org.in
Sun, 24 Mar 2002 17:57:25 +0530 (IST)


> On Sun, 24 Mar 2002 at 10:08, indrajit@cal2.vsnl.net.in wrote:
> 
>    I wish to write the theorems, corollaries etc. of my paper in
>    different colour ink (not in black) and the other part of the
>    paper in black ink. Please suggest me the procedure.


Here's another way to do it using the amsthm package

\documentclass{article}
\usepackage{amsthm}
\usepackage{color}

\newtheoremstyle%
 {redthm}%
 {}{}%
 {\color{red}\itshape}
 {}%
 {\color{red}\bfseries}%
 {\color{red}.}%
 { }{}

\newtheoremstyle%
 {bluethm}%
 {}{}%
 {\color{blue}\itshape}
 {}%
 {\color{blue}\bfseries}%
 {\color{blue}.}%
 { }{}

\newtheoremstyle%
 {greenthm}%
 {}{}%
 {\color{green}\itshape}
 {}%
 {\color{green}\bfseries}%
 {\color{green}.}%
 { }{}


\theoremstyle{redthm}
\newtheorem{lem}{Lemma}
\theoremstyle{bluethm}
\newtheorem{thm}{Theorem}
\theoremstyle{greenthm}
\newtheorem{cor}{Corollary}

\begin{document}

This is a test

\begin{lem}
  This is a red lemma
\end{lem}

\begin{thm}
  And a blue theorem
\end{thm}

\begin{cor}
  And finally a green corollary
\end{cor}


\end{document}

As you can see you can mix and match.


-- 
Krishnan