A more explicit minimal example of the problem: \setupheadertexts[section] \setuphead[section][% placehead=empty, before=, after=] \setuphead[subsection][% placehead=yes, before={\blank[line]}, after={\blank[line]}] \starttext \showframe \section{My section} \subsection{My subsection (whitespace before: problem)} \input knuth \subsection{My subsection (whitespace before: fine)} \input knuth \page \subsection{My subsection (NO whitespace before: fine)} \input knuth \subsection{My subsection (whitespace before: fine)} \input knuth \stoptext
Am 03.05.2014 um 16:32 schrieb Maggyero
A more explicit minimal example of the problem:
\setupheadertexts[section] \setuphead[section][% placehead=empty, before=, after=] \setuphead[subsection][% placehead=yes, before={\blank[line]}, after={\blank[line]}]
\starttext \showframe \section{My section} \subsection{My subsection (whitespace before: problem)} \input knuth \subsection{My subsection (whitespace before: fine)} \input knuth \page \subsection{My subsection (NO whitespace before: fine)} \input knuth \subsection{My subsection (whitespace before: fine)} \input knuth \stoptext
When you don’t need a section entry in the TOC you can use “placehead=hidden”, the title of the section head can be accessed with the \namedstructurevariable command. \setupheadertexts[\namedstructurevariable{section}{title}] \setuphead [section] [placehead=hidden] \setuphead [subsection] [placehead=yes, before={\blank[line]}, after={\blank[line]}] \showframe \starttext \dorecurse{2} {\page \section{Section #1} \dorecurse{2} {\subsection{Subsection #1.##1} \input knuth\par}} \stoptext Wolfgang
participants (2)
-
Maggyero
-
Wolfgang Schuster