From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26779 Path: news.gmane.org!not-for-mail From: nico Newsgroups: gmane.comp.tex.context Subject: Re: Extending the black circled numbers Date: Tue, 04 Apr 2006 20:42:55 +0200 Message-ID: References: <44323F0E.1040600@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1144176157 3958 80.91.229.2 (4 Apr 2006 18:42:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Apr 2006 18:42:37 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 04 20:42:33 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 1FQqTf-0006aq-08 for gctc-ntg-context-518@m.gmane.org; Tue, 04 Apr 2006 20:42:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ACA12127A1; Tue, 4 Apr 2006 20:42:06 +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 26677-01; Tue, 4 Apr 2006 20:42:06 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F02611278B; Tue, 4 Apr 2006 20:40:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 380181278B for ; Tue, 4 Apr 2006 20:40:09 +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 26050-03 for ; Tue, 4 Apr 2006 20:40:08 +0200 (CEST) Original-Received: from swip.net (mailfe05.tele2.fr [212.247.154.140]) by ronja.ntg.nl (Postfix) with SMTP id 1C72A12784 for ; Tue, 4 Apr 2006 20:40:07 +0200 (CEST) X-T2-Posting-ID: 3brHPWvyEzVNt0QNlxQWsxGJRDYe7rueGgqwO1zxZAg= X-Cloudmark-Score: 0.000000 [] Original-Received: from [83.177.224.210] (HELO localhost) by mailfe05.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 72380698 for ntg-context@ntg.nl; Tue, 04 Apr 2006 20:40:04 +0200 Original-To: "mailing list for ConTeXt users" In-Reply-To: <44323F0E.1040600@elvenkind.com> 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:26779 Archived-At: On Tue, 04 Apr 2006 11:40:30 +0200, Taco Hoekwater wrote: > nico wrote: >> Hello, >> >> For those who know, I'm trying to have the DocBook callout mechanism >> with >> context. [...]. Typically the numbers are rendered white in black >> circle. I could use the Dingbats numbers, but it is limited to 10, so >> 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?) > > This is pretty smart, I'd say. Of course it would be better to have an > official font with encircled numbers for reasons of efficiency, but this > looks pretty good and the code is quite clean so i believe you did > well enough. Ok, thanks. > One remark only: if you would know that want them all the > same size (beforehand), you can call \evalwidth only once. I tried this, but I had a weird behaviour with size (I have the same behaviour with the Hans example), and the other thing is that the size to use depends on the environment where you are. In the verbatim text (where I ask small font) the circled numbers must be smaller than in the current text flow. >> - What should I do to make them as anchors, so that it can be >> cross-referenced (I mean, one can click on a hot spot that jump to the >> number in the verbatim text). > > Like this maybe: > > \def\markline#1% > {\conum{#1}% > \expanded{\textreference[line#1]{\noexpand\conum{#1}}}} > \def\refline#1{\in{line }[line#1]} > > \dorecurse{99}{\markline{\recurselevel}, } > \dorecurse{99}{\refline{\recurselevel}, } Yes, it works fine! Thanks much! Regards, BG