How to encircle text?
I want to use \bigcirc to encircle text. Is there a way to do it. Tia
On 11/5/2023 7:23 AM, anton.chigurh@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 -----------------------------------------------------------------
Wow! This certainly is not the noobie version! All I wanted was to put a circle around a letter for emphasis. Thanks though
On 11/5/23 12:59, anton.chigurh@mail.com wrote:
Wow! This certainly is not the noobie version! All I wanted was to put a circle around a letter for emphasis.
Anton, it works as you intend: \starttext \startusableMPgraphic{MetaCirc} draw fullcircle xyscaled (OverlayWidth-OverlayLineWidth,OverlayHeight-OverlayLineWidth) withpen pencircle scaled OverlayLineWidth withcolor OverlayColor ; \stopusableMPgraphic \defineoverlay[MetaCirc][\useMPgraphic{MetaCirc}] a\dontleavehmode\framed [background=MetaCirc, backgroundcolor=red, frame=off, location=bottom, rulethickness=1pt] {b}c \stoptext Just in case it helps, Pablo
participants (3)
-
anton.chigurh@mail.com
-
Hans Hagen
-
Pablo Rodriguez