From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48046 Path: news.gmane.org!not-for-mail From: Alan Stone Newsgroups: gmane.comp.tex.context Subject: Re: paragraph question Date: Fri, 6 Mar 2009 10:42:50 +0100 Message-ID: <326847810903060142i55cf33a3y198519e9e2fa666b@mail.gmail.com> 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> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236333733 24934 80.91.229.12 (6 Mar 2009 10:02:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Mar 2009 10:02:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 06 11:03:28 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 1LfWtr-0008SP-5o for gctc-ntg-context-518@m.gmane.org; Fri, 06 Mar 2009 11:03:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 728E21FADB; Fri, 6 Mar 2009 11:02:03 +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 11954-03; Fri, 6 Mar 2009 10:59:37 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EA9071FB57; Fri, 6 Mar 2009 10:54:30 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3C3801FB74 for ; Fri, 6 Mar 2009 10:48:29 +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 08969-03 for ; Fri, 6 Mar 2009 10:46:08 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id 661391FB49 for ; Fri, 6 Mar 2009 10:44:41 +0100 (CET) Original-Received: from mail-ew0-f178.google.com (mail-ew0-f178.google.com [209.85.219.178]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n269goTR019807 for ; Fri, 6 Mar 2009 10:44:10 +0100 Original-Received: by ewy26 with SMTP id 26so148931ewy.2 for ; Fri, 06 Mar 2009 01:42:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=BNxGCgtIIBaJEKjxiKBM6CE2Jk8YOeKbJmKkqDG0rxA=; b=iDgYjTBmsv1byuAhqvyCD3de2w5yEV8t/0+5HDZwInSbZck7hQemupNu0x8xH2himo zWS08x+Vxen7zu/WHASCe/8V6IyEsI8TReHmCQ3gl5Epqr4lzWeawt4JrI/XLA2wTMhH LkMoheb8Cr0pyUY2FXjXL+PJT0pjEPvDpwbZc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Yz6ZiTGkTt77BaXgDzvel6/rXST4bxGsN1tqYwJVfSn+TbrHVgdC7hzzb0wZBOBkIp S/FHytGuhUWj/7SjZP1iLyOYOlLFLnkPd7MAIydvQipBMJdlxAwa2lIz02+apwtKaury /tMC/wqLzkgQX3m57VL79loJEkl9fdCrt5Ly4= Original-Received: by 10.216.36.80 with SMTP id v58mr1153446wea.193.1236332570789; Fri, 06 Mar 2009 01:42:50 -0800 (PST) In-Reply-To: <49B01B7B.7030807@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.178; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 189520709 - 329de8943a65 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:48046 Archived-At: 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 Alan ___________________________________________________________________________________ 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 ___________________________________________________________________________________