[NTG-context] Re: accents in text included in Metapost chain
olivier Turlier
crp.tbeb at wanadoo.fr
Fri Oct 22 22:28:22 CEST 2004
Hans Hagen wrote:
>> 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
>
>
Thanks a lot, it's working nicely. Who said that man cannot learn from
each other ?
Following your suggestion, i've send your clean code to
contextgardenwiki in Sample documents/Sample macros/macro for chapters
headers.
Thanks again Hans.
---
olivier Turlier
More information about the ntg-context
mailing list