[pdftex] Color stack, first try

Hans Hagen pragma at wxs.nl
Mon Feb 17 02:39:39 CET 2003

Hi Heiko,
>File "pdftex.ch" implements the pdfTeX primitive
>Because color was set by \pdfliteral, this command and its
>node type are also used for the color stack methods:
>* \pdfliteral colorset{<color setting>}
>* \pdfliteral colorpush{<color setting>}
>* \pdfliteral colorpop
>* \pdfliteral colorpeek

hm, this will unnecessarry overload \pdfliteral with keywords (i use lots 
of such literals and don't want a slower pdftex), so why not use


Also, there is less change in compatibility problems (i have no plans to 
use color literals in context) or of potential clashes.

Actually, it would be better to let pdftex handle this by means of 
interpreting \specials (there is already such handling and it would conform 
dvi/pdfm); esp since the content is not literal (in th esense that it is 
parsed content).

                                   Hans Hagen | PRAGMA ADE | pragma at wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf

More information about the pdftex mailing list