Math & Science ⇒ Color Theorem Environments
-
- Posts: 1
- Joined: Wed Nov 17, 2010 10:00 pm
Color Theorem Environments
Ex. 1: Examine the function $f(x)=\frac{x^2-1}{x-1}$.
by typing something like:
\begin{example}
Examine the function $f(x)=\frac{x^2-1}{x-1}$.
\end{example}
Please help! I have scoured the internet, but I have had no luck! Thank you!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Color Theorem Environments
Code: Select all
\documentclass{article}
\usepackage{ntheorem,xcolor}
\usepackage{lipsum}
\theoremstyle{plain}
\theorembodyfont{\color{blue}}
\theoremseparator{:}
\newtheorem{example}{Ex.}
\begin{document}
\lipsum[1]
\begin{example}
Examine the function $f(x)=\frac{x^2-1}{x-1}$.
\end{example}
\lipsum[3]
\end{document}