Using \defineoverlay for a framed text
Hello listmembers, I try to use a Metapost drawing as a background to a framed text. — I can not make it working though… \startuniqueMPgraphic{Markings} %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged 5mm withcolor blue; \stopuniqueMPgraphic \defineoverlay[Marks]{\useMPgraphic{Markings}} \setupframed[background=Marks] \setupframedtexts [frame=on, background=Marks] \starttext \framedtext{Hello World!} \blank \framed{Hello World!} \stoptext What is wrong with this code? Kind regards Willi
On Tue, 16 Jun 2020 14:17:09 +0200
Willi Egger
I try to use a Metapost drawing as a background to a framed text. — I can not make it working though…
\startuniqueMPgraphic{Markings} %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged 5mm withcolor blue; \stopuniqueMPgraphic
\defineoverlay[Marks]{\useMPgraphic{Markings}}
\defineoverlay[Marks][{\useMPgraphic{Markings}}] Marco
On Tue, 16 Jun 2020 14:37:17 +0200
Marco Patzer
On Tue, 16 Jun 2020 14:17:09 +0200 Willi Egger
wrote: I try to use a Metapost drawing as a background to a framed text. — I can not make it working though…
\startuniqueMPgraphic{Markings} %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged 5mm withcolor blue; \stopuniqueMPgraphic
\defineoverlay[Marks]{\useMPgraphic{Markings}}
\defineoverlay[Marks][{\useMPgraphic{Markings}}]
Better: \defineoverlay[Marks][\useMPgraphic{Markings}] Marco
Hi Marco, thank you! :-) Willi
On 16 Jun 2020, at 14:44, Marco Patzer
wrote: On Tue, 16 Jun 2020 14:37:17 +0200 Marco Patzer
wrote: On Tue, 16 Jun 2020 14:17:09 +0200 Willi Egger
wrote: I try to use a Metapost drawing as a background to a framed text. — I can not make it working though…
\startuniqueMPgraphic{Markings} %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged 5mm withcolor blue; \stopuniqueMPgraphic
\defineoverlay[Marks]{\useMPgraphic{Markings}}
\defineoverlay[Marks][{\useMPgraphic{Markings}}]
Better:
\defineoverlay[Marks][\useMPgraphic{Markings}]
Marco ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (2)
-
Marco Patzer
-
Willi Egger