Am 03.05.2014 um 16:32 schrieb Maggyero <maggy...@gmail.com>:

> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to