Kip Warner schrieb am 27.05.2024 um 19:10:
On Mon, 2024-05-27 at 16:51 +0200, Wolfgang Schuster wrote:
I can't provide a circle but I can give you a box with rounded
corners.

\defineframed
    [textcircled]
    [   width=1.5em,
       height=1.5em,
     location=low,
       corner=round,
       radius=.5fw,
       offset=none]

\starttext
\dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank}
\stoptext

Thanks Wolfgang. I gave it a try on https://context-on-web.eu/, but it
failed:

    Dimensions can be in units of em, ex, in, pt, pc, cm, mm, dd, cc,
    bp, dk, or54sp; but yours is a new one! I'll assume that you meant
    to say pt, for printer's55points. two letters.

I'm not sure what it is referring to.

TeX complains about the value ".5fw" for the radius key. Hans added last year the function to add new units to ConTeXt and I used it to set the radius to half of the width of the framed box.

Use the following version of the setup for the frame which works with older ConTeXt installations because it doesn't use the feature.

\defineframed
  [textcircled]
  [   width=1.5em,
     height=1.5em,
   location=low,
     corner=round,
    %radius=.5fw,
     radius=\dimexpr\framedwidth/2\relax,
     offset=none]

\starttext
\dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank}
\stoptext

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
___________________________________________________________________________________

Reply via email to