[NTG-context] page breaks before titles

Pablo Rodriguez oinos at gmx.es
Sat Mar 7 12:24:14 CET 2015

On 03/07/2015 12:46 AM, mf wrote:
> Hello,
> I'm trying to typeset a book made of letters with ConTeXt.
> Every letter has a title a subtitle and a date, before it
> starts with "Dear ..."
> Like this:
> ---------------------------------
>           Title
>          subtitle
>                     where, when
> Dear ...,
> the rest of the letter
> ...                 
> ---------------------------------
> The letters are very different in length -- some are long,
> some are made of a couple of lines --, so I'd like to
> typeset them continuously, without skipping to a new page
> every new letter (\setuphead[LetterTitle][page=no]).
> This way a letter could finish beyond the half of a page,
> and the next one could have no space left to get the part
> from Title to the first lines of the body on the same page.
> That's why I disabled page breaks from Title to the first
> paragraph after "Dear ...": it would be ugly having only
> the title in one page and the rest in the next ones.
> But there's a side effect: the title of the new letter
> "pulls" the last two lines (the penalties are set to avoid
> one-line widows) of the previous letter to the new page,
> even when there's room for them on the previous page.
> In this case I would like ConTeXt to break the page at
> the end of the previous letter, before the next letter title.
> That's why I've set 
>   before={\blank[2*line]\page[preference]} 
> in LetterTitle. But it does not work.

Hi Massi,

how about "before={\blank[2*line]\page[bigpreference]}"?

As Wolgang noted before, a minimal sample is essential to be able to
provide a solution.


More information about the ntg-context mailing list