From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/111834 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christoph Reller Newsgroups: gmane.comp.tex.context Subject: \pdfbackendcurrentresources not expanded Date: Mon, 21 Jun 2021 13:58:49 +0200 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0182764563656656328==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32742"; mail-complaints-to="usenet@ciao.gmane.io" To: ntg-context Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 21 13:59:36 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lvIaW-0008Lr-CE for gctc-ntg-context-518@m.gmane-mx.org; Mon, 21 Jun 2021 13:59:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BF8C22843CA; Mon, 21 Jun 2021 13:59:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a6ZelR5JVr46; Mon, 21 Jun 2021 13:59:08 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A0CDE28497B; Mon, 21 Jun 2021 13:59:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 85BA028490B for ; Mon, 21 Jun 2021 13:59:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c2isHIHbnfTa for ; Mon, 21 Jun 2021 13:59:06 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.47; helo=mail-lf1-f47.google.com; envelope-from=christoph.reller@gmail.com; receiver= Original-Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id D5F7F2843CA for ; Mon, 21 Jun 2021 13:59:05 +0200 (CEST) Original-Received: by mail-lf1-f47.google.com with SMTP id i1so2736360lfe.6 for ; Mon, 21 Jun 2021 04:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=y5ql0qYLKNjKlK3L2YtXznXOcxhs7pRhY6UDKy8puYM=; b=FeppH+9vG19VsPEDKDrZ7lUcVH9ZzlvoOTjkgjMJIHC2G2UFrUJB8kKPkdfriAmEpT Ra8hDxwWM5v7AYM+vDDHGfQmk2vHv12n2WKiOughvL+4fkVDG57xoXNl0x52qMuLRboX Ff9WPLDYHdtWbZI7A+BHzCqBnryEQpeIvYGb+JD46zHNvbiH3lqvn7n0MO+uu2PUYgoq tU3EsHvGDQ6Ux/XH7C7p/6KAKkOq88vWh6lSfgg1K2e2h8iP20mHYV3HQvxTW2DjZ0px z77tzqrdM8MXlIL73vTDlHBwxIhKNScImq7YzHbbZImbiWF1a0g7w0hj1TLGiSUahfa3 D8bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=y5ql0qYLKNjKlK3L2YtXznXOcxhs7pRhY6UDKy8puYM=; b=kjLCYOJXeeQuPmuOc4F8bZStR5/3O91Feb5XUd1dNCv0+gXsCSyRQ5C1qEvyzFXOb4 lX7qb8r+yKsN7yqxds/KN+PVfO0sCPtfTFu4PIeUD2FcNibRugzH9MiBoXxdANbYwdeP 4/0cWe3ceNlSOHuuFjVNij4QfOt2VNIweSSuWyfmWcEocnTzJr8Soh4LepSpg4nm8Sev STOeTdqNvWjTAqanQOs3AgqVwUSkCEghDjhh8hSMnCJqONzoe/nHjIz4AuIbc+BAf3MT szBKgoTN/XVwv9/V+ecv7677OitbOH9Rch7l8sKp6h6PZTP6lt5SSuiAqWExovOkCHW1 q8uA== X-Gm-Message-State: AOAM530oJyLvDU2crzZ4qbHfT258W0v8gBWIHKHi5VMb7jpLEr/JvCkn CSR31Tjl9dLnyfOsc8FOH9NeftUp/1t3nPPsg8d5t2aQm56CXw== X-Google-Smtp-Source: ABdhPJyJcTIhj0RhohSzl0om1FQI8owFUSJ0+oImRNZg8HC6y7ebo0I6jtn/JlJEYlj3i0PpegQZw4NVesh/686x1I0= X-Received: by 2002:a05:6512:3a92:: with SMTP id q18mr13879769lfu.193.1624276744949; Mon, 21 Jun 2021 04:59:04 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:111834 Archived-At: --===============0182764563656656328== Content-Type: multipart/alternative; boundary="00000000000066530d05c5456686" --00000000000066530d05c5456686 Content-Type: text/plain; charset="UTF-8" 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 --00000000000066530d05c5456686 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Consider the following MWE, which uses the tizk=C2=A0module:
<= br>
\usemodule[tikz]
\usetikzlibrary[fadings]
\starttext\starttikzpicture
=C2=A0 \fill [path fading=3Dwest,red] (-1,-1) rectang= le (1,1);
\stoptikzpicture
\stoptext

Whe= n compiling with ConTeXt LMTX version 2021.06.18, the output PDF contains &= quot;\pdfbackendcurrentresources" in the middle of a resource dictiona= ry. Apparently, this command does not get expanded but is written literally= to the file, which makes the PDF corrupt.

This co= mmand is used in the tikz module file pgfutil-context.def as:
=C2= =A0 \def\pgf@sys@pdf@possible@resources{\pdfbackendcurrentresources}
<= div> As mentioned in a comment in back-pdf.mkxl, the command is implemented in l= ua in lpdf-ini.lmt.

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

Any help is=C2=A0appreciated. = Cheers,
Christoph
--00000000000066530d05c5456686-- --===============0182764563656656328== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0182764563656656328==--