From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: [NTG-context] Re: How to encircle text?
Date: Sun, 5 Nov 2023 11:27:22 +0100 [thread overview]
Message-ID: <9b87a922-853d-4472-83bf-e1406e7c70aa@freedom.nl> (raw)
In-Reply-To: <169916542048.1556.13337400902471361646@cgl.ntg.nl>
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2023-11-05 10:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-05 6:23 [NTG-context] " anton.chigurh
2023-11-05 10:27 ` Hans Hagen via ntg-context [this message]
2023-11-05 11:59 ` [NTG-context] " anton.chigurh
2023-11-05 12:14 ` Pablo Rodriguez via ntg-context
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9b87a922-853d-4472-83bf-e1406e7c70aa@freedom.nl \
--to=ntg-context@ntg.nl \
--cc=j.hagen@freedom.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).