From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/56375 Path: news.gmane.org!not-for-mail From: Xan Newsgroups: gmane.comp.tex.context Subject: Metafun does not change color Date: Thu, 18 Feb 2010 22:03:37 +0100 Message-ID: <4B7DAB29.6020301@telefonica.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1266527032 869 80.91.229.12 (18 Feb 2010 21:03:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2010 21:03:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 18 22:03:50 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NiDXK-0008VM-B6 for gctc-ntg-context-518@m.gmane.org; Thu, 18 Feb 2010 22:03:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6D5D6C9CC6; Thu, 18 Feb 2010 22:03:49 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hYkdCooXYCDH; Thu, 18 Feb 2010 22:03:45 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E595CC9CA2; Thu, 18 Feb 2010 22:03:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 85312C9CA2 for ; Thu, 18 Feb 2010 22:03:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sNiQFdbP4s1Y for ; Thu, 18 Feb 2010 22:03:40 +0100 (CET) Original-Received: from IMPaqm1.telefonica.net (impaqm1.telefonica.net [213.4.138.1]) by balder.ntg.nl (Postfix) with ESMTP id BADEAC9CA1 for ; Thu, 18 Feb 2010 22:03:39 +0100 (CET) Original-Received: from IMPmailhost4.adm.correo ([10.20.102.125]) by IMPaqm1.telefonica.net with bizsmtp id jU2G1d0092iL0W201Z3f3H; Thu, 18 Feb 2010 22:03:39 +0100 Original-Received: from [172.26.0.6] ([79.158.151.106]) by IMPmailhost4.adm.correo with BIZ IMP id jZ3c1d00L2HzFvz1kZ3eCM; Thu, 18 Feb 2010 22:03:39 +0100 X-TE-authinfo: authemail="dxpublica" |auth_email="dxpublica@telefonica.net" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc02" User-Agent: Thunderbird 2.0.0.23 (X11/20090817) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:56375 Archived-At: Hi, I have the following code (see at final). I define SquareText to be = darkblue in framecolor, but metafun use darkred. Why? Any ideas? Xan. \page \section{Tect=F2nica de plaques} \subsection{Com es formen els relleus?} \setupFLOWcharts[width=3D.4\textwidth] \startFLOWchart[fixistes] \startFLOWcell \name {Fonts} \location {1,1} \text {Algunes teories es basaven en relats b=EDblics. Atribu=EFen al = diluvi universal la causa d'alguns relleus i la pres=E8ncia de f=F2ssils = marins a les muntanyes.} \connection [rl] {fixistes} \shape{procedure} \stopFLOWcell \startFLOWcell \name {fixistes} \location{2,1} \text {Altres suposaven que la Terra s'ha anat arrugat progressivament = en refredar-se i que els relleus s=F3n arrugues provocades per l'escor=E7a = en contracci=F3.} \shape{decision} \stopFLOWcell \stopFLOWchart \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=3Doff,background=3DFunnyFrame] \def\StartFrame{\startFunnyText} \def\StopFrame {\stopFunnyText } \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}} \setMPtext{FunnyFrame}{} % initialize the text variable \startuseMPgraphic{FunnyFrame} picture p ; numeric o ; path a, b ; pair c ; p :=3D textext.rt(\MPstring{FunnyFrame}) ; o :=3D BodyFontSize ; a :=3D unitsquare xyscaled(OverlayWidth,OverlayHeight) ; p :=3D p shifted (2o,OverlayHeight-ypart center p) ; pickup pencircle scaled OverlayLineWidth ; b :=3D a superellipsed .95 ; fill b withcolor OverlayColor ; draw b withcolor OverlayLineColor ; b :=3D (boundingbox p) superellipsed .95 ; fill b withcolor OverlayColor ; draw b withcolor OverlayLineColor ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \setupframedtexts [FunnyText] [backgroundcolor=3Dlightgray, framecolor=3Ddarkred, rulethickness=3D2pt, offset=3D\bodyfontsize, before=3D{\blank[big,medium]}, after=3D{\blank[big]}, width=3D\textwidth] \FrameTitle{Teories fixistes} \StartFrame Al llarg del segle XIX i el comen=E7ament del XX, es crearen diverses = teories que intentaven explicar l'origen de les serrelades i el = plegament dels estrats, que no podem explicar f=E0cilment. Totes aquestes teories tenen com a {\bf principi} que els continents i = els oceans han ocupat les {\em mateixes posicions} des de l'origen de la = Terra fins ara. \StopFrame \FLOWchart[fixistes] \defineoverlay[SquareFrame][\useMPgraphic{SquareFrame}] \defineframedtext[SquareText][frame=3Doff,background=3DSquareFrame] \def\StartSquareFrame{\startSquareText} \def\StopSquareFrame {\stopSquareText } \def\SquareTitle#1% {\setMPtext{SquareFrame}{\hbox spread 1em{\hss\strut#1\hss}}} \setMPtext{SquareFrame}{} % initialize the text variable \startuseMPgraphic{SquareFrame} picture p ; numeric o ; path a, b ; pair c ; p :=3D textext.rt(\MPstring{SquareFrame}) ; a :=3D unitsquare xyscaled(OverlayWidth,OverlayHeight) ; o :=3D BodyFontSize ; p :=3D p shifted (2o,OverlayHeight-ypart center p) ; drawoptions (withpen pencircle scaled 1pt withcolor .625red) ; b :=3D a randomized (o/2) ; fill b withcolor .85white ; draw b ; c :=3D center p ; c :=3D b intersectionpoint (c shifted (0,-o)--c shifted(0,o)) ; p :=3D p shifted (c-center p) ; b :=3D (boundingbox p) randomized (o/8) ; fill b withcolor .85white ; draw b ; draw p withcolor black; setbounds currentpicture to a ; \stopuseMPgraphic \setupframedtexts [SquareText] [backgroundcolor=3Dscreen, framecolor=3Ddarkblue, rulethickness=3D2pt, offset=3D\bodyfontsize, before=3D{\blank[big,medium]}, after=3D{\blank[big]}, width=3D\textwidth] \SquareTitle{Mobilisme} \StartSquareFrame El 1912, Alfred Wegener proposa una teoria revolucion=E0ria \StopSquareFrame ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________