From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83022 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: orphans and widows in poems Date: Sun, 16 Jun 2013 22:29:57 -0400 (EDT) Message-ID: References: <51BD6D5D.4060203@web.de> <51BE5A23.1010809@meahan.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-73982504-1371436199=:4417" X-Trace: ger.gmane.org 1371436223 13285 80.91.229.3 (17 Jun 2013 02:30:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Jun 2013 02:30:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 17 04:30:25 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UoPD6-0005kv-FR for gctc-ntg-context-518@m.gmane.org; Mon, 17 Jun 2013 04:30:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6465610200; Mon, 17 Jun 2013 04:30:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FHF-d97xd6pS; Mon, 17 Jun 2013 04:30:18 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3C6C2101E6; Mon, 17 Jun 2013 04:30:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 32086101E6 for ; Mon, 17 Jun 2013 04:30:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id drbSm-Ol64bc for ; Mon, 17 Jun 2013 04:30:14 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id CC8C1101E0 for ; Mon, 17 Jun 2013 04:30:03 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5H2U1SE013926 for ; Mon, 17 Jun 2013 04:30:02 +0200 Original-Received: FROM mint ((null) [70.52.113.158]) By hellskitchen.mr.itd.umich.edu ID 51BE74A7.7CAB9.10761 ; Authuser adityam; 16 Jun 2013 22:29:59 EDT In-Reply-To: <51BE5A23.1010809@meahan.net> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QJNeu18i - 319b49d50592 - 20130617 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83022 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-73982504-1371436199=:4417 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Sun, 16 Jun 2013, Bill Meahan wrote: > On 6/16/2013 3:46 AM, Pablo Rodr=EDguez wrote: >>=20 >>=20 >> I'm afraid that I get widow lines in the lines environment. >>=20 >> Is there no way to avoid orphans and widows in the lines environment? > It's a bit ugly, but if the poem consists of individual stanzas, you can = put=20 > each stanza in an non-bordered frame. > > e.g.: > % Set up the lines environment to put the contained lines in a frame so t= hey=20 > are kept together > \setuplines[indenting=3D{yes,small,even}, <-- whatever options you= want > before=3D{\startframedtext[frame=3Doff]}, > after=3D\stopframedtext] > > % Then wrap your stanzas in individual line environments > \startlines > A maiden fair was seated there, > Her hair of fine-spun gold. > Azure eyes so clear and bright, > So wondrous to behold. > \stoplines > > A frame will never be split across pages. > > BTW this "trick"is on the wiki on the "Verse" page. If the poem consists of stanzas with fixed number of lines, say 4, then=20 you could also try: \setuplines[inbetween=3D{\testpage[4]\blank}] This will ensure that a stanza does not break across pages. Aditya --8323329-73982504-1371436199=:4417 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --8323329-73982504-1371436199=:4417--