[NTG-context] page ends with a section title followed by a table

Sylvain Hubert champignoom at gmail.com
Tue Nov 10 19:41:40 CET 2020


On Tue, 10 Nov 2020 at 19:23, Wolfgang Schuster <
wolfgang.schuster.lists at gmail.com> wrote:

> Sylvain Hubert schrieb am 10.11.2020 um 19:11:
>
> > Weirdly enough, "\hskip 0pt" solves the problem.
> >
> >      \setuphead[section][after={\blank[samepage]\hskip 0pt}]
> >      \starttext
> >      \showframe
> >      \dorecurse{50}{a }
> >      \startsection[title=spec]
> >      \startxtable
>
>
> What happens when you \hskip is that you switch to horizontal
> mode and the preferred to do this is to use \dontleavehmode.
>
> \dontleavehmode
> \startxtable
>
> Wolfgang
>

Indeed. Thanks for the information!

For the record, this is how the problem is finally solved:

    \setuphead[section][after={\blank[sampage]}]
    \begingroup\setupindenting[no]\dontleavehmode\startxtable …
\stopxtable\endgroup

Sylvain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20201110/e856ace6/attachment.htm>


More information about the ntg-context mailing list