From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48002 Path: news.gmane.org!not-for-mail From: Alan Stone Newsgroups: gmane.comp.tex.context Subject: Re: paragraph question Date: Thu, 5 Mar 2009 15:08:56 +0100 Message-ID: <326847810903050608x730000b1i94aef6cb35baf23@mail.gmail.com> References: <326847810903030349q2e35ee55n56aab7ed6460c5b4@mail.gmail.com> <326847810903040802r6b25cb96j3df75626ecffb37e@mail.gmail.com> <20090304223836.GD19777@atos.labs.wmid.amu.edu.pl> <49AF87E7.2080907@wxs.nl> <326847810903050445s1babea4euf52c2bfa90295354@mail.gmail.com> <49AFCBD6.1090509@wxs.nl> <326847810903050525l64eb60e4qdbc02212f5f4d088@mail.gmail.com> <7DD27721-D0DD-4DEA-85F1-4F55ED09E4DB@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1236262198 5776 80.91.229.12 (5 Mar 2009 14:09:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Mar 2009 14:09:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 05 15:11:15 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 1LfEHv-00005k-Tm for gctc-ntg-context-518@m.gmane.org; Thu, 05 Mar 2009 15:11:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BA5731FBD4; Thu, 5 Mar 2009 15:09:40 +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 10007-03-4; Thu, 5 Mar 2009 15:09:06 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9AB2D1FB64; Thu, 5 Mar 2009 15:09:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9E9081FB64 for ; Thu, 5 Mar 2009 15:09:05 +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 10761-01-4 for ; Thu, 5 Mar 2009 15:08:59 +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 10B4F1FB1F for ; Thu, 5 Mar 2009 15:08:59 +0100 (CET) Original-Received: from mail-ew0-f178.google.com (mail-ew0-f178.google.com [209.85.219.178]) by filter3-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n25E8uok005948 for ; Thu, 5 Mar 2009 15:08:56 +0100 Original-Received: by ewy26 with SMTP id 26so1863839ewy.2 for ; Thu, 05 Mar 2009 06:08:56 -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=i1ol7U0oH1UJKk3l7dowSfLBTOsc3Bhg1aaG9A2GmQM=; b=ZviEmaZDTgDnpIg/Sxpic8HVgYWJSuIQglLvNcX1Ia6iFd+Zwv8p0DNFzR2WA5W6h7 DwvpSQyg2eCVNpWn2A+PZD1b6K+j5US9giJ/l+cYbUCTuN+3YQGckLcspC1xsk5GfsLH U5cSRyEh3hVYZFwpbTLUIXPwXMxiJMrtwDCGE= 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=nfZaS+sLZNd9LOzm8gNqL6ai2Yn78/RnX0TsjtJxwwvRk8f9O807RULRmd/NDeSPXc IFAe8ier0i2JQ5cqopbzwaWeWnwxpJB+Qkn/9YBpSCAPJrGpyBxXR6ozwtH6eezzmbxo k37XLOaoifDNQPCr1cWghaxmecgtKLctTFMj4= Original-Received: by 10.216.28.209 with SMTP id g59mr721960wea.96.1236262136129; Thu, 05 Mar 2009 06:08:56 -0800 (PST) In-Reply-To: <7DD27721-D0DD-4DEA-85F1-4F55ED09E4DB@gmail.com> 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: 189127619 - 4e2084f0642a 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:48002 Archived-At: Thanks Wolfgang, however I'm looking for a solution without adding additional commands to the text source. Requires to switch to the LuaTeX list ? Alan On Thu, Mar 5, 2009 at 2:44 PM, Wolfgang Schuster wrote: > > Am 05.03.2009 um 14:25 schrieb Alan Stone: > >> After giving it some further thought and with reference to "specifies >> the number of lines in the >> paragraph so far", I don't need to know the paragraph's number of >> lines but whether its "number of lines" =3D 1 or not. > > > You can test whether the last paragraph had 1 or more lines and make > your decision dependent on the result but this can be done only after > the paragraph ist finished. > > \def\paragraphlines > =A0{\blank % Finish the last paragraph > =A0 \ifnum\prevgraf=3D1 What I want.\else Too many lines.\fi > =A0 \blank} > > \starttext > > \dorecurse{30}{text }\paragraphlines > > \dorecurse{10}{text }\paragraphlines > > \dorecurse{50}{text }\paragraphlines > > \stoptext > > 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 =A0: http://www.pragma-ade.nl / http://tex.aanhet.net > archive =A0: https://foundry.supelec.fr/projects/contextrev/ > wiki =A0 =A0 : http://contextgarden.net > _________________________________________________________________________= __________ > -- = Alan ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________