From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/5489 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: one answered Date: Tue, 04 Sep 2001 12:29:46 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20010904122838.02e426a0@server-1> References: <002e01c13524$f0e1a8e0$6501a8c0@lap> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035396079 2061 80.91.224.250 (23 Oct 2002 18:01:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:01:19 +0000 (UTC) Cc: "NTG-ConTeXt mailing list" Original-To: "Frans Goddijn" In-Reply-To: <002e01c13524$f0e1a8e0$6501a8c0@lap> Xref: main.gmane.org gmane.comp.tex.context:5489 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:5489 At 11:34 AM 9/4/2001 +0200, Frans Goddijn wrote: >Of the questions that I sent in the other day, one was answered on the >TEX-NL list, namely the one about how to encircle a character. I post the >answer here in case anyone alse wants to use it sometime: > >% ---------------------------------------------- >% macro to encircle a character >% use \rond{a} etc. >% \newcommand{\rond}[1] % this macro for LaTeX >\def\rond #1 % this one for plain TeX >{\begingroup{\ooalign{\hfil\raise.07ex\hbox{#1}% > \hfil\crcr\mathhexbox20D}} >\endgroup} >% ---------------------------------------------- actually, \omcirkeld has been part of context for years already -) For MP lovers, i add an alternative: \startreusableMPgraphic{omcirkeld} draw fullcircle xyscaled (OverlayWidth,OverlayHeight) withpen pencircle scaled OverlayLineWidth withcolor OverlayLineColor ; \stopreusableMPgraphic \defineoverlay[omcirkeld][\reuseMPgraphic{omcirkeld}] \defineframedtext [omcirkeld] [frame=off, background=omcirkeld, width=fit, offset=1ex] \setupcolors[state=start] \omcirkeld [framecolor=green] {Frans} ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------