From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85655 Path: news.gmane.org!not-for-mail From: DesdeChaves Newsgroups: gmane.comp.tex.context Subject: Request for metapost Date: Sat, 21 Dec 2013 11:50:14 +0000 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0078344015==" X-Trace: ger.gmane.org 1387626616 20085 80.91.229.3 (21 Dec 2013 11:50:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Dec 2013 11:50:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 21 12:50:24 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VuL4a-00014M-7d for gctc-ntg-context-518@m.gmane.org; Sat, 21 Dec 2013 12:50:24 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5B8E9101E3; Sat, 21 Dec 2013 12:50:23 +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 5683H6hHqJkB; Sat, 21 Dec 2013 12:50:21 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id EF287101E6; Sat, 21 Dec 2013 12:50:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 05A13101E6 for ; Sat, 21 Dec 2013 12:50:20 +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 btyr7+c3pChX for ; Sat, 21 Dec 2013 12:50:17 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 51BA0101E3 for ; Sat, 21 Dec 2013 12:50:17 +0100 (CET) Original-Received: from mail-ob0-x234.google.com (mail-ob0-x234.google.com [IPv6:2607:f8b0:4003:c01::234]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rBLBoFbX014740 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 21 Dec 2013 12:50:16 +0100 Original-Received: by mail-ob0-f180.google.com with SMTP id wo20so3833904obc.11 for ; Sat, 21 Dec 2013 03:50:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=dw8TeCu+pO7u/xgpblHmJ3mIp14GTGKIRufzQEWARu4=; b=rPMDwwGBBYBx5HqI5rF/GgL6zUPy/BslLr8xRwjecsJCPdAbmONxKQUmaV6hWp9Wom xFbfbR8BRVj17R6v5SCGOITFcLaWCIb6SEXlqRZVgH25btV7GovShifGwYYOMRVgYN+C rI4vU3aDVrOoDhn7qTQgqzoZ6o+JhRaq8qOyABAHqM046/N8htwoFS89CCLCP5zDQkCo lvyXvsj6GWuss3xuQPyM4Mhky/+2S7cBVskTbmQQvSZK3r/mzzVI3rFkNjokFFxEMzaT xsIYRgENu256B2NUJi8s2SCoB3zMt/uiNvAmihC24rSwy+NhTDIzpdaFUo1zmMRJsYcI 08dw== X-Received: by 10.60.67.105 with SMTP id m9mr10221676oet.58.1387626614901; Sat, 21 Dec 2013 03:50:14 -0800 (PST) Original-Received: by 10.60.52.143 with HTTP; Sat, 21 Dec 2013 03:50:14 -0800 (PST) X-Bayes-Prob: 0.0057 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4003:c01::234; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VL4bOgpH - b389ea99d774 - 20131221 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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 Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85655 Archived-At: --===============0078344015== Content-Type: multipart/alternative; boundary=001a11c301fc76523504ee09ffdd --001a11c301fc76523504ee09ffdd Content-Type: text/plain; charset=ISO-8859-1 I know that metapost can send the variables "version", "number", "string", "point", "quad", "boolean" and "path" to Context. "triplet" variable can't pass. It will be very usefull if metapost can send a array to context. \startMPcode numeric x[]; for i = 1 upto 10: x[i]:=random; endfor passvariable("array",x); passvariable("version","1.0") ; passvariable("number",x[1]) ; passvariable("string","whatever") ; passvariable("point",(1,2)) ; passvariable("triplet",(1,2,3)) ; passvariable("quad",(1,2,3,4)) ; passvariable("boolean",false) ; passvariable("path",fullcircle scaled 1cm) ; \stopMPcode \ctxluacode{inspect(metapost.variables)} \ctxcommand{mprunvar("array")} Thanks in advance Jorge --001a11c301fc76523504ee09ffdd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

I know that metapost can send the vari= ables "version", "number", "string", "po= int", "quad", "boolean" and "path" to Co= ntext.
"triplet" variable can't pass. It will be very usefull i= f metapost can send a array to context. =A0

\start= MPcode

numeric x[];
for i =3D 1 upto 10:= x[i]:=3Drandom; endfor

passvariable("array",x);
=A0 =A0 pa= ssvariable("version","1.0") ;
=A0 =A0 passvar= iable("number",x[1]) ;
=A0 =A0 passvariable("strin= g","whatever") ;
=A0 =A0 passvariable("point",(1,2)) ;
passvariable= ("triplet",(1,2,3)) ;
=A0 =A0 passvariable("quad&q= uot;,(1,2,3,4)) ;
=A0 =A0 passvariable("boolean",false)= ;
=A0 =A0 passvariable("path",fullcircle scaled 1cm) ;


\stopMPcode

\ctxl= uacode{inspect(metapost.variables)}

\ctxcommand{mp= runvar("array")}


Thanks in advance
=
Jorge
--001a11c301fc76523504ee09ffdd-- --===============0078344015== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0078344015==--