ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: framed text question (Aditya Mahajan)
       [not found] <mailman.362.1240322606.3589.ntg-context@ntg.nl>
@ 2009-04-21 14:24 ` Jos van Gisbergen
  0 siblings, 0 replies; only message in thread
From: Jos van Gisbergen @ 2009-04-21 14:24 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1278 bytes --]

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


      

[-- Attachment #1.2: Type: text/html, Size: 2162 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-21 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.362.1240322606.3589.ntg-context@ntg.nl>
2009-04-21 14:24 ` framed text question (Aditya Mahajan) Jos van Gisbergen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).