From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31745 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: question about linenotes Date: Sun, 5 Nov 2006 22:20:32 +0100 Message-ID: <4EB45C91-FDD7-44F7-981A-23974793A83C@uni-bonn.de> References: <501DE1D3-AF7F-4CA8-9507-F1D7D9842001@uni-bonn.de> <454E20EC.9070502@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1162761879 15465 80.91.229.2 (5 Nov 2006 21:24:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Nov 2006 21:24:39 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 05 22:24:34 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 1GgpTZ-0003k9-NE for gctc-ntg-context-518@m.gmane.org; Sun, 05 Nov 2006 22:24:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1C5EE1FFED; Sun, 5 Nov 2006 22:24:21 +0100 (CET) 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 07328-01; Sun, 5 Nov 2006 22:24:20 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2EEA91FFD7; Sun, 5 Nov 2006 22:21:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 279301FFDF for ; Sun, 5 Nov 2006 22:21:24 +0100 (CET) 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 06348-02-6 for ; Sun, 5 Nov 2006 22:21:19 +0100 (CET) Original-Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.com [194.25.134.19]) by ronja.ntg.nl (Postfix) with SMTP id 8A21F1FE98 for ; Sun, 5 Nov 2006 22:21:19 +0100 (CET) Original-Received: from fwd33.aul.t-online.de by mailout06.sul.t-online.com with smtp id 1GgpQc-00006o-02; Sun, 05 Nov 2006 22:21:18 +0100 Original-Received: from [192.168.0.2] (Z2d8V2ZX8eGWk4n04VYubX7M1SyFzu9GNeAQ8+w2sosdRTEkxux4cg@[84.172.106.161]) by fwd33.sul.t-online.de with esmtp id 1GgpQW-1FefJo0; Sun, 5 Nov 2006 22:21:12 +0100 In-Reply-To: <454E20EC.9070502@wxs.nl> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.752.2) X-ID: Z2d8V2ZX8eGWk4n04VYubX7M1SyFzu9GNeAQ8+w2sosdRTEkxux4cg@t-dialin.net X-TOI-MSGID: d8c1de16-d4ba-49d1-803f-f24d8f166950 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:31745 Archived-At: On Nov 5, 2006, at 6:35 PM, Hans Hagen wrote: > \unprotect > > \def\donoplacelinenumber > {\the\everylinenumber} > > \def\doplacelinenumber > {\ifnum\linenumber<\@@rnstart\relax > \donoplacelinenumber > \else > \ifnum\numexpr(\linenumber/\@@rnstep)*\@@rnstep\relax=\linenumber > \doattributes\??rn\c!style\c!color\dodoplacelinenumber > \else > \donoplacelinenumber > \fi > \fi} Wonderful, that works! Thanks a lot! Best Thomas