From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49689 Path: news.gmane.org!not-for-mail From: Jos van Gisbergen Newsgroups: gmane.comp.tex.context Subject: Re: framed text question (Aditya Mahajan) Date: Tue, 21 Apr 2009 07:24:57 -0700 (PDT) Message-ID: <699682.28859.qm@web30005.mail.mud.yahoo.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0018056734==" X-Trace: ger.gmane.org 1240324006 5804 80.91.229.12 (21 Apr 2009 14:26:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Apr 2009 14:26:46 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 21 16:28:06 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 1LwGx1-00086q-PA for gctc-ntg-context-518@m.gmane.org; Tue, 21 Apr 2009 16:27:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2F9691FC1B; Tue, 21 Apr 2009 16:26:28 +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 12741-01-3; Tue, 21 Apr 2009 16:25:23 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1EBCC1FC00; Tue, 21 Apr 2009 16:25:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 646961FBD5 for ; Tue, 21 Apr 2009 16:25:21 +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 12741-01-2 for ; Tue, 21 Apr 2009 16:25:01 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by ronja.ntg.nl (Postfix) with ESMTP id BAC6E1FC00 for ; Tue, 21 Apr 2009 16:25:01 +0200 (CEST) Original-Received: from web30005.mail.mud.yahoo.com (web30005.mail.mud.yahoo.com [209.191.69.22]) by filter3-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with SMTP id n3LEOwaL005725 for ; Tue, 21 Apr 2009 16:24:59 +0200 Original-Received: (qmail 30760 invoked by uid 60001); 21 Apr 2009 14:24:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1240323897; bh=0hJnxDgHqmGI7VmwvVfcl3IhCMgzuBabnL3vExT4qQo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=QL82nY7RoBvINwlCH1owrhkiEsQuEJkopZnmCVvF73NQAVh8PpWhrQh0nUHRe8Xiv3V2N49XDgkcZmx0+HODvorXDRNLjTuO149OG8EtYcF3J9HhA7oCgTFbUsOz5Tss7GhRQ+Dxbl2X+oAIRDrcu9AHHhUbvTrOiPzpc3exjmw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Ypol+MznhhpXOpAbKzztoSbAIWfi2s+PiQ9iqMcbLJ7a3kv5Uao7y62TaL4OGbP+2bi+e3K0sCA8JjBUCG8NVUrkiuty6QfyLph/qLzK7MMfND2E3Xlj8ZDzPSrFdHwgdb+6U8HYRSQOtcG6gYOZdxXmfPxCg8j5f0EkZku5FmM=; X-YMail-OSG: Vu_u1SMVM1mS8rm3Het0xCxH_8MeRz_n.zsBfk7hbsSJmaWMw6LlkdoRN1JPb34Ths5eIqt6U4yrHtx7FeNGUpqqsTkwT9vpytjqP8hYkGS3xSaIyMwdpdPsm2a_GPFMVqjtzio84f277SCS127q5sKMvWey44abgq4QiVLlO0xHdglUqSrG6CoyvFtedRmM5JPG8THanlXTvfIljLmJ8anD_w7T1dZMRCaMx7mewx2laK.Iw4wcl6fYxE7VKF4.jTMA29.foTmHa_oPI.KiJKvOq9Gf3ZHdr2gkeA7KTrwckuk3liGYgNpXUMBhtSI4sKYfH67NioiC51Z4A3Wk Original-Received: from [212.61.45.18] by web30005.mail.mud.yahoo.com via HTTP; Tue, 21 Apr 2009 07:24:57 PDT X-Mailer: YahooMailRC/1277.35 YahooMailWebService/0.7.289.10 In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.191.69.22; country=US; region=CA; city=Sunnyvale; postalcode=94089; latitude=37.4249; longitude=-122.0074; metrocode=807; areacode=408; http://maps.google.com/maps?q=37.4249,-122.0074&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 212029942 - 3406cbb1b6e7 - 20090421 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:49689 Archived-At: --===============0018056734== Content-Type: multipart/alternative; boundary="0-1462004527-1240323897=:28859" --0-1462004527-1240323897=:28859 Content-Type: text/plain; charset=us-ascii Okay, the "before={\testpage[] ...} seems to solve my problems with the hanging empty text backgrounds. Thanks Aditya ________________________________ Message: 3 Date: Tue, 21 Apr 2009 09:10:16 -0400 (EDT) From: Aditya Mahajan Subject: Re: [NTG-context] framed text question To: mailing list for ConTeXt users Message-ID: Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 --0-1462004527-1240323897=:28859 Content-Type: text/html; charset=us-ascii
Okay, the "before={\testpage[] ...}  seems to solve my problems with the hanging empty text backgrounds.
Thanks Aditya




Message: 3
Date: Tue, 21 Apr 2009 09:10:16 -0400 (EDT)
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: [NTG-context] framed text question
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Message-ID: <alpine.LNX.2.00.0904210908150.8859@ybpnyubfg.ybpnyqbznva>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

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


--0-1462004527-1240323897=:28859-- --===============0018056734== 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0018056734==--