Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with SMTP id p8LE3wwG018380 for ; Wed, 21 Sep 2011 16:03:59 +0200 Received: (qmail 18310 invoked by alias); 21 Sep 2011 14:03:53 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 21 Sep 2011 14:03:52 -0000 Received: from relay2.uni-heidelberg.de (EHLO relay2.uni-heidelberg.de) [129.206.210.211] by mx0.gmx.net (mx051) with SMTP; 21 Sep 2011 16:03:52 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p8LE1Ct5015797 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Sep 2011 16:01:12 +0200 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p8LDSfIt023745; Wed, 21 Sep 2011 16:01:10 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1607957 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 21 Sep 2011 16:01:10 +0200 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p8LE1AeA027140 for ; Wed, 21 Sep 2011 16:01:10 +0200 Received: from mail.ams.org (mail.ams.org [130.44.10.30]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id p8LE0Zi3021305 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Wed, 21 Sep 2011 16:00:41 +0200 References: <4E79D279.2050901@morningstar2.co.uk> <4E79E2B7.6080906@residenset.net> User-Agent: Alpine 2.00 (LRH 1167 2008-08-23) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Message-ID: Date: Wed, 21 Sep 2011 10:00:28 -0400 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Barbara Beeton Subject: Re: \interlinepenalties To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <4E79E2B7.6080906@residenset.net> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (eXpurgate); Detail=5D7Q89H36p4vk16szHxzelTR/+8Eo1SG0Ue0TFuf2Chqtax9BNR7jWqU+B11ecotGsvBt tfEqlfTsChlGhjXGRJVDB5SFxDmu3yNSLF7kpgRl95HHwt+vljX9zsU0Ut6+soz0UmYGVHRDc04J W3y8leA013vPsrdh14z9Cp02euzcnLpRNX2ahhUvb6j/xVg6Gh3n+hH6Uc=V1; X-Resent-By: Forwarder X-Resent-For: rainer.schoepf@gmx.net X-Resent-To: rainer@rainer-schoepf.de Status: R X-Status: X-Keywords: X-UID: 6889 On Wed, 21 Sep 2011, Lars Hellstr?m wrote: Joseph Wright skrev 2011-09-21 14.03: > Hello all, > > I am currently working on some galley-related code, and looking at the > e-TeX extensions to Knuth's paragraph-breaking penalty system. The roles > of \clubpenalties, \widowpenalties and \displaywidowpenalties are clear, > and it seems reasonable to provide a documented interface to these > primitives. On the other hand, \interlinepenalties (None of these are e-TeX extensions, AFAICT.) if you mean *explicitly* the plurals, then these must be e-tex; i'm not familiar with the plural forms. the singular forms are all tex primitives. > seems to be very > difficult both to explain and to see a real case for use. Does anyone > have experience in using \interlinepenalties, and if so can then suggest > a good example where it works to solve a real-life problem. I don't have experience of using it (at least as far as I recall), but rereading now the TeXbook description of it, I realise there are a couple of cases where I could well have had reason to use it. Imagine a situation where you have a long list (typically not in the \begin{list}...\end{list} sense) of items -- e.g. lines of source code -- which usually fit on one line but sometimes need to be broken into several, and therefore constitute paragraphs; it is then natural to discourage page breaks inside an item. Of course, for items less than four lines long the \clubpenalty and \widowpenalty will usually have significant effect along these lines anyway, but I can see \interlinepenalty being closer to what my actual intent would be. there are definitely situations where a paragraph of more than 4 lines must be all together on a page, and in such a case, \interlinepenalty=10000 is a much cleaner solution than putting the paragraph in a box, since it avoids vertical spacing problems with top-lines-with-no-ascenders and bottom-lines-with-no-descenders. -- bb