[NTG-context] How to avoid a page break?
Wolfgang Schuster
schuster.wolfgang at googlemail.com
Tue Nov 4 22:17:51 CET 2008
Am 04.11.2008 um 21:21 schrieb Marcin Borkowski:
> Hi,
>
> I have the following in my code:
>
> \def\doPutTitle#1{%
> \startalignment[middle]
> \bfb
> \page[bigpreference]
> \blank[2*big]
> #1%
> \page[no]%
> \blank[big]%
> \page[no]%
> \stopalignment
> \page[no]%
> }%
>
> Why is it still possible that I have a page break after, say,
> \doPutTitle{some title} (in MkII, in MkIV page breaks fall in
> different
> places). Which percentage signs and \page[no]'s are unnecessary here?
\def\doPutTitle#1%
{\page[bigpreference]
\vbox\bgroup
\raggedcenter
#1%
\egroup
\nobreak\blank[big]}
> Also, how to avoid a page break right before an itemization? Adding
> [intro] seems not to work.
Example!
> And one more thing about pagebreaks: how to avoid a pagebreak right
> before a \startformula ... \stopformula? And what is the ConTeXt
> way of
> setting stretchable vertical glue (e.g. for \blank's, below
> itemizations
> etc.)?
\blank[ small | medium | big | ... ]
Wolfgang
More information about the ntg-context
mailing list