Hi,

Consider the following MWE, which uses the tizk module:

\usemodule[tikz]
\usetikzlibrary[fadings]
\starttext
\starttikzpicture
  \fill [path fading=west,red] (-1,-1) rectangle (1,1);
\stoptikzpicture
\stoptext

When compiling with ConTeXt LMTX version 2021.06.18, the output PDF
contains "\pdfbackendcurrentresources" in the middle of a resource
dictionary. Apparently, this command does not get expanded but is written
literally to the file, which makes the PDF corrupt.

This command is used in the tikz module file pgfutil-context.def as:
  \def\pgf@sys@pdf@possible@resources{\pdfbackendcurrentresources}
As mentioned in a comment in back-pdf.mkxl, the command is implemented in
lua in lpdf-ini.lmt.

The command is also used in mlib-pps.mkxl and is documented in ConTeXts
interface. Can somebody tell why it is not expanded?

Any help is appreciated. Cheers,
Christoph
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to