From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: [NTG-context] Re: Transparency in external PDFs does not work
Date: Fri, 21 Jun 2024 16:24:21 +0200 [thread overview]
Message-ID: <d60ea6fe-f596-469b-81d3-93f4772ff8ba@freedom.nl> (raw)
In-Reply-To: <48119898.XUcTiDjVJD@falbala>
On 6/21/2024 2:41 PM, Gerion Entrup wrote:
> Am Mittwoch, 19. Juni 2024, 09:50:33 MESZ schrieb Hans Hagen:
>> On 6/18/2024 9:54 AM, Gerion Entrup wrote:
>>> 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.
>> If you use that kind of simple graphics, you can avoid this transparency
>> hacking by using metafun:
>>
>> \setupbodyfont[dejavu]
>>
>> \starttext
>>
>> \startuseMPgraphic{test}
>> pickup pencircle scaled 2mm ;
>> draw fullcircle scaled 3cm withcolor darkred withstacking 1 ;
>> draw fullcircle scaled 2cm withcolor darkblue withstacking 2 ;
>> draw textext("one") withcolor darkgreen withstacking 11 ;
>> draw textext("two") withcolor darkgreen withstacking 12 ;
>> draw textext("three") withcolor darkgreen withstacking 13 ;
>> \stopuseMPgraphic
>>
>> \startTEXpage[offset=.25ts]
>> \useMPgraphic{test}{stacking={1,11}}
>> \stopTEXpage
>>
>> \startTEXpage[offset=.25ts]
>> \useMPgraphic{test}{stacking={2,12}}
>> \stopTEXpage
>>
>> \startTEXpage[offset=.25ts]
>> \useMPgraphic{test}{stacking={1,2,13}}
>> \stopTEXpage
>>
>> \stoptext
>>
>> It's an already old feature but probably not that well known. If needed
>> I can make something similar at the tex end.
>>
>> Hans
>
> Thank you for the example, but learning metafun is another chapter and the
> graphics are much more complicated than the minimal example given.
>
> I saw that you pushed an updated version that fixes the bug [1]. Thank you!
>
> Gerion
>
> [1] https://github.com/contextgarden/context/commit/0bcdd3ce47a406ed7852724504e3efe28bc2d9e1#diff-603950e83d66ef32e79066259f4f456250f9f3ae795ade93db2df48d0da1034d
The next upload will have an example of something similar at the \TEX\
end (i made it a few days ago but no upload yet). An exmaple can (then)
be found in:
stacking-001.tex
in the test suite.
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2024-06-21 14:25 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
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 [this message]
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=d60ea6fe-f596-469b-81d3-93f4772ff8ba@freedom.nl \
--to=ntg-context@ntg.nl \
--cc=j.hagen@freedom.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).