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





_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to