From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47981 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: paragraph question Date: Thu, 5 Mar 2009 00:15:46 +0100 Message-ID: <781E92AF-73A7-45E9-B34D-4C8DE5AECA0B@gmail.com> 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 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236208761 21718 80.91.229.12 (4 Mar 2009 23:19:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Mar 2009 23:19:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 05 00:20:37 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 1Lf0OD-0003Gc-B3 for gctc-ntg-context-518@m.gmane.org; Thu, 05 Mar 2009 00:20:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2E3C61FB1D; Thu, 5 Mar 2009 00:18:51 +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 26816-01; Thu, 5 Mar 2009 00:18:28 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2EC571FADB; Thu, 5 Mar 2009 00:18:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2C7821FADB for ; Thu, 5 Mar 2009 00:17:48 +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 20920-08 for ; Thu, 5 Mar 2009 00:17:29 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by ronja.ntg.nl (Postfix) with ESMTP id 74DF61FA4C for ; Thu, 5 Mar 2009 00:17:11 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by filter4-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n24NGfgW029946 for ; Thu, 5 Mar 2009 00:17:00 +0100 Original-Received: by fg-out-1718.google.com with SMTP id e21so303805fga.8 for ; Wed, 04 Mar 2009 15:16:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=Qcnvi4ZShfG5I5fCwGMmivwVsHVl0Hy04yK7XHD5P9Y=; b=k+/bVYc/9Tze5EIdumT1zynTNfcU2vtIMRfAkxMlImiouSZJFQw8TMYfuxJKg9dvOk IQ6HOuwMZWVWwn63aubj1v5gbuGebenL+Rs8kE9ycfz9kh6AVesgWM8wYUIkaip9t3Bq OP73XHcw89LXHOFDaWdk+dLJVVBmKqUvItWNQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=E5wvTOyA1VlmKClrWlz7Z6l+ZPaZXZiIwHAp8vz2PcTDEIyeo0KEPsjK1ARhDHlKyS MRupnIUKWEDzdG6iiR/bSkFNcfQhJqL7oaqymyLSfITgUkdTTmXJwd/zVQubvYgc5OMJ PdqUWO+z5z7U8IQ/RCucAMf+U6mYboSuq6oho= Original-Received: by 10.86.65.9 with SMTP id n9mr502125fga.55.1236208601847; Wed, 04 Mar 2009 15:16:41 -0800 (PST) Original-Received: from ?10.40.102.225? ([82.113.121.150]) by mx.google.com with ESMTPS id 4sm415755fge.4.2009.03.04.15.16.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 04 Mar 2009 15:16:41 -0800 (PST) In-Reply-To: <20090304223836.GD19777@atos.labs.wmid.amu.edu.pl> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.155; 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: 188762610 - 6c69a72ea4e7 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:47981 Archived-At: Am 04.03.2009 um 23:38 schrieb Marcin Borkowski: > 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 I don't think this will work without problems for a complete document. Enclosing each paragraph with \bpar ... \epar allows you to count the paragraph number since the last chapter and you can save \prevgraf at the end with twopass data for the next run. But wouldn't a direct \lettrine at the begin of the first paragraph be easier. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________