From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22475 Path: news.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re[2]: Bold BibTeX refs in text? Date: Tue, 13 Sep 2005 16:09:05 +0200 Message-ID: <1827514842.20050913160905@iol.it> References: <1216286272.20050913120530@iol.it> <4326C529.7070109@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 1126620985 25381 80.91.229.2 (13 Sep 2005 14:16:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Sep 2005 14:16:25 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 13 16:16:22 2005 Return-path: 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 1EFBYJ-0007kk-Vh for gctc-ntg-context-518@m.gmane.org; Tue, 13 Sep 2005 16:14:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BFA141282E; Tue, 13 Sep 2005 16:14:27 +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 26262-02-6; Tue, 13 Sep 2005 16:14:24 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AD2C71282B; Tue, 13 Sep 2005 16:14:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 143F71282B for ; Tue, 13 Sep 2005 16:14:19 +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 26262-02-5 for ; Tue, 13 Sep 2005 16:14:18 +0200 (CEST) Original-Received: from smtp7.libero.it (smtp7.libero.it [193.70.192.90]) by ronja.ntg.nl (Postfix) with ESMTP id 02F631282A for ; Tue, 13 Sep 2005 16:14:15 +0200 (CEST) Original-Received: from localhost (172.16.1.84) by smtp7.libero.it (7.0.027-DD01) id 431C36B40075F04D for ntg-context@ntg.nl; Tue, 13 Sep 2005 16:14:15 +0200 Original-Received: from smtp1.libero.it ([172.16.1.96]) by localhost (asav5.libero.it [193.70.192.154]) (amavisd-new, port 10024) with ESMTP id 06685-03-4 for ; Tue, 13 Sep 2005 16:14:14 +0200 (CEST) Original-Received: from OBLOMOV (adsl-2-64.38-151.net24.it [151.38.64.2]) by smtp1.libero.it (Postfix) with ESMTP id AEA36A8E48 for ; Tue, 13 Sep 2005 16:10:48 +0200 (MEST) X-Mailer: The Bat! (v3.5.25) Professional X-Priority: 3 (Normal) Original-To: mailing list for ConTeXt users In-Reply-To: <4326C529.7070109@elvenkind.com> X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22475 Archived-At: Tuesday, September 13, 2005 Taco Hoekwater wrote: > The actual compression of the numbers is done by a macro written > by Hans (syst-new.tex) and I don't quite understand how it works, > but ... please try this patch: > \unprotect > \def\doverysimplebibnumref#1#2% > {\refsep > \ifcase#1\relax ??\else > \def\tempa{#2}% > \ifx\empty\tempa#1\else > \ifnum#1<\numexpr#2-1\relax > #1\bibalternative\c!inbetween#2% > \else > #1\refsep#2% > \fi > \fi > \fi} > \protect > That should keep on working even if/after Hans' macro is changed > sometime in the future. Works all right, thanks. -- Giuseppe "Oblomov" Bilotta