[NTG-context] Part head centering and empty header

Hans Hagen pragma at wxs.nl
Wed May 3 21:57:24 CEST 2006


Johannes Graumann wrote:
> John R. Culleton wrote:
>
>   
>> I would take a different approach, with each part header (there
>> can't be that many) enclosed in
>> \startstandardmakeup
>> and
>> \stopstandardmakeup
>>
>> To get the part into the TOC there is a command to write an
>> entry manually, with \writetolist.
>>     
>
> Thanks a lot for this comment. It solved my problem. I'm now using:
>
> \defineXMLenvironment
>   [appendices]
>   {%
>     \startappendices
>       \setuppagenumbering
>         [%
>           way=bytext,%
>           partnumber=no,%
>           conversion=numbers,%
>           location={header,right}%
>         ]%
>         \startstandardmakeup
>           [%
>             headerstate=empty,%
>             pagestate=start%
>           ]
>           \framed
>             [%
>               width=\textwidth,%
>               frame=off,%
>             ]
>             {%
>               \ss\switchtobodyfont[60pt]\setupinterlinespace[line=2.8ex]
>               Appendices
>               \writetolist[part]{Appendices}{}
>             }
>         \stopstandardmakeup
>   }
>   {\stopappendices}
>
> And it does exactly what I want.
>   

less messing around with %'s:

\defineXMLenvironment
  [appendices]
  {\directsetup{appendices:start}}
  {\directsetup{appendices:stop}}

\startsetups appendices:start
    \startappendices
        \setuppagenumbering [
            way=bytext,
            partnumber=no,
            conversion=numbers,
            location={header,right}
        ]
        \startstandardmakeup [
            headerstate=empty,
            pagestate=start
        ]
        \framed [
            width=\textwidth,
            frame=off
        ] {
            \switchtobodyfont[60pt,ss]
            \setupinterlinespace[line=2.8ex]
            Appendices
            \writetolist[part]{Appendices}{}
        }
        \stopstandardmakeup
\stopsetups

\startsetups appendices:start
    \stopappendices
\stopsetups

(spaces and lineending are ignored, use \space when a space is needed) 

-----------------------------------------------------------------
                                          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