[OS X TeX] colorbox
Will Robertson
will at guerilla.net.au
Thu Jan 27 05:38:31 CET 2005
On 27 Jan 2005, at 2:57 PM, Alain Schremmer wrote:
> I am puzzled by the way 2x=7 is typeset:
The \colorbox takes it out of math mode. I assume it is equivalent to
something like \mbox on the inside. Compare:
\documentclass[11pt]{book}
\usepackage{color}
\usepackage{amsmath}
\begin{document}
\begin{center}
2x=7
\end{center}
\begin{equation*}
\colorbox{yellow}{2x=7}
\end{equation*}
\begin{center}
\colorbox{yellow}{$2x=7$}
\end{center}
\begin{equation*}
\colorbox{yellow}{$2x=7$}
\end{equation*}
\end{document}
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the macostex-archives
mailing list