From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88634 Path: news.gmane.org!not-for-mail From: Keith McKay Newsgroups: gmane.comp.tex.context Subject: Re: Framed text and page breaks Date: Tue, 02 Sep 2014 17:52:47 +0100 Organization: The PotHole Press Message-ID: <5405F5DF.5090104@gmail.com> 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 1409676802 27499 80.91.229.3 (2 Sep 2014 16:53:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2014 16:53:22 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 02 18:53:17 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 1XOrKM-0002oU-FR for gctc-ntg-context-518@m.gmane.org; Tue, 02 Sep 2014 18:53:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03D3510289 for ; Tue, 2 Sep 2014 18:53:06 +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 HFGGpU+eqziC for ; Tue, 2 Sep 2014 18:53:05 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4205210227 for ; Tue, 2 Sep 2014 18:52:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 542C2101E6 for ; Tue, 2 Sep 2014 18:52:55 +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 OP2H6nzVlVpM for ; Tue, 2 Sep 2014 18:52:50 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 33252101E1 for ; Tue, 2 Sep 2014 18:52:50 +0200 (CEST) Original-Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s82GqhHl015330 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 2 Sep 2014 18:52:43 +0200 Original-Received: by mail-wi0-f181.google.com with SMTP id e4so8258267wiv.8 for ; Tue, 02 Sep 2014 09:52:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:organization:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=xnsyde/1e8EyrmDWr5fx/9sJiQ88q8qLFyeuWm0jX70=; b=JPECFOKROZrsT45AWeRng8qBzgw3OEypSw8sqGKMwIM6tS81xGKPe4JFAu1k9K+xqC WkfnVBRvJ2kuXjCJjMZeFCvH2E68eYH+vUuCJZcsPPfPoQq5UDQmHLGVNRsHSfnhJOYM TrIjVX10mrEBb9rMnuAz8Vw8TsemH52GmN0fKIRSTbUu5N+qgD5Oi33sYpBbdoJ+BqNc 9odouzRdKmP1R9okQdM7epyaF/nbN79RiA/A/Ez41IHESEWTYAOprtrQpPKN26ZEkIx0 E5DYZBhHYmvitp5C82QU7RuTZrp/8OIcvQcONxSRDJAGc2J5rK8jOhoLkrkCO+R3uMsk pLwA== X-Received: by 10.194.171.37 with SMTP id ar5mr39809600wjc.69.1409676769046; Tue, 02 Sep 2014 09:52:49 -0700 (PDT) Original-Received: from Keiths-Mac-mini.local (cpc12-uddi22-2-0-cust219.20-3.cable.virginm.net. [82.15.155.220]) by mx.google.com with ESMTPSA id o10sm11541238wia.0.2014.09.02.09.52.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Sep 2014 09:52:48 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::235; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07MKgQHNe - 0e07664d27d5 - 20140902 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:88634 Archived-At: Thank you Aditya! Your hint to using the narrower environment lead me to \startnarrower \stopnarrower on the wiki which was exactly what I was looking for. Thanks again Best Wishes Keith McKay On 02/09/2014 17:22, Aditya Mahajan wrote: > 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 > ___________________________________________________________________________________ > ___________________________________________________________________________________ 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 ___________________________________________________________________________________