From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48056 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: paragraph question Date: Fri, 06 Mar 2009 15:05:02 +0100 Message-ID: <49B12D8E.90002@wxs.nl> References: <326847810903030349q2e35ee55n56aab7ed6460c5b4@mail.gmail.com> <49AF87E7.2080907@wxs.nl> <326847810903050445s1babea4euf52c2bfa90295354@mail.gmail.com> <49AFCBD6.1090509@wxs.nl> <326847810903050525l64eb60e4qdbc02212f5f4d088@mail.gmail.com> <7DD27721-D0DD-4DEA-85F1-4F55ED09E4DB@gmail.com> <326847810903050608x730000b1i94aef6cb35baf23@mail.gmail.com> <49AFF929.10503@wxs.nl> <326847810903050821l655fabc4y38d5ebd3258e6b53@mail.gmail.com> <49B01B7B.7030807@wxs.nl> <326847810903060142i55cf33a3y198519e9e2fa666b@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236348389 8250 80.91.229.12 (6 Mar 2009 14:06:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Mar 2009 14:06:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 06 15:07:46 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1LfaiH-0007DQ-23 for gctc-ntg-context-518@m.gmane.org; Fri, 06 Mar 2009 15:07:45 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5E3751FB39; Fri, 6 Mar 2009 15:06:11 +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 15526-02; Fri, 6 Mar 2009 15:05:50 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1583F1FA4C; Fri, 6 Mar 2009 15:05:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 88FD21FA4C for ; Fri, 6 Mar 2009 15:05:22 +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 15500-02 for ; Fri, 6 Mar 2009 15:05:06 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by ronja.ntg.nl (Postfix) with ESMTP id B894A1FA41 for ; Fri, 6 Mar 2009 15:05:06 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by filter3-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n26E54jP006849 for ; Fri, 6 Mar 2009 15:05:05 +0100 Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.9e) with ESMTP id 16848-1840426 for ; Fri, 06 Mar 2009 15:05:04 +0100 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: <326847810903060142i55cf33a3y198519e9e2fa666b@mail.gmail.com> X-Originating-IP: 10.100.1.100 X-Authenticated-User: hagen@controller-1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.247.100.17; country=NL; region=16; city=Dronten; latitude=52.5333; longitude=5.7167; http://maps.google.com/maps?q=52.5333,5.7167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 189694076 - 817f35e8acc3 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:48056 Archived-At: Alan Stone wrote: > Another idea... > > How do you make this line counter work ? > > \newcount\parnumber > \newcount\linenumber > \def\myCounters{% > \EveryPar{% > \advance\parnumber by 1 > (P\the\parnumber) > \EveryLine{% > % (L\the\prevgraf)}} > \advance\linenumber by 1 > (L\the\linenumber)} > \linenumber=0\relax} > \parnumber=0\relax} > > \setuphead[chapter][page=,after={\myCounters}] > > \starttext > > \chapter{Chapter 0} > > Only one line. > > \dorecurse{2}{\chapter{Chapter #1}\input knuth} > > \stoptext \startlinenumbering \input tufte \stoplinenumbering ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________