On 5/29/2016 11:57 AM, Pablo Rodriguez wrote:
On 05/27/2016 02:49 PM, Wolfgang Schuster wrote:
Pablo Rodriguez 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]}]
[..]
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]}]
Wolfgang,
many thanks for the improvement.
I have a question about your code:
What prevents page break between heading the next paragraph?
a rather complex method of weighted penalties that also needs to make
sure we don't break between successive heads but at the same time makes
sure that we don't overflow the page
I might guess that is the two distinct options commandafter and after.
But this is only my suspicion on what may work there.
Many thanks for your help,
Pablo
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________