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


___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to