Kip Warner schrieb am 28.05.2024 um 06:29:
On Mon, 2024-05-27 at 19:44 +0200, Wolfgang Schuster wrote:
You can use the \framed solution and modify it to use a metapost
graphic as background, it also easy to replace the circle with a
hexagon etc.
\startuseMPgraphic{textcircle}
draw fullcircle
xscaled OverlayWidth
yscaled OverlayWidth
withcolor OverlayLineColor ;
\stopuseMPgraphic
\defineoverlay[textcircle][\useMPgraphic{textcircle}]
\defineframed
[textcircled]
[ width=1.5em,
height=1.5em,
frame=off,
background=textcircle,
location=low,
offset=none]
\starttext
\dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank}
\stoptext
Thank you again Wolfgang. This is very helpful and works well.
One question I have for you is how to set the colour of the circle to
match the other text on my page. I currently do the following in my
environment file:
\definecolor[colour_text][r=0.754,g=0.516,b=0.324]
\setupcolors[state=start,textcolor=colour_text,pagecolormodel=rgb]
Add
framecolor=colour_text,
to the frame settings.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________