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 p8LJwg9U005911 for ; Wed, 21 Sep 2011 21:58:43 +0200 Received: (qmail 23750 invoked by alias); 21 Sep 2011 19:58:37 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 21 Sep 2011 19:58:37 -0000 Received: from relay2.uni-heidelberg.de (EHLO relay2.uni-heidelberg.de) [129.206.210.211] by mx0.gmx.net (mx012) with SMTP; 21 Sep 2011 21:58:37 +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 p8LJu8lq022821 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Sep 2011 21:56:08 +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 p8LGSB1v023745; Wed, 21 Sep 2011 21:56:08 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1626230 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 21 Sep 2011 21:56:08 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p8LJu8ng027271 for ; Wed, 21 Sep 2011 21:56:08 +0200 Received: from anchor-post-2.mail.demon.net (anchor-post-2.mail.demon.net [195.173.77.133]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p8LJtu2F022775 for ; Wed, 21 Sep 2011 21:55:59 +0200 Received: from cremornelane.demon.co.uk ([80.177.25.195] helo=palladium.local) by anchor-post-2.mail.demon.net with esmtp (Exim 4.69) id 1R6Stf-0005jK-mM for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 21 Sep 2011 19:55:56 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 References: <4E79D279.2050901@morningstar2.co.uk> <4E79E2B7.6080906@residenset.net> <4E79E8C1.8060107@morningstar2.co.uk> <4E79F0F7.7060400@residenset.net> <4E7A1579.1000009@morningstar2.co.uk> <4E7A2EBF.3070009@latex-project.org> X-Enigmail-Version: 1.3.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4E7A414B.2020900@morningstar2.co.uk> Date: Wed, 21 Sep 2011 20:55:55 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: \interlinepenalties To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <4E7A2EBF.3070009@latex-project.org> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (Sender is in whitelist: joseph.wright@MORNINGSTAR2.CO.UK); Detail=5D7Q89H36p4L00VTXC6D4q0N+AH0PUCnBi0P5cROEGjO+pG7NAH/K+tf9SrVFtpLrKONl 2T9EL4W4U4jgzLbnCcGpk1z/zwmKT/K1fv3lD0=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: 6896 On 21/09/2011 19:36, Frank Mittelbach wrote: > Am 21.09.2011 18:48, schrieb Joseph Wright: >> On 21/09/2011 17:34, Bruno Le Floch wrote: >>> Context uses it in \keeplinestogether, but I don't see why they >>> couldn't have used \clubpenalties instead. I don't understand the >>> difference between \interlinepenalties and \clubpenalties as described >>> in etex_man: >>> >>> - the ith interline penalty value is used after line i of the paragraph; >>> - the ith club penalty value is used after line i of a partial >>> paragraph; >> >> My reading of this was that the variation comes down to whether there is >> any display math about, but in such a case I'm doubtful you'd want to >> 'keep together' in any case. As you say, in most realistic circumstances >> \clubpenalties seems to be quite usable, as you have to start from line >> 1 with \interlinepenalties too. > > I beg to disagree. The two arrays serve different purposes and in fact > \insertpenalties is the one that is more useful (and was the original > reason for providing the this additional functionality (the others are > more an afterthought to make thing orthogonal). > > Main use case: > > Ensure that after a section x lines are kept together with the section > > for this use have to use \insertpenalties as you do *not* want to > restart counting after a displayed equation, but you just want x-lines > once. (in that case you need a mechanism to restore the default status > after the first paragraph, as LaTeX today does (or rather attempts as it > not always works in TeX) with \clubpenalty for ensuring 2 lines after a > heading) > > Minor use case: > > At the beginning of a paragraph (or after a displayed equation as that > is visually simiar) you want at least 2 lines but preferably 3) then > something like > > \clubpenalties = 2 10000 8000 > > That would be a setting you could use for a whole range of paragraphs or > even for a whole document. > > you can think of others also in combination with \insertpenalties (I'm assuming you mean '\interlinepenalties' throughout.) I guess this partly depends on your view on display stuff. For me, I'm not sure how it fits into the concept of a 'line'. If I have a paragraph text text text text text text text text text text display display text text text text text text text text text text then how many lines does the display part count? Do we go with a grid-typesetting approach and measure its eight, divide by the text lien height and use the result? Do we ignore it? I guess the other problem I have is that the generalisation \interlinepenalty => \interlinepenalties seems a bit odd. The \clubpenalty => \clubpenalties is easy to understand, as both are related to the start of a paragraph. On the other hand, \interlinepenalty is a 'floating' idea with no link to the position in a paragraph, whereas \interlinepenalties does have to start at the beginning. I guess my overall concern is that I've not seen \interlinepenalties used 'in the wild', whereas \clubpenalties and \widowpenalties do seem to be in use. Perhaps that's because I'm not really involved in typesetting maths (and so the effects of display environments pass me by). -- Joseph Wright