[NTG-pdftex] strange effect pdfliteral

Hans Hagen pragma at wxs.nl
Thu Feb 3 15:29:26 CET 2005


Can someone explain why in the last example the pdfliteral messes up the spacing

\pdfcompresslevel=0

\setupcolors[state=start]

\starttext

\def\red  #1{\pdfliteral {1 0 0 rg}#1\pdfliteral{0 g}}
\def\green#1{\pdfliteral {0 1 0 rg}#1\pdfliteral{0 g}}
\def\blue #1{\pdfliteral {0 0 1 rg}#1\pdfliteral{0 g}}

\dorecurse{25} {\red{red} \green{green} \blue{blue} }

\def\red  #1{\pdfliteral direct {1 0 0 rg}#1\pdfliteral{0 g}}
\def\green#1{\pdfliteral direct {0 1 0 rg}#1\pdfliteral{0 g}}
\def\blue #1{\pdfliteral direct {0 0 1 rg}#1\pdfliteral{0 g}}

\dorecurse{25} {\red{red} \green{green} \blue{blue} }

\def\red  #1{\pdfliteral direct {1 0 0 rg} #1\pdfliteral{0 g}}
\def\green#1{\pdfliteral direct {0 1 0 rg} #1\pdfliteral{0 g}}
\def\blue #1{\pdfliteral direct {0 0 1 rg} #1\pdfliteral{0 g}}

\dorecurse{25} {\red{red} \green{green} \blue{blue} }

\def\red  #1{\pdfliteral direct {1 0 0 rg}#1\pdfliteral direct {0 g}}
\def\green#1{\pdfliteral direct {0 1 0 rg}#1\pdfliteral direct {0 g}}
\def\blue #1{\pdfliteral direct {0 0 1 rg}#1\pdfliteral direct {0 g}}

\dorecurse{25} {\red{red} \green{green} \blue{blue} }

\stoptext



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdftex.tex
Type: application/x-tex
Size: 1044 bytes
Desc: not available
Url : http://www.ntg.nl/pipermail/ntg-pdftex/attachments/20050203/a47177b1/pdftex-0001.tex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdftex.pdf
Type: application/pdf
Size: 49064 bytes
Desc: not available
Url : http://www.ntg.nl/pipermail/ntg-pdftex/attachments/20050203/a47177b1/pdftex-0001.pdf


More information about the ntg-pdftex mailing list