![](https://secure.gravatar.com/avatar/7470b949efff6c32ab1956faadac39cb.jpg?s=120&d=mm&r=g)
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. Thanks in advance, Jos
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
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
participants (2)
-
Aditya Mahajan
-
Jos van Gisbergen