ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: Transparency in external PDFs does not work
Date: Mon, 17 Jun 2024 23:50:16 +0200	[thread overview]
Message-ID: <36a19279-c9cc-4b8f-b616-63b873d17cac@xs4all.nl> (raw)
In-Reply-To: <7501902.aoefvbuG5b@falbala>

[-- Attachment #1: Type: text/plain, Size: 1148 bytes --]

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)

the attached works ok

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

[-- Attachment #2: gif.tex --]
[-- Type: text/plain, Size: 221 bytes --]


\starttext
    \startTEXpage[offset=1pt]
        \colored[a=1,t=.5,r=1]{\framed{test 1}}
    \stopTEXpage
    \startTEXpage[offset=1pt]
        \colored[a=1,t=.5,b=1]{\framed{test 2}}
    \stopTEXpage
\stoptext

[-- Attachment #3: test.tex --]
[-- Type: text/plain, Size: 285 bytes --]

\nopdfcompression

\starttext
%     \externalfigure[fig.pdf][page=1]
    \externalfigure[gif.pdf][page=1]
    \externalfigure[gif.pdf][page=2]
    \startoverlay
        {\externalfigure[gif.pdf][page=1]}
        {\externalfigure[gif.pdf][page=2]}
    \stopoverlay
\stoptext

[-- Attachment #4: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2024-06-17 21:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-17 15:07 [NTG-context] " Gerion Entrup
2024-06-17 18:38 ` [NTG-context] " Pablo Rodriguez via ntg-context
2024-06-17 21:50 ` Hans Hagen [this message]
2024-06-18  7:54   ` Gerion Entrup
2024-06-19  7:50     ` Hans Hagen
2024-06-21 12:41       ` Gerion Entrup
2024-06-21 14:24         ` Hans Hagen via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=36a19279-c9cc-4b8f-b616-63b873d17cac@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).