Pablo Rodriguez mailto:oinos@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