From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49680 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: framed text question Date: Tue, 21 Apr 2009 09:10:16 -0400 (EDT) Message-ID: References: <82459.44879.qm@web30008.mail.mud.yahoo.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240319616 21837 80.91.229.12 (21 Apr 2009 13:13:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Apr 2009 13:13:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 21 15:14:55 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LwFoD-0005at-Kw for gctc-ntg-context-518@m.gmane.org; Tue, 21 Apr 2009 15:14:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C43681FB6D; Tue, 21 Apr 2009 15:13:16 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10364-02; Tue, 21 Apr 2009 15:11:11 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E917D1FB49; Tue, 21 Apr 2009 15:11:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CC10C1FB49 for ; Tue, 21 Apr 2009 15:11:06 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03007-03 for ; Tue, 21 Apr 2009 15:10:38 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id 45D091FB38 for ; Tue, 21 Apr 2009 15:10:38 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n3LDAajV009971 for ; Tue, 21 Apr 2009 15:10:37 +0200 Original-Received: FROM [192.168.2.8] (c-76-127-178-8.hsd1.ct.comcast.net [76.127.178.8]) By tombraider.mr.itd.umich.edu ID 49EDC5CA.834E6.9177 ; Authuser adityam; 21 Apr 2009 09:10:34 EDT In-Reply-To: <82459.44879.qm@web30008.mail.mud.yahoo.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.93.161; 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: 211952692 - ee5b64de517d - 20090421 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:49680 Archived-At: On Tue, 21 Apr 2009, Jos van Gisbergen wrote: > Hi, > > I have a question regarding framed text. > To obtain framed verbatim text that breaks over pages, I use the macro > \definetextbackground. I have encountered a slight problem, however: > sometimes the upper part of the frame appears on the bottom of the > page with no text in it (because there's not enough room). The strange > thing is that if I comment out the setupcolors macro the problem > disappears (in the example that is). I sometimes use \definetextbackground[....][before={\testpage[3], .. other options .. ] The \testpage[3] checks if there is enough space to put three lines, if not it issues a page break. In most cases this gets rid of the hanging empty text backgrounds at the bottom of a page. Aditya ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________