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/0bcdd3ce47a406ed7852724504e3...