[Dev-luatex] colors, colorstack
patrick at gundla.ch
Fri Oct 15 21:02:49 CEST 2010
> Patrick Gundlach wrote:
>>>> 1) Do you have a feeling if pdfcolorstacks makes sense with do-it-yourself nodelists?
>>> It should make no difference if you do it at the tex end of lua end, apart maybe from assumptions with respect to the whatsit ending up before end-of-par glue or after begin-of-par indentation and dir boxes
>> Good point, thanks.
>>>> more important:
>>>> 2) Is there something like \pdfcolorstackinit in lua?
>>> I never used color stacks but I assume that tex.pdfcolorstackinit works ok then
>> Couldn't find that one. Not-yet-implemented-error?
> IMO pdfcolorstack is weak and I think it makes sense to follow this way, at least not in luatex. In pdftex one can take an advantage of passing graphic state from page to page. But in luatex, when you're operating on lists already, it's not better then user whatsit, is it?
I am thinking about adding a colorstack whatsit at both sides of my nodelist. You would rather user pdfliteral whatsits and set the color by hand? I read from your answer that I can run into problems with page breaks, true?
More information about the dev-luatex