[NTG-context] orphan headline

Pablo Rodriguez oinos at gmx.es
Sun May 29 11:57:32 CEST 2016


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?

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
-- 
http://www.ousia.tk


More information about the ntg-context mailing list