[NTG-context] Any way to configure \setuphead to run a setups on the stop command?

Henning Hraban Ramm texml at fiee.net
Tue Jul 26 13:44:58 CEST 2022


Am 26.07.22 um 12:41 schrieb Bruce Horrocks via ntg-context:
> If I use \definehead [Chapter] [chapter] and then \setuphead[Chapter][...] I can specify setups to run before and after \startChapter.
> 
> Is there any way to specify setups that are run before & after \stopChapter?

\setuphead[Chapter][aftersection={Executed at \stopChapter}]

> My real problem is that I have a double-sided book with new chapters starting on a right hand page. If an extra left-hand page gets added then that extra page is blank except for the header which continues from the previous chapter. This makes the page look a bit odd and I'd rather the header was blank.

I used aftersection=\directsetup{...} for the same purpose.

In LMTX, \directsetup makes no sense any more, just use \setup{}.

Hraban


More information about the ntg-context mailing list