From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26789 Path: news.gmane.org!not-for-mail From: nico Newsgroups: gmane.comp.tex.context Subject: Re: Extending the black circled numbers Date: Wed, 05 Apr 2006 00:13:41 +0200 Message-ID: References: <44326A2C.5040407@wxs.nl> <4432DC32.7090606@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=----------cxoxSXUnsdALiDOpQvAzSZ X-Trace: sea.gmane.org 1144188698 16609 80.91.229.2 (4 Apr 2006 22:11:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Apr 2006 22:11:38 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 05 00:11:36 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FQtjn-0002SY-Ja for gctc-ntg-context-518@m.gmane.org; Wed, 05 Apr 2006 00:10:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 446C6127B1; Wed, 5 Apr 2006 00:10:59 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30229-02-3; Wed, 5 Apr 2006 00:10:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7EB5F127A5; Wed, 5 Apr 2006 00:10:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C15D0127A5 for ; Wed, 5 Apr 2006 00:10:52 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30229-02-2 for ; Wed, 5 Apr 2006 00:10:50 +0200 (CEST) Original-Received: from swip.net (mailfe11.tele2.fr [212.247.155.76]) by ronja.ntg.nl (Postfix) with SMTP id BFA80127A2 for ; Wed, 5 Apr 2006 00:10:50 +0200 (CEST) X-T2-Posting-ID: 3brHPWvyEzVNt0QNlxQWsxGJRDYe7rueGgqwO1zxZAg= X-Cloudmark-Score: 0.000000 [] Original-Received: from [83.177.224.210] (HELO localhost) by mailfe11.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 4138491 for ntg-context@ntg.nl; Wed, 05 Apr 2006 00:10:49 +0200 Original-To: "mailing list for ConTeXt users" In-Reply-To: <4432DC32.7090606@wxs.nl> User-Agent: Opera M2/7.54 (FreeBSD, build 955) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:26789 Archived-At: ------------cxoxSXUnsdALiDOpQvAzSZ Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, 04 Apr 2006 22:50:58 +0200, Hans Hagen wrote: > nico wrote: >> On Tue, 04 Apr 2006 14:44:28 +0200, Hans Hagen wrote: >> >> >>> nico wrote: >>> >>>> Hello, >>>> >>>> Typically the numbers are rendered white in black >>>> circle. I could use the Dingbats numbers, but it is limited to 10, s= o >>>> that >>>> I emulated them with the following code to be able to go up to 99. >>>> >>>> The questions I have: >>>> - Is it the right way to do it in context (do I really need metafont= ? >>>> Simpler, smarter method?) >>>> >> >> >>> \setupcolors[state=3Dstart] >>> >>> \startuniqueMPgraphic{CoCircle} >>> fill fullcircle xysized (OverlayWidth,OverlayHeight) withcolor >>> OverlayColor ; >>> \stopuniqueMPgraphic >>> >> >> I see here the Hans touch again: it's better and I don't really =20 >> understand >> how it works :-) >> But there's something strange: the first circle is greater than the =20 >> others >> (but the numbers have all the same size). Tracing a bit I see that the >> first circle has a width=3D16.5333pt, the others 13.19997pt. What's th= e >> reason for this? >> > what os the exact code that you use?how many mp runs do yuo have? It's exactly the one you gave. I attach the file I compile. Two mpruns; I= =20 attach the log too. Regards, BG ------------cxoxSXUnsdALiDOpQvAzSZ Content-Disposition: attachment; filename=cotest.tex Content-Type: application/x-tex; name=cotest.tex Content-Transfer-Encoding: quoted-printable % output=3Dpdftex \setupcolors[state=3Dstart] \startuniqueMPgraphic{CoCircle} fill fullcircle xysized (OverlayWidth,OverlayHeight) withcolor Overlay= Color ; \stopuniqueMPgraphic =20 \defineoverlay[cocircle][\uniqueMPgraphic{CoCircle}] =20 \definecolor[CoBackgroundColor] [red] \definecolor[CoForegroundColor] [white] =20 \def\conum#1% {\setbox\scratchbox\hbox {\small\ss\bf \setbox\scratchbox\hbox{99}% \hbox to 1.2\wd\scratchbox{\hss#1\hss}}% \framed [background=3Dcocircle, offset=3Doverlay, frame=3Doff, width=3D\the\wd\scratchbox, height=3D\the\wd\scratchbox, backgroundcolor=3DCoBackgroundColor, foregroundcolor=3DCoForegroundColor] {\box\scratchbox}} =20 \starttext \dontleavehmode \dorecurse{99}{\conum{\recurselevel}, } \stoptext ------------cxoxSXUnsdALiDOpQvAzSZ Content-Disposition: attachment; filename=cotest.log Content-Type: application/octet-stream; name=cotest.log Content-Transfer-Encoding: quoted-printable This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) (format=3Dcont-= en 2006.3.30) 5 APR 2006 00:02 entering extended mode (/usr/local/share/texmf-local/web2c/natural.tcx) **&cont-en cotest.tex (./cotest.tex ConTeXt ver: 2006.03.25 13:21 fmt: 2006.3.30 int: english mes: englis= h language : language en is active system : cont-new loaded (/usr/local/share/texmf-local/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex color : palette rollover is available ) system : cont-old loaded (/usr/local/share/texmf-local/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/local/share/texmf-local/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys loaded (/usr/local/share/texmf-dist/tex/context/user/cont-sys.tex (/usr/local/share/texmf-local/tex/context/base/type-exa.tex) (/usr/local/share/texmf-local/tex/context/base/type-syn.tex) (/usr/local/share/texmf-local/tex/context/base/type-enc.tex) (/usr/local/share/texmf-local/tex/context/base/type-siz.tex) (/usr/local/share/texmf-local/tex/context/base/type-map.tex) (/usr/local/share/texmf-local/tex/context/base/type-spe.tex) (/usr/local/share/texmf-local/tex/context/base/type-akb.tex)) bodyfont : 12pt rm is loaded language : patterns nl->texnansi:texnansi->1->2:3 nl->ec:ec->2->2:= 3 fr-> texnansi:texnansi->3->2:3 fr->ec:ec->4->2:3 de->texnansi:texnansi->5->2:3= de->e c:ec->6->2:3 it->texnansi:texnansi->7->2:3 it->ec:ec->8->2:3 pt->texnansi= :texna nsi->9->2:3 pt->ec:ec->10->2:3 hr->ec:ec->11->2:3 pl->pl0:pl0->12->2:3 pl= ->ec:e c->13->2:3 pl->qx:qx->14->2:3 cz->il2:il2->15->2:3 cz->ec:ec->16->2:3 sk-= >il2:i l2->17->2:3 sk->ec:ec->18->2:3 sl->ec:ec->19->2:3 en->ec:ec->21->2:3 uk->= ec:ec- >22->2:3 us->ec:ec->23->2:3 da->ec:ec->24->2:3 sv->ec:ec->25->2:3 af->ec:= ec->26 ->2:3 no->ec:ec->27->2:3 deo->ec:ec->28->2:3 es->ec:ec->29->2:3 ca->ec:ec= ->30-> 2:3 la->ec:ec->31->2:3 ro->ec:ec->32->2:3 tr->ec:ec->33->2:3 fi->ec:ec->3= 5->2:3 hu->ec:ec->36->2:3 loaded specials : tex,postscript,rokicki loaded \openout2 =3D `cotest.tui'. system : cotest.top loaded (./cotest.top specials : loading definition file tpd (/usr/local/share/texmf-local/tex/context/base/spec-tpd.tex specials : loading definition file fdf (/usr/local/share/texmf-local/tex/context/base/spec-fdf.tex) specials : fdf loaded ) specials : fdf,tpd loaded ) \openout0 =3D `cotest-mpgraph.mp'. \openout0 =3D `mpgraph.mp'. color : system rgb is global activated (./cotest.tuo) (./cotest.tuo) (./cotest.tuo) (./cotest.tuo) (./cotest.tuo= ) (./cotest.tuo) (./cotest.tuo) (./cotest.tuo) (./cotest.tuo) (./cotest.tuo= ) (./cotest.tuo) (./cotest.tuo) (./cotest.tuo) systems : begin file cotest at line 29 (/usr/local/share/texmf-local/tex/context/base/pdfr-ec.tex) \openout5 =3D `cotest-mpgraph.mp'. systems : randomizer starts with 8365963 [MP to PDF] (./cotest-mpgraph.4000) fonts : resetting map file list fonts : using map file: original-base fonts : using map file: ec-public-lm fonts : using map file: ec-base fonts : using map file: 8r-base fonts : using map file: t5-base fonts : using map file: original-ams-base fonts : using map file: original-ams-euler fonts : using map file: original-public-lm (./cotest.tuo) [MP to PDF] (./cotest-mpgraph.3999) [1.1{/usr/local/share/= texmf- local/fonts/map/pdftex/context/original-empty.map}{/usr/local/share/texmf= -local /fonts/map/pdftex/context/original-base.map}{/usr/local/share/texmf-local= /fonts /map/pdftex/context/ec-public-lm.map}{/usr/local/share/texmf-local/fonts/= map/pd ftex/context/ec-base.map}{/usr/local/share/texmf-local/fonts/map/pdftex/c= ontext /8r-base.map}{/usr/local/share/texmf-local/fonts/map/pdftex/context/t5-ba= se.map }{/usr/local/share/texmf-local/fonts/map/pdftex/context/original-ams-base= .map}{ /usr/local/share/texmf-local/fonts/map/pdftex/context/original-ams-euler.= map}{/ usr/local/share/texmf-local/fonts/map/pdftex/context/original-public-lm.m= ap}] systems : end file cotest at line 31 [flush and process cotest-mpgraph.mp afterwards] )=20 Here is how much of TeX's memory you used: 1291 strings out of 60376 22080 string characters out of 604529 4540797 words of memory out of 5530891 38203 multiletter control sequences out of 10000+100000 83670 words of font info for 40 fonts, out of 500000 for 2000 232 hyphenation exceptions out of 1000 47i,18n,57p,234b,775s stack positions out of 1500i,500n,5000p,200000b,50= 00s PDF statistics: 15 PDF objects out of 300000 0 named destinations out of 131072 17 words of extra memory for PDF output out of 65536 {/usr/local/share/texmf-dist/ fonts/enc/dvips/lm/lm-ec.enc} Output written on cotest.pdf (1 page, 39735 bytes). ------------cxoxSXUnsdALiDOpQvAzSZ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ------------cxoxSXUnsdALiDOpQvAzSZ--