Section head placement wrong when the after key is used
Hi! In the following example the 2nd section head stays on page one when the “after” key is used. If the blackrule is commented out the section head moves to page two as intended. What's the reason the section head stays on the previous page when the “after” is used and how to fix this? \setuphead [section] [after=\blackrule] %% works as desired when commenting this one out \starttext \startsection [title=Foo] \samplefile{knuth} \stopsection \startsection [title=Bar] \framed[height=15cm]{} \samplefile{knuth} \stopsection \stoptext Marco
On 11/19/20 11:55 AM, Marco Patzer wrote:
Hi! [...] What's the reason the section head stays on the previous page when the “after” is used and how to fix this?
Hi Marco, by default (according to strc-def.mkiv), \section has "after=\blank". In some cases, I had used "after={”\blank[samepage, medium]}" to prevent similar issues. In this case, a nasty trick could be "after={”\blackrule\blank[samepage, Opt]}". Just in case it helps, Pablo -- http://www.ousia.tk
On Thu, 19 Nov 2020 16:53:52 +0100
Pablo Rodriguez
On 11/19/20 11:55 AM, Marco Patzer wrote:
Hi! [...] What's the reason the section head stays on the previous page when the “after” is used and how to fix this?
Hi Marco,
by default (according to strc-def.mkiv), \section has "after=\blank".
In some cases, I had used "after={”\blank[samepage, medium]}" to prevent similar issues.
In my actual document I already use \blank[halfline]. Changing this to \blank[halfline, samepage] fixes it. Thank you very much. Marco
participants (2)
-
Marco Patzer
-
Pablo Rodriguez