* Any way to configure \setuphead to run a setups on the stop command?
@ 2022-07-26 10:41 Bruce Horrocks via ntg-context
2022-07-26 11:44 ` Henning Hraban Ramm via ntg-context
0 siblings, 1 reply; 2+ messages in thread
From: Bruce Horrocks via ntg-context @ 2022-07-26 10:41 UTC (permalink / raw)
To: ntg-context mailing list; +Cc: Bruce Horrocks
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?
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 can fix this by ensuring each chapter emits a final page (to ensure the headers on the last text-bearing page of the chapter are shown) and then clearing the header temporarily using: \stopChapter\page\setupheader[state=empty]
This works so I wondered if there was a way of adding it to \stopChapter ?
I can edit each individual chapter file easily enough so no need to add it as a feature if it's not already available in some way.
—
Bruce Horrocks
Hampshire, UK
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Any way to configure \setuphead to run a setups on the stop command?
2022-07-26 10:41 Any way to configure \setuphead to run a setups on the stop command? Bruce Horrocks via ntg-context
@ 2022-07-26 11:44 ` Henning Hraban Ramm via ntg-context
0 siblings, 0 replies; 2+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-07-26 11:44 UTC (permalink / raw)
To: Bruce Horrocks via ntg-context; +Cc: Henning Hraban Ramm
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-26 11:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-26 10:41 Any way to configure \setuphead to run a setups on the stop command? Bruce Horrocks via ntg-context
2022-07-26 11:44 ` Henning Hraban Ramm via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).