[OS X TeX] workaround for the lack of color stack in pdftex?

Maarten Sneep maarten.sneep at xs4all.nl
Fri May 19 16:11:42 EDT 2006


On 19 May 2006, at 21:24, Gary L. Gray wrote:

> The \textcolor command in the color package has a problem in pdftex  
> because of the lack of a color stack. The problem is that  
> occasionally (that is, when the right stuff happens around it,  
> e.g., marginal notes) a construct like the following:
>
> \textcolor{red}{binormal unit vector}
>
> when it is broken at the end of a line, will have the text before  
> the break colored red and the text after the break not. We have  
> been told (and have found when searching Google) that this is due  
> to the fact that there isn't a color stack in pdftex. Heiko  
> Oberdiek has a package called pdfcolmk that works around this  
> problem, but it has the unfortunate side-effect that it changes the  
> page layout so as to stretch the page such that the text at the  
> bottom of some pages goes past the end of the page.

Oops: the only solution I'm aware of _is_ pdfcolmk. I would suggest  
asking in comp.text.tex, (I presume you searched there already) to  
see if the change to the page layout is known (or some interaction  
with another package), and if there is a workaround.

Maarten

------------------------- 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