[NTG-pdftex] writepng-copy in pdfxtex

Hartmut Henkel hartmut_henkel at gmx.de
Sat Oct 2 16:44:57 CEST 2004


just thought that we maybe could safely test the fast (copy) PNG
inclusion by pdfxtex, e. g. making some global flag in texmfmp.c,

#if defined(pdfTeX) || defined(pdfeTeX) || defined(pdfxTeX)
string ptexbanner = BANNER;
enum ptexengine_ {PDFTEX, PDFETEX, PDFXTEX};
#if defined(pdfTeX)
int ptexengine = PDFTEX;
#endif
#if defined(pdfeTeX)
int ptexengine = PDFETEX;
#endif
#if defined(pdfxTeX)
int ptexengine = PDFXTEX;
#endif
#endif

so that ptexengine is available everywhere and then also add the
xwrite_png() with the COPY feature in addition to the standard
write_png() into writepng.c and have

if(ptexengine == PDFXTEX) xwrite_png(img); else write_png(img);

or so in writeimg.c. Is it still worthwile or is pdftex frozen by now
for texlive?

Regards, Hartmut


More information about the ntg-pdftex mailing list