From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29926 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: couple of metafun questions Date: Thu, 3 Aug 2006 11:38:03 +0200 Message-ID: <36BCE140-464A-4631-8058-613C49898A30@uni-bonn.de> References: <0CAEC5AB-96A4-4B8E-8B12-03DBAF7BBF77@uni-bonn.de> <6faad9f00608021456n5593f403hc0c414af39c34677@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154597938 25129 80.91.229.2 (3 Aug 2006 09:38:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Aug 2006 09:38:58 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 03 11:38:57 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1G8ZfG-0004mW-GB for gctc-ntg-context-518@m.gmane.org; Thu, 03 Aug 2006 11:38:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1735E1FF0A; Thu, 3 Aug 2006 11:38:50 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32037-01-6; Thu, 3 Aug 2006 11:38:41 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F2D4E1FF01; Thu, 3 Aug 2006 11:38:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 072F91FF01 for ; Thu, 3 Aug 2006 11:38:37 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32037-01-5 for ; Thu, 3 Aug 2006 11:38:29 +0200 (CEST) Original-Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18]) by ronja.ntg.nl (Postfix) with SMTP id A97A11FEEE for ; Thu, 3 Aug 2006 11:38:28 +0200 (CEST) Original-Received: from fwd35.aul.t-online.de by mailout04.sul.t-online.com with smtp id 1G8Zet-0003qR-01; Thu, 03 Aug 2006 11:38:27 +0200 Original-Received: from [192.168.0.2] (ZYP6ZQZA8eaqb-5nseDDQAaJCd-3y3tbL26UNExebXt0Y6sQY49Rkb@[84.172.89.140]) by fwd35.sul.t-online.de with esmtp id 1G8Zen-1UCKga0; Thu, 3 Aug 2006 11:38:21 +0200 In-Reply-To: <6faad9f00608021456n5593f403hc0c414af39c34677@mail.gmail.com> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.752.2) X-ID: ZYP6ZQZA8eaqb-5nseDDQAaJCd-3y3tbL26UNExebXt0Y6sQY49Rkb@t-dialin.net X-TOI-MSGID: 646461c5-72c7-4eeb-9c32-e0872c848ec3 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29926 Archived-At: On Aug 2, 2006, at 11:56 PM, Mojca Miklavec wrote: > So you have to draw the path twice with different color and pattern > (you can write a macro for it of course if you need it often). > > beginfig(1); > pickup pencircle scaled 2pt; > picture dp[]; > dp[1] := dashpattern(on 2 off 6) scaled 3pt; > dp[2] := dashpattern(off 4 on 2 off 2) scaled 3pt; > > path p; p := (origin .. (2,1) .. (3,-1) .. (5,0)) scaled 3cm; > > draw p dashed dp[1] withcolor blue; > draw p dashed dp[2] withcolor red; > endfig; > end. > > Mojca Mojca, thanks so much, this works and does exactly what I want! For the rest of my questions: I've decided to go for an embedded staticMPfigure instead of MPpositiongraphic, so I can manage. But I'd still be curious if these things are possible or not. Anyways, thanks a lot! Thomas