[NTG-context] keeping headings with following texts

Pablo Rodríguez oinos at web.de
Sat Jul 13 16:08:14 CEST 2013


On 13/07/13 15:19, Wolfgang Schuster wrote:
> [...]
> Can you make a minimal tex document out of this. It would be also
> interesting to see your definition for the problematic heading which
> seems to use your own code.

Here you have it:

    \usemodule[simplefonts]
    \setmainfont[TeX Gyre Pagella]
    \setuplayout[setups=*lessstrict]
    \startsetups[*lessstrict]
        \setup[reset]
        \widowpenalty=10000
        \clubpenalty=10000
        \brokenpenalty=10000
    \stopsetups
    \setupinterlinespace[line=3.2ex]

    \setupnote[footnote][split=verystrict]

    \starttext

    \dorecurse{28}{line\\}

    \subsection{Subsection Heading}

    line one\\
    line two%
    \footnote{This should be on the same page.}.
    \stoptext

I need split set to verystrict in footnotes, otherwise footnotes can be
placed in the next page where their body text reference occurs (I have
never seen this on any printed book). This is exactly what happens when
\setupnote[footnote] is disabled.

But even removing the footnote itself and setting the recursion to 30
times, the subsection heading is also left alone on the first page.

What am I doing wrong here?


Pablo
-- 
http://www.ousia.tk


More information about the ntg-context mailing list