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 p8LDFLS9007876 for ; Wed, 21 Sep 2011 15:15:22 +0200 Received: (qmail 3163 invoked by alias); 21 Sep 2011 13:15:16 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 21 Sep 2011 13:15:16 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx112) with SMTP; 21 Sep 2011 15:15:16 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id p8LDCfjh029262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Sep 2011 15:12:42 +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 p8LCq8PZ023745; Wed, 21 Sep 2011 15:12:41 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1606262 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 21 Sep 2011 15:12:41 +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 p8LDCfxQ020032 for ; Wed, 21 Sep 2011 15:12:41 +0200 Received: from csep02.cliche.se (csep02.cliche.se [195.249.40.184]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id p8LDCOuV029109 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 21 Sep 2011 15:12:28 +0200 Received: from client125-27.wireless.umu.se (client125-27.wireless.umu.se [130.239.125.27]) by csep02.cliche.se (Postfix) with ESMTP id AD1B2186606 for ; Wed, 21 Sep 2011 15:12:22 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.22) Gecko/20110902 Thunderbird/3.1.14 MIME-Version: 1.0 References: <4E79D279.2050901@morningstar2.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.uni-heidelberg.de id p8LDCfxQ020039 Message-ID: <4E79E2B7.6080906@residenset.net> Date: Wed, 21 Sep 2011 15:12:23 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: =?ISO-8859-1?Q?Lars_Hellstr=F6m?= Subject: Re: \interlinepenalties To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <4E79D279.2050901@morningstar2.co.uk> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (eXpurgate); Detail=5D7Q89H36p7zYQev1Bv5lawyulDRL8ctr/r0T6Xmmv91j6xd5qs/Mt+zK4uOuS8XlaN9V MefsGuQRGoBUTP7U5V380fBYfiFwIQ6NDucHsFCEj0qA9H9rQGIXrvqwGNYLUTtnDX4OyCpdD2UP cbmQNwxu6lpmURcC1MoaVRDIsLNe75HyLcfxQCVTpH97/M1mCleMY/E0YQ=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: 6887 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.) > 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. Lars Hellström