[NTG-context] orphan headline

Wolfgang Schuster schuster.wolfgang at gmail.com
Fri May 27 14:49:13 CEST 2016


> Pablo Rodriguez <mailto:oinos at gmx.es>
> 26. Mai 2016 um 21:29
>
> In a much simpler case, it seems to work:
>
> \setuphead[section]
> [style=\ss\tfa, after={\hrule\blank[samepage,big]}]
> %~ [style=\ss\tfa, after={\hrule\blank[big]}]
>
> \setuphead[subsection]
> [style=\ss, after={\hrule\blank[samepage,medium]}]
> %~ [style=\ss, after={\hrule\blank[medium]}]
>
> \starttext
> \dorecurse{10}{\section{Section}
> \input knuth
> \subsection{Subsection}
> \input zapf}
> \stoptext
>
> Do you really need headings to be inside framed texts?
A good idea but it can be improved.

\definevspace[sectionrule][3mm]

\setuphead
   [section]
   [       width=0.8\textwidth,
    commandafter={\vspace[sectionrule]\hrule},
          before={\blank[0.5cm]},
           after={\blank[1cm]}]

\starttext

\section{\input ward }

\subject{\input ward }

\stoptext

Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160527/6e983083/attachment.html>


More information about the ntg-context mailing list