[OS X TeX] coloring equations

Peder Axensten peder at axensten.se
Thu May 18 03:33:24 EDT 2006


\color{red} takes one argument: the color. Therafter everything until  
the end of the block (or until the next \coror) is made red.
Try
	${\color{red}\phi}\rho$
This should make phi red but not rho.

/Peder



On 18 maj 2006, at 09.10, KL Tah wrote:

> sorry, I should have been clearer . I actually want to color just  
> portions of an equation.
> eg.
> \begin{equation}
> \color{\phi} \rho
> \end{equation}
>
> but this just seems to color the whole equation.
>
> KL
> On May 17, 2006, at 6:49 PM, Gary L. Gray wrote:
>
>>
>> On May 17, 2006, at 9:27 PM, KL Tah wrote:
>>
>>> Hi All,
>>>
>>> the \textcolor command doesn't seem to work in math mode. Does  
>>> anyone happen to know how to color math equations?
>>
>> Just issue a \color declaration within the environment as in:
>>
>> \begin{equation*}\color{red}
>> v_{a} = \frac{1}{\lambda} \int_{0}^{\lambda} v_{x}\,dx.
>> \end{equation*}
>>
>> -- Gary
>> ------------------------- 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 Archive: http://tug.org/pipermail/macostex-archives/
>>
>
>
> ------------------------- 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 Archive: http://tug.org/pipermail/macostex-archives/
>

------------------------- 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 Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list