[DVIPDFMx] PGF Version 2.00-cvs patch for dvipdfmx

Jin-Hwan Cho chofchof at ktug.or.kr
Sat Apr 18 21:54:45 KST 2009


Dear Till Tantau,

As an active user of the PGF package, I appreciate your efforts on  
this fantastic project.

Last month a dvipdfmx user (luoyi) asked me a new dvipdfmx driver  
working with
PGF Version 2.00-cvs, not Version 2.00 (included in texlive 2008).

Because I already wrote a dvipdfmx driver for PGF version 2.00 on June  
2008,
I thought that it would not take much time to write a new one. But it  
took more than
one month to do it. (Sorry to luoyi...)

I made two patch files.

1. http://project.ktug.or.kr/dvipdfmx/contrib/generic/pgf-generic-diff.version2cvs 
  (patches for generic/*)
2. http://project.ktug.or.kr/dvipdfmx/contrib/generic/pgf-doc-diff.version2cvs 
  (new doc file for dvipdfmx)

Now I give some comments on my patch.

1. generic/pgf/basiclayer/pgfcoreimage.code.tex

In this file, I could find PDF operators, /Interpolate and /SMask. I  
thought that it would be better
to move these operators to systemlayer. Actually "/SMask \pgf at imagemask 
\space 0 R" is valid
only for pdftex.

Moreover, to support image masking, I changed the definition of  
\pgfsys at definemask to accept
an argument (to send a name).

2. generic/pgf/utilities/pgfutil-[context,latex,plain].def

The biggest problem while I was writing this patch was the new codes  
for resource management,
especially \pgfutil at insertatbegincurrentpage. Because this macro did  
not work with boxes, a new
command \pgfutil at insertatbegincurrentpagefrombox was implemented in  
these three files.

3. generic/pgf/systemlayer/pgfsys-pdftex.def

The corresponding parts were patched as explained in #1.

4. generic/pgf/systemlayer/pgfsys-dvipdfmx.def

Completely rewrote based on pgfsys-pdftex.def.

I tested this new driver with the dvipdfmx (DVIDPFMX-20080607) in  
texlive 2008, and succeeded
to compile the pgfmanual the result of which can be downloaded from

http://project.ktug.or.kr/dvipdfmx/sample/misc/pgfmanual-v2cvs-dvipdfmx.pdf

I hope you accept this patch, and to see a PGF version working with  
DVIPDFMx soon (at least
in texlive 2009).

Best regards, ChoF.

P.S. Many people wanted to update the PGF package (in texlive)  
automatically.
Can you update the texlive version or do you have any plan if I send  
you a patch for texlive 2008?




More information about the dvipdfmx mailing list