From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82218 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: parameters in startuseMPgraphic Date: Wed, 1 May 2013 09:48:03 +0000 Message-ID: <9A3BB330-5D11-4A72-BA48-3D5404CEC0BA@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0373529653==" X-Trace: ger.gmane.org 1367401698 9134 80.91.229.3 (1 May 2013 09:48:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 May 2013 09:48:18 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Wed May 01 11:48:19 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UXTe5-0007Uh-Ut for gctc-ntg-context-518@m.gmane.org; Wed, 01 May 2013 11:48:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5B0AC101EB; Wed, 1 May 2013 11:48:17 +0200 (CEST) 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 vduHaKXTkUf9; Wed, 1 May 2013 11:48:14 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C3E37101E5; Wed, 1 May 2013 11:48:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D838B101E5 for ; Wed, 1 May 2013 11:48:13 +0200 (CEST) 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 GE-1SlLHLUh9 for ; Wed, 1 May 2013 11:48:13 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 089F1101E4 for ; Wed, 1 May 2013 11:48:13 +0200 (CEST) Original-Received: from HUB01.uva.nl (hub01.uva.nl [146.50.108.230]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r419m4DE001371 for ; Wed, 1 May 2013 11:48:04 +0200 Original-Received: from MBX02.uva.nl ([169.254.2.121]) by HUB01.uva.nl ([2002:9232:6737::9232:6737]) with mapi id 14.02.0342.003; Wed, 1 May 2013 11:48:04 +0200 Thread-Topic: parameters in startuseMPgraphic Thread-Index: AQHORlD5e2AZKXuX60KiXBElUHHhDQ== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.95.102.36] X-Bayes-Prob: 0.0861 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.230; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07JuxM4Vi - ce3b0acbf619 - 20130501 (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:82218 Archived-At: --===============0373529653== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_9A3BB3305D114A72BA483D5404CEC0BAuvanl_" --_000_9A3BB3305D114A72BA483D5404CEC0BAuvanl_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I used to pass (color) parameters to \startuseMPgraphic with: \startuseMPgraphic{square}{acolor} draw unitsquare withcolor \MPvar{acolor}; % or \MPcolor{acolor} In both cases I get the following error: metapost > initializing instance 'metafun' using format 'metafun' metapost > loading 'metafun' as '/Users/hansm/TeX/context-09/tex/tex= mf-context/metapost/context/base/metafun.mpiv' using method 'default' metapost > initializing number mode 'scaled' check > missing or ungrouped '=3D' after 'green' in line '7 (442>= square:)' Has something changed in this mechanism of parameter use, or am I doing som= ething wrong? Hans van der Meer --_000_9A3BB3305D114A72BA483D5404CEC0BAuvanl_ Content-Type: text/html; charset="us-ascii" Content-ID: <5415D845EB3DC94A82B637B417D4E7B6@uva.nl> Content-Transfer-Encoding: quoted-printable I used to pass (color) parameters to \startuseMPgraphic with:

\startuseMPgraphic{square}{acolor}
   draw unitsquare withcolor \MPvar{acolor}; % or \MPcolor{a= color}

In both cases I get the following error:

metapost=         > initializing instance 'metafun' using form= at 'metafun'
metapost=         > loading 'metafun' as '/Users/hansm/TeX/con= text-09/tex/texmf-context/metapost/context/base/metafun.mpiv' using method = 'default'
metapost=         > initializing number mode 'scaled'
check &n= bsp;         > missing or ungrouped '=3D' after 'gre= en' in line '7 (442>square:)'

Has something changed in this mechanism of parameter use, or am I doin= g something wrong?

Hans van der Meer



--_000_9A3BB3305D114A72BA483D5404CEC0BAuvanl_-- --===============0373529653== 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 ___________________________________________________________________________________ --===============0373529653==--