[NTG-context] setuphead

Hans Hagen pragma at wxs.nl
Mon Jul 31 00:31:12 CEST 2006


Steffen Wolfrum wrote:
> Well, looks good, BUT
> if the chapter's name is quite long and needs a break
> then the break command used there (\crlf \break \\) can't work  
> anymore ....
>   

\setuphead[chapter]
    [command=\Sectioncommand,
     style=,
     textstyle=\bfb,
     numberstyle=\it]

\def\Sectioncommand#1#2%
  {\vbox \bgroup
     \framed[align=middle,frame=off,offset=0pt]{Chapter #1}%
     \framed[align=middle,frame=off,offset=0pt]{#2}%
   \egroup}


or something alike

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list