From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48205 Path: news.gmane.org!not-for-mail From: Alan Stone Newsgroups: gmane.comp.tex.context Subject: Re: paragraph question (the return :O) Date: Wed, 11 Mar 2009 09:06:40 +0100 Message-ID: <326847810903110106t3cc75d1cs9ef8b4ac219d9e9b@mail.gmail.com> References: <326847810903100806w49882d04p30bb179a5bc3b9b7@mail.gmail.com> <326847810903100935x7ae1ab69n3270457ab81d12@mail.gmail.com> <326847810903101014x87a9686tb35a33b9feb5455b@mail.gmail.com> <01AA6547-6B4B-479D-A841-8289BA40AB28@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0127849468==" X-Trace: ger.gmane.org 1236758852 26941 80.91.229.12 (11 Mar 2009 08:07:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Mar 2009 08:07:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 11 09:08: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 1LhJUY-0004bU-Rn for gctc-ntg-context-518@m.gmane.org; Wed, 11 Mar 2009 09:08:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 759701FB38; Wed, 11 Mar 2009 09:07:16 +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 08011-04; Wed, 11 Mar 2009 09:06:49 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 38B751FADC; Wed, 11 Mar 2009 09:06:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0179B1FADC for ; Wed, 11 Mar 2009 09:06: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 08012-07 for ; Wed, 11 Mar 2009 09:06:41 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by ronja.ntg.nl (Postfix) with ESMTP id 865381FA4C for ; Wed, 11 Mar 2009 09:06:41 +0100 (CET) Original-Received: from mail-ew0-f178.google.com (mail-ew0-f178.google.com [209.85.219.178]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2B86edR001272 for ; Wed, 11 Mar 2009 09:06:41 +0100 Original-Received: by ewy26 with SMTP id 26so1524636ewy.2 for ; Wed, 11 Mar 2009 01:06:40 -0700 (PDT) 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; bh=Wik8T6bOp2tln9oKadCM1aE7EAha3vlGf9Z5yCQEQzc=; b=K6oyGP3qsWztXfBzLHTLKtkm7/X0m8z9Jj2bF9dYp8UJGQCrwSLzsM1AdhykLW1zep fio4hAknRSCqfgR1pPqaZiMB5rZ1BZvbqXR1RIecxvA/gfvBQCj+xkG03wgg9cEPkaPk JfhD00P2QyrV9uni1eMxaOocG3YuFfob3M0dI= 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; b=aqs7YiipK4QcFDQfsP5GMnHWZOZMkoHxipHtQxVLVm9nVSPlWDTn4nVCSgvCenWNQu W7QbsW0+vmzMDjwJBbj8i+YRNOvH5mUIyfQU8hJxEkBQJuS+21uG5zlfjq2mq1OLkGCk fdplNA+WC5TNuwjoOWp4YFWbJe33R1zNoRYXA= Original-Received: by 10.216.44.211 with SMTP id n61mr3251018web.133.1236758800301; Wed, 11 Mar 2009 01:06:40 -0700 (PDT) In-Reply-To: <01AA6547-6B4B-479D-A841-8289BA40AB28@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: 191688672 - 6c0c32c54a98 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:48205 Archived-At: --===============0127849468== Content-Type: multipart/alternative; boundary=0016364efa40f700530464d35818 --0016364efa40f700530464d35818 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks Wolfgang. Digging into some TeX books to understand how and why these fixes work... Alan On Tue, Mar 10, 2009 at 6:32 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote: > > Am 10.03.2009 um 18:14 schrieb Alan Stone: > > I still say it's not a very good idea to do this >>>> >>>> In order to make an informed decision, what are you refering to Wolfgang >>>> ? >>>> >>> >>> Your \EveryPar hackery. >>> >> >> What is it about it that it's a bad idea ? >> > > Who knows, it could work or fail in a few cases. > > I apologize for my ignorance, I'm still confused with this one (see >>> attachments)... >>> >>> Why? >>> >> >> (step 3: ...) is typeset one first paragraph too far. >> > > \def\doCountLines#1\par{% > \begingroup > \setbox\scratchbox\vbox{#1\par}% > \getnoflines{\htdp\scratchbox}% > \global\parlines=\noflines\relax > % (step 2: P\space\the\parnumber, \the\parlines\space L) > \ifnum \parlines = 1 > (step 3: P\space \the\parnumber, \the\parlines\space L)% > \fi > \endgroup#1\par} > > > Wolfgang > --0016364efa40f700530464d35818 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks Wolfgang.
=A0
Digging into some TeX books to understand=A0how = and why these fixes=A0work...
=A0
Alan
=A0
On Tue, Mar 10, 2009 at 6:32 PM, Wolfgang Schust= er <schuster.wolfgang@googlemail.com> wrote:

Am 10.03.2009 um 18:14 schri= eb Alan Stone:=20


I still say it's not a very = good idea to do this

In order to make an informed decision, what are= you refering to Wolfgang ?

Your \EveryPar hackery.

What is it abo= ut it that it's a bad idea ?

Who knows, it co= uld work or fail in a few cases.

I apologize for my ignorance, I&= #39;m still confused with this one (see attachments)...

Why?

(step 3: ...) is typeset one first paragraph too far.
=

\def\doCountLines#1\par{%
=A0 =A0 =A0 \begingroup
= =A0 =A0 =A0 \setbox\scratchbox\vbox{#1\par}%
=A0 =A0 =A0 \getnoflines{\h= tdp\scratchbox}%
=A0 =A0 =A0 \global\parlines=3D\noflines\relax% =A0 =A0 =A0 (step 2: P\space\the\parnumber, \the\parlines\space L)=20

=A0 =A0 =A0 \ifnum \parlines =3D 1
=A0 =A0 =A0 =A0= =A0 =A0 =A0 (step 3: P\space \the\parnumber, \the\parlines\space L)%
= =A0 =A0 =A0 \fi
=A0 =A0 =A0 \endgroup#1\par}=20


Wolfgang
--0016364efa40f700530464d35818-- --===============0127849468== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0127849468==--