From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88633 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Framed text and page breaks Date: Tue, 2 Sep 2014 12:22:10 -0400 (EDT) Message-ID: References: <5405EE32.3020303@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1409674964 3006 80.91.229.3 (2 Sep 2014 16:22:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2014 16:22:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 02 18:22:39 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XOqqs-00033v-HW for gctc-ntg-context-518@m.gmane.org; Tue, 02 Sep 2014 18:22:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 567D910299 for ; Tue, 2 Sep 2014 18:22:38 +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 DoP8qZRhclMp for ; Tue, 2 Sep 2014 18:22:38 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 58B9210226 for ; Tue, 2 Sep 2014 18:22:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 273AD101E6 for ; Tue, 2 Sep 2014 18:22:27 +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 ho6-htuCFPlj for ; Tue, 2 Sep 2014 18:22:24 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 55D78101E1 for ; Tue, 2 Sep 2014 18:22:24 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s82GJnlQ005018 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 2 Sep 2014 18:19:58 +0200 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By hackers.mr.itd.umich.edu ID 5405EEB4.97A7C.32035 ; Authuser adityam; 2 Sep 2014 12:22:12 EDT In-Reply-To: <5405EE32.3020303@gmail.com> User-Agent: Alpine 2.03 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=Michigan; city=Ann Arbor; latitude=42.2734; longitude=-83.7133; http://maps.google.com/maps?q=42.2734,-83.7133&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WMKgjOdU - d466ce235e75 - 20140902 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:88633 Archived-At: If you just want to reduce the width of paragraphs, use the narrower environment. If you also want frames or background colors that break across page, use the background environment. If you want floats and parshape to also work, use the textbackground environment. Aditya On Tue, 2 Sep 2014, Keith McKay wrote: > Colleagues > > I've been struggling today with trying to change paragraph width of selected > paragraphs within the body text of a novel I'm typesetting. I thought that > the way to do this would be by framing the text that I would like to reduce > the paragraph width off. However the framed text doesn't seem to honour page > breaks and just seems to disappear off the page bottom. Also the framed text > starts on a new page which I do not want to happen. > > Any suggestions on how I may go about solving this problem? > > Best Wishes > Keith McKay > > Here is an example tex file which shows these effects: > \definepapersize[book][width=5.06in,height=7.81in] > > \setuppapersize [book][] > > \setuplayout > [width=middle,backspace=12.5mm,cutspace=12.5mm,height=middle,topspace=12.7mm,bottomspace=12.7mm] > > \starttext > > \dorecurse{2}{\input ward \blank} > > \midaligned > > \framed[frame=off,width=5cm,align={width,nothyphenated,verytolerant,stretch},before=\blank]{\dorecurse{4}{\input > ward \blank}} > > \dorecurse{2}{\input ward \blank} > > \stoptext > > ___________________________________________________________________________________ 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 ___________________________________________________________________________________