On 11/5/2023 7:23 AM, anton.chig...@mail.com wrote:
I want to use \bigcirc to encircle text.
Is there a way to do it.
if you're wiling to compensate for its depth:
\defineoverlay
[BigCirc]
[{\scale
[width=\overlaywidth]
{\setbox0\hpack{\bigcirc}\raise\dp0\box0}}]
\framed
[background=BigCirc,
% frame=off,
width=3cm,
height=3cm]
{test}
but bigcirc isn't meant for that
\startusableMPgraphic{MetaCirc}
draw fullcircle
xyscaled
(OverlayWidth-OverlayLineWidth,OverlayHeight-OverlayLineWidth)
withpen pencircle scaled OverlayLineWidth
withcolor OverlayColor ;
\stopusableMPgraphic
\defineoverlay[MetaCirc][\useMPgraphic{MetaCirc}]
\framed
[background=MetaCirc,
backgroundcolor=red,
frame=off,
rulethickness=1pt]
{test}
\framed
[background=MetaCirc,
backgroundcolor=blue,
rulethickness=.5pt]
{test}
is more flexibel in the end
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
___________________________________________________________________________________