[NTG-context] accents in text included in Metapost chain

Hans Hagen pragma at wxs.nl
Wed Oct 20 12:06:30 CEST 2004


olivier Turlier wrote:


> The goal is  to only write once \quote{Question} in \type{\chapter[chap:ques]{Question}}
> for getting the same result than in the first page, or in below (\quote{shadowed} effect must only apply to text, not to header number).

\usetypescript[palatino][texnansi]
\setupbodyfont[palatino,rm,12pt]

\setupcolors[state=start]

\definefont[BigFontOne][RegularSlanted sa 3]
\definefont[BigFontTwo][RegularSlanted sa 2]

\definecolor[BigColorOne][r=.86,g=.850,b=.54]
\definecolor[BigColorTwo][r=.43,g=.425,b=.27]

\setuphead
   [chapter]
   [textcommand=\MyChapterText,
    color=BigColorTwo,
    style=\BigFontTwo]

\def\MyChapterText#1{\rlap{\BigFontOne\BigColorOne#1}#1}

\chapter[chap:ques]{Question}
\chapter[chap:answ]{Answer}

\stoptext

it's up to you to submit it in the wiki


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