From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16735 Path: main.gmane.org!not-for-mail From: olivier Turlier Newsgroups: gmane.comp.tex.context Subject: Re: accents in text included in Metapost chain Date: Fri, 22 Oct 2004 22:28:22 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <41796D66.5090609@wanadoo.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098476464 1544 80.91.229.6 (22 Oct 2004 20:21:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Oct 2004 20:21:04 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 22 22:20:59 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CL5uF-0002bq-00 for ; Fri, 22 Oct 2004 22:20:59 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 70336127CD; Fri, 22 Oct 2004 22:20:59 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19517-05-5; Fri, 22 Oct 2004 22:20:58 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B7A2D127C9; Fri, 22 Oct 2004 22:20:58 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BA0F6127C9 for ; Fri, 22 Oct 2004 22:20:56 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19517-05-4 for ; Fri, 22 Oct 2004 22:20:56 +0200 (CEST) Original-Received: from postfix3-2.free.fr (unknown [213.228.0.169]) by ronja.ntg.nl (Postfix) with ESMTP id A870F127C2 for ; Fri, 22 Oct 2004 22:20:56 +0200 (CEST) Original-Received: from [127.0.0.1] (stjust-3-82-225-94-181.fbx.proxad.net [82.225.94.181]) by postfix3-2.free.fr (Postfix) with ESMTP id 68893C099 for ; Fri, 22 Oct 2004 22:20:56 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en Original-To: ntg X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16735 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16735 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