[NTG-context] Part head centering and empty header

nico nicolas.marsgui at libertysurf.fr
Fri Apr 28 20:45:36 CEST 2006


On Thu, 27 Apr 2006 15:56:47 -0700, Johannes Graumann  
<johannes_graumann at web.de> wrote:

> Hello
>
> I have coded my 'Appendix' like so: [...]
>
> \startappendices
> \setuppagenumbering[way=bytext,partnumber=no,conversion=numbers,location={header,right}]
> \framed
>   [%
>     height=\textheight,%
>     frame=off,%
>   ]
>   {
>     \part{Appendices}
>   }
> {\stopappendices}
>
> Which gives me a nicely vertically and horizontally centered title. One
> problem remains though: I can't get rid of the page number. The
> framed  '\setuphead[part]' commands concerning header and footer are  
> being
> overruled and I can't figure out how to have an empty header for just the
> page containing the frame.

You're right; I don't know how to fix this, but for the centering aspect I  
would suggest another approach that is more in the context way of doing:

\def\PartTitle#1#2%
   {\framed[frame=off,height=\textheight,width=\textwidth,align={middle,lohi}]{#2}%
    \pagebreak}

\setuphead
   [part]
   [header=empty,
    footer=empty,
    alternative=middle,
    placehead=yes,
    resetnumber=no,
%   number=no,
    command=\PartTitle,
    page=right
   ]

\starttext
\startappendices
\setuppagenumbering[way=bytext,partnumber=no,conversion=numbers,
                     location={header,right}]

\part{Some Appendices}
\chapter{Chapter 1}
A text

\stopappendices
\stoptext

Regards,
BG


More information about the ntg-context mailing list