[NTG-context] Follow up: "Quote before chapter?"

Hans Hagen pragma at wxs.nl
Fri Feb 17 09:38:19 CET 2006


David Wooten wrote:
> Greetings,
>
> Having come to the same problem, I am curious whether a solution 
> presented itself to Gerben's inquiry.
>
> /Fri Mar 11 10:30:45 CET 2005/:
>
>> I can make it more difficult even. I would like a chapter to start on�
>> an odd (right side) page but when there is a quote that comes with the�
>> chapter I want to have that appear on the opposing side.
>>
>> G
\def\MyChapter[#1]%
  {\doifsomething{#1}
     {\page[left]
      \setupheader[state=empty]
      \startnarrower[3*left,4*right]
      \getbuffer[#1]%
      \stopnarrower
      \page}
   \chapter}

\setuphead[section][page=right]

\setuppagenumbering[alternative=doublesided]

\starttext

\startbuffer[a]
\input ward
\stopbuffer
\startbuffer[b]
\input zapf
\stopbuffer

\MyChapter[a]{Test A} \input tufte
\MyChapter[] {Test X} \input bryson
\MyChapter[b]{Test B} \input knuth

\stoptext


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