From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to prevent header at page bottom
Date: Thu, 14 May 2009 10:02:32 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.00.0905141001180.6207@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <529529.18134.qm@web30002.mail.mud.yahoo.com>
On Thu, 14 May 2009, Jos van Gisbergen wrote:
> Hi,
>
> I have defined my own header:
> \definehead[myhead][subsection]
> \setuphead[myhead][ page=no, number=no ]
> All works fine, except sometimes the head appears at page bottom and
> the text starts on the next page. How can I specify that if less than, say,
> 3 lines of text fit on the current page below the head, the head and text
> should start on the next page.
\testpage[3] checks that you have space for atleast 3 lines in the current
page. So you can use
\setuphead[myhead][before={\testpage[3]\blank}]
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
___________________________________________________________________________________
next prev parent reply other threads:[~2009-05-14 14:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-14 8:28 Jos van Gisbergen
2009-05-14 14:02 ` Aditya Mahajan [this message]
[not found] <mailman.795.1242314486.3589.ntg-context@ntg.nl>
2009-05-18 10:07 ` how " Jos van Gisbergen
2009-05-18 10:12 ` Wolfgang Schuster
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=alpine.LNX.2.00.0905141001180.6207@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--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).