From: Jos van Gisbergen <trychius@yahoo.com>
To: ntg-context@ntg.nl
Subject: Re: framed text question (Aditya Mahajan)
Date: Tue, 21 Apr 2009 07:24:57 -0700 (PDT) [thread overview]
Message-ID: <699682.28859.qm@web30005.mail.mud.yahoo.com> (raw)
In-Reply-To: <mailman.362.1240322606.3589.ntg-context@ntg.nl>
[-- 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
___________________________________________________________________________________
parent reply other threads:[~2009-04-21 14:24 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <mailman.362.1240322606.3589.ntg-context@ntg.nl>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=699682.28859.qm@web30005.mail.mud.yahoo.com \
--to=trychius@yahoo.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).