* Spacing between headings
@ 2023-02-23 9:32 Denis Maier via ntg-context
0 siblings, 0 replies; only message in thread
From: Denis Maier via ntg-context @ 2023-02-23 9:32 UTC (permalink / raw)
To: ntg-context; +Cc: denis.maier
[-- Attachment #1.1: Type: text/plain, Size: 773 bytes --]
Hi,
I want to make the spacing before headings conditional. Like, apply the spacing if the a heading follows some text, but not if it immediately follows a previous heading. This has been requested before : https://www.mail-archive.com/ntg-context@ntg.nl/msg63950.html
Does there exist a way now, to achieve this?
Best,
Denis
\setuphead
[section, subsection]
[number=yes]
\setuphead
[section]
[before={\blank[2*big]},
after={\blank[big]}]
\setuphead
[subsection]
[before={\blank[2*big]},
after={\blank[big]}]
\starttext
\section{A}
\input knuth
\subsection{B} % regular spacing here
\input knuth
\section{C}
\subsection{D} % less spacing here
\input knuth
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 4428 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
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] only message in thread
only message in thread, other threads:[~2023-02-23 9:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-23 9:32 Spacing between headings Denis Maier 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).