From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16091 Path: main.gmane.org!not-for-mail From: Floris van Manen Newsgroups: gmane.comp.tex.context Subject: metafun question getting XY Date: Mon, 16 Aug 2004 13:41:31 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <116826510.20040816134131@klankschap.nl> References: <41133589.2070807@gmx.de> <41133396.6090009@wxs.nl> <411383D1.90501@gmx.de> <4117D780.6000901@wxs.nl> <411C7C2A.3080605@gmx.de> Reply-To: Floris van Manen , mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1092656619 23268 80.91.224.253 (16 Aug 2004 11:43:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 16 Aug 2004 11:43:39 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 16 13:43:32 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 1Bwftk-00074o-00 for ; Mon, 16 Aug 2004 13:43:32 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 40CC11277E; Mon, 16 Aug 2004 13:43:32 +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 16606-04; Mon, 16 Aug 2004 13:43:32 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 869B01277F; Mon, 16 Aug 2004 13:41:49 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CA6771277F for ; Mon, 16 Aug 2004 13:41:48 +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 16606-03-2 for ; Mon, 16 Aug 2004 13:41:48 +0200 (CEST) Original-Received: from smtp-vbr4.xs4all.nl (unknown [194.109.24.24]) by ronja.ntg.nl (Postfix) with ESMTP id 4F2741277E for ; Mon, 16 Aug 2004 13:41:48 +0200 (CEST) Original-Received: from vm.lan (213-84-11-60.adsl.xs4all.nl [213.84.11.60]) by smtp-vbr4.xs4all.nl (8.12.11/8.12.11) with ESMTP id i7GBfkuM063093 for ; Mon, 16 Aug 2004 13:41:46 +0200 (CEST) (envelope-from vm@klankschap.nl) X-Mailer: The Bat! (v2.10.01) Personal X-Priority: 3 (Normal) Original-To: mailing list for ConTeXt users In-Reply-To: <411C7C2A.3080605@gmx.de> X-Virus-Scanned: by XS4ALL Virus Scanner 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:16091 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16091 if i define a path q := (w0,w0)--(w0,ww0)--(w2,ww1)--(w3,ww2)--(w3,w0)--cycle ; and then pass this path as a parameter to a function test( q ) ; then within that function i can step through the 'list of points'. def test( expr a ) = for i = 1 upto (length(a)-2): dotlabel.bot ("" , (point i of a) ); endfor ; enddef; but how could i extract from each point the X and the Y value to construct the lines like this. for i = 1 upto (length(a)-2): z1 = (point i of a) ; draw (0,y1)--(100,y1) ; endfor; thanks! % floris