From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id D5DAE23CF0 for ; Tue, 18 Jun 2024 09:56:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 284734846ED for ; Tue, 18 Jun 2024 09:55:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=flump.de Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MCOd-XGOL8Q3 for ; Tue, 18 Jun 2024 09:55:38 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 8D29E484819 for ; Tue, 18 Jun 2024 09:54:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A6BDF48461D for ; Tue, 18 Jun 2024 09:54:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9BHFTH-7YCt0 for ; Tue, 18 Jun 2024 09:54:12 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.163.118.210; helo=flump.de; envelope-from=gerion.entrup@flump.de; receiver= Received: from flump.de (flump.de [185.163.118.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 6EA7E484616 for ; Tue, 18 Jun 2024 09:54:12 +0200 (CEST) Received: from falbala.localnet (ip4d1692dd.dynamic.kabel-deutschland.de [77.22.146.221]) by flump.de (Postfix) with ESMTPSA id B13FB10E0FDD; Tue, 18 Jun 2024 09:54:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1718697248; bh=JkWfFd9UyIMcz9M1PsP0aPrSUlF+BtzmoU7mWfnyvQM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=8QEyfVulPPXu5IZxXlmAh0wSn5G5dnx/0MY/mqjfNuMoMzQD59/V40o/as5yg0vj7 kT32s587UXS2yW09eU1EQNUNQIUVEhUdc7rtQVS2AscKxhX9Z1fm8YfW+ybcHif/uH l+pPq2YLL/WmlOf5q7+RibmOWzCSLI2EtJlkyD30= From: Gerion Entrup To: ntg-context@ntg.nl Date: Tue, 18 Jun 2024 09:54:04 +0200 Message-ID: <2373772.2IRrRt1zHL@falbala> In-Reply-To: <36a19279-c9cc-4b8f-b616-63b873d17cac@xs4all.nl> References: <7501902.aoefvbuG5b@falbala> <36a19279-c9cc-4b8f-b616-63b873d17cac@xs4all.nl> MIME-Version: 1.0 Message-ID-Hash: MGQK2LTY5C65HID74EJ2I3JB2V5IABM5 X-Message-ID-Hash: MGQK2LTY5C65HID74EJ2I3JB2V5IABM5 X-MailFrom: gerion.entrup@flump.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Transparency in external PDFs does not work List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============8841163603009689046==" --===============8841163603009689046== Content-Type: multipart/signed; boundary="nextPart6856278.j6PcuT4dK6"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart6856278.j6PcuT4dK6 Content-Type: multipart/mixed; boundary="nextPart4414622.3daJWjYHZt"; protected-headers="v1" Content-Transfer-Encoding: 7Bit From: Gerion Entrup To: ntg-context@ntg.nl Cc: Hans Hagen Date: Tue, 18 Jun 2024 09:54:04 +0200 Message-ID: <2373772.2IRrRt1zHL@falbala> In-Reply-To: <36a19279-c9cc-4b8f-b616-63b873d17cac@xs4all.nl> MIME-Version: 1.0 This is a multi-part message in MIME format. --nextPart4414622.3daJWjYHZt Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Am Montag, 17. Juni 2024, 23:50:16 MESZ schrieb Hans Hagen: > On 6/17/2024 5:07 PM, Gerion Entrup wrote: > > Hi, > > > > I'm using LaTeX-Beamer and TikZ for figure typesetting. > > With this combination, it is easy to combine Beamer's animation system with TikZ transparency feature. > > This way, the resulting PDFs contain the full graphic on every page, but parts of it are invisible for a specific page. > > One of these files is attached as an example. > > > > The problem is to embed these PDFs into a ConTeXt document. > > For example, this MWE seems to not respect transparency (see mwe.pdf): > > ``` > > \starttext > > \externalfigure[fig.pdf][page=1] > > \stoptext > > ``` > > > > I use Okular/Poppler as PDF viewer. > > Can I fix this somehow or is it a bug somewhere deeper? > next time check the file that you include ... it has no transparency (it > has zero values) I don't really have a clue about the PDF standard. It is made with the TikZ opacity flag therefore I thought it controls the transparency. See the attached tex file to reproduce fig.pdf (compilation with `latexmk -pdflua fig.tex`). I also found a workaround. It is possible to import fig.pdf with Inkscape and export just the correct page as PDF again and embed that in ConTeXt: ``` inkscape --export-page=1 fig.pdf --export-type=pdf --export-filename=1.pdf ``` Gerion --nextPart4414622.3daJWjYHZt Content-Disposition: attachment; filename="fig.tex" Content-Transfer-Encoding: 7Bit Content-Type: text/x-tex; charset="x-UTF_8J"; name="fig.tex" \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{fit} \usepackage[active, tightpage]{preview} \PreviewEnvironment{tikzpicture} % taken from https://github.com/luhsra/texmf/blob/main/tex/latex/beamertools/beamertools.sty \tikzset{ onslide/.code args={<#1>#2}{% \only<#1>{\pgfkeysalso{#2}} }, alt/.code args={<#1>#2#3}{% \alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}} }, global opacity/.style={ opacity=#1, text opacity=#1, every shadow/.append style={opacity=#1}, every on layer/.append style={opacity=#1}, every node/.append style={opacity=#1}, prefix after command={\pgfextra{\tikzset{every pin/.style={opacity=#1}, every pin edge/.style={opacity=#1}, every label/.style={opacity=#1}}}}, }, invisible/.style={global opacity=0}, visible/.style={global opacity=1}, visible on/.style={alt=#1{}{invisible}}, invisible on/.style={alt=#1{invisible}{}}, } \begin{document} \begin{frame} \begin{tikzpicture} \node[draw, visible on=<1>] (fp) {First Page}; \node[draw, visible on=<2>] (sp) {Second Page}; \node[draw, fit=(fp)(sp)] {}; \end{tikzpicture} \end{frame} \end{document} --nextPart4414622.3daJWjYHZt-- --nextPart6856278.j6PcuT4dK6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEM/tVN9WpYYHnPZHxloeAdSYJHeoFAmZxPRwACgkQloeAdSYJ Heq3gQv/VpXbCZExElPS4SqxBcKIKKIpYJj/5FwDcru9/UfYZPvmwO1u83J7UBuY lyWY9AQIpP8wIbT+Mz7fp8QVyD7gt0FRiezuuGpKlyMtWKsy0T3nGvS8eYDGQ8KA QPk6axawxoJVO/KWXbCkLZWjwrIU6K+b9gJOlE6w0rpfGQGmhXYV+a8XMkEHm+ih 0k/XQUxlCXS1C8FxJiPjyfoNmJdjM7dk2Tbx0kG+kQmTuJ+jWdoC7Yoo7WAg7RnQ DP4DjXmbTy83FV5Wwzv/k1I5uIja0udQNH+kglpvnpFCHjIyrl1+Hn0wt/0XtW9h bOD1OC128NAEkPew7RcinMNWZD4gC0l2VqO3iz6V3/hk+Va8j4O2Wit2SSprhwuB CG0LxAPpe60Zgi8WnqdpWS9v7c1x2UutIF07115+O7fBJLZIPbVifXysdnipZeQr AnfzwLYDt9kcR+C69jmVciXCDYMpwV7I8V+nBRJ0p/nmCfiwWd9pAD0vvHyGxOlX 0SS2ZmoP =pbpP -----END PGP SIGNATURE----- --nextPart6856278.j6PcuT4dK6-- --===============8841163603009689046== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============8841163603009689046==--