From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82238 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: parameters in startuseMPgraphic Date: Wed, 1 May 2013 22:35:07 +0200 Message-ID: <01CDED93-8E74-4DAF-A2D6-6DC5A5DAAED3@gmail.com> References: <9A3BB330-5D11-4A72-BA48-3D5404CEC0BA@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: multipart/mixed; boundary="===============1351642215==" X-Trace: ger.gmane.org 1367440520 20824 80.91.229.3 (1 May 2013 20:35:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 May 2013 20:35:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 01 22:35:20 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 1UXdkG-0007Lf-7A for gctc-ntg-context-518@m.gmane.org; Wed, 01 May 2013 22:35:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5D055101F7; Wed, 1 May 2013 22:35:19 +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 Ac+dFo6Mx9Jo; Wed, 1 May 2013 22:35:17 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 95970101F9; Wed, 1 May 2013 22:35:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1F01C101F9 for ; Wed, 1 May 2013 22:35:16 +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 6pS8J3oMWW0F for ; Wed, 1 May 2013 22:35:15 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 41FEF101F7 for ; Wed, 1 May 2013 22:35:15 +0200 (CEST) Original-Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r41KZ2sZ023563 for ; Wed, 1 May 2013 22:35:13 +0200 Original-Received: by mail-ee0-f49.google.com with SMTP id d4so794543eek.22 for ; Wed, 01 May 2013 13:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:content-type:message-id:mime-version:subject:date :references:to:in-reply-to:x-mailer; bh=KftYvAHYBrlp8yGOuHkN4pM9+eOAg6QG0NI3kGh6e60=; b=VtO7B+ffU1iyGrKBd6jL2/Ix9UILSgIyrR775FRjDiDyYVZTt4QMmlOvokFBpMyMli 7a55MUAjajmmMah/jFzCUK1TaLNqZkWYoq6hVGreJWXRM04w9WsY2H2xHU9ggBsvk/zA 531Omd0Myb4wxaHhHL5s7D9U54irr5ZDhwqgFhPLV4vTcbkR3rvCNmtympFc06unwJJ0 C0/pHMFyOIwxhnVsXWkx3OsR16YFoQNDUuEKiPAMSZuVvbZ2+IElAxlbDVY+6vQaceiW FFOzcGRAHMod6upGhAwlDGs8YlFGrkBZLC/iPD0lY3r9o/0dFOJB6aVDCpl9LWysfzMO +RCA== X-Received: by 10.15.26.6 with SMTP id m6mr12357454eeu.4.1367440502676; Wed, 01 May 2013 13:35:02 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbfbc2e.pool.mediaWays.net. [77.191.188.46]) by mx.google.com with ESMTPSA id m48sm5520708eeu.15.2013.05.01.13.35.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 May 2013 13:35:02 -0700 (PDT) In-Reply-To: <9A3BB330-5D11-4A72-BA48-3D5404CEC0BA@uva.nl> X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.49; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WJuIz2RV - 98ecdc21dd83 - 20130501 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:82238 Archived-At: --===============1351642215== Content-Type: multipart/alternative; boundary="Apple-Mail=_5C80CF2C-45AF-4C57-A9FE-6AAF11A47C25" --Apple-Mail=_5C80CF2C-45AF-4C57-A9FE-6AAF11A47C25 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 01.05.2013 um 11:48 schrieb "Meer, H. van der" : > I used to pass (color) parameters to \startuseMPgraphic with: >=20 > \startuseMPgraphic{square}{acolor} > draw unitsquare withcolor \MPvar{acolor}; % or \MPcolor{acolor} >=20 > In both cases I get the following error: >=20 > metapost > initializing instance 'metafun' using format = 'metafun' > metapost > loading 'metafun' as = '/Users/hansm/TeX/context-09/tex/texmf-context/metapost/context/base/metaf= un.mpiv' using method 'default' > metapost > initializing number mode 'scaled' > check > missing or ungrouped '=3D' after 'green' in line '7 = (442>square:)' >=20 > Has something changed in this mechanism of parameter use, or am I = doing something wrong? I don=92t if you=92re doing something wrong because you send only code = snippets which makes it hard to tell where the problem lies. \starttext \startuseMPgraphic{square}{acolor} draw unitsquare scaled 10 withcolor \MPvar{acolor} ; \stopuseMPgraphic \useMPgraphic{square}{acolor=3Dred} \useMPgraphic{square}{acolor=3Dblue} \stoptext Wolfgang --Apple-Mail=_5C80CF2C-45AF-4C57-A9FE-6AAF11A47C25 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 H.vanderMeer@uva.nl>:
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:

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 something wrong?

I don=92t if you=92re doing = something wrong because you send only code snippets which = makes
it hard to tell where the problem = lies.

\starttext

\s= tartuseMPgraphic{square}{acolor}
   draw unitsquare = scaled 10 withcolor \MPvar{acolor} = ;
\stopuseMPgraphic

\useMPgraphic{squar= e}{acolor=3Dred}

\useMPgraphic{square}{acolor=3Db= lue}

\stoptext

Wolfgang<= /div>

= --Apple-Mail=_5C80CF2C-45AF-4C57-A9FE-6AAF11A47C25-- --===============1351642215== 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 ___________________________________________________________________________________ --===============1351642215==--