On Tue, 10 Nov 2020 at 19:23, Wolfgang Schuster <wolfgang.schuster.lists@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