From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47988 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: paragraph question Date: Thu, 05 Mar 2009 09:05:59 +0100 Message-ID: <49AF87E7.2080907@wxs.nl> References: <326847810903030349q2e35ee55n56aab7ed6460c5b4@mail.gmail.com> <326847810903040802r6b25cb96j3df75626ecffb37e@mail.gmail.com> <20090304223836.GD19777@atos.labs.wmid.amu.edu.pl> 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 1236249392 28433 80.91.229.12 (5 Mar 2009 10:36:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Mar 2009 10:36:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 05 11:37:48 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 1LfAxX-00008F-6C for gctc-ntg-context-518@m.gmane.org; Thu, 05 Mar 2009 11:37:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 21CAF1FA4C; Thu, 5 Mar 2009 11:36:10 +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 27601-01; Thu, 5 Mar 2009 11:35:15 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AA48A1FADB; Thu, 5 Mar 2009 11:35:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6D0891FADF for ; Thu, 5 Mar 2009 11:34:58 +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 23913-04 for ; Thu, 5 Mar 2009 11:34:39 +0100 (CET) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by ronja.ntg.nl (Postfix) with ESMTP id 188E61FA4C for ; Thu, 5 Mar 2009 11:34:30 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by filter4-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n25AYS0B017813 for ; Thu, 5 Mar 2009 11:34:29 +0100 Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.9e) with ESMTP id 16418-1840426 for ; Thu, 05 Mar 2009 09:05:58 +0100 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: <20090304223836.GD19777@atos.labs.wmid.amu.edu.pl> 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: 188961720 - 82d8e79e5b2f X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 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:47988 Archived-At: Marcin Borkowski wrote: > Dnia Wed, Mar 04, 2009 at 05:02:40PM +0100, Alan Stone napisał(a): >>> How do you access the first paragraph of each chapter ? >> ... to calculate its number of lines ? >> >> If not possible with ConTeXt commands, is this possible with LuaTeX commands? > > Maybe redefine \par to do something like > > \def\nooflines{\prevgraf}\let\par=\oldpar > > where previously you hd \let\oldpar=\par messing around with \par is dangerous and asking for trouble ----------------------------------------------------------------- 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 ___________________________________________________________________________________