On Wed, Nov 5, 2008 at 10:57 AM, Marcin Borkowski
<[EMAIL PROTECTED]> wrote:
> Dnia Tue, Nov 04, 2008 at 11:25:17PM +0100, Wolfgang Schuster napisa&#322;(a):
>> \def\doPutTitle#1%
>>    {\framed[frame=offwidth=\textwidth,align=middle]{#1}%
>>     \blank[nobreak,line]}
>
> And what to do if I want to use a similar to above command in

\def\doPutTitle#1#2%
  {\framed[frame=offwidth=\textwidth,align=middle]{#1\space#1}}

> \setuphead[chapter][command=\doPutTitle]
>
> to avoid a page break right after the title?

ConTeXt already tries to avoid page breaks after headers.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to