From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80812 Path: news.gmane.org!not-for-mail From: Marco Patzer Newsgroups: gmane.comp.tex.context Subject: Re: MPinclusions, MPextensions, MPinitializations and MPinstances Date: Thu, 14 Feb 2013 14:01:44 +0100 Message-ID: <20130214130144.GA17131@homerow> References: <20130213175928.GD24111@homerow> <511C20DC.2040607@wxs.nl> <20130213235153.GE24111@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1113376920==" X-Trace: ger.gmane.org 1360846919 18736 80.91.229.3 (14 Feb 2013 13:01:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Feb 2013 13:01:59 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 14 14:02: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 1U5ySB-0002UK-HE for gctc-ntg-context-518@m.gmane.org; Thu, 14 Feb 2013 14:02:19 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EE198101F6; Thu, 14 Feb 2013 14:01:59 +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 4qQ965uE7rGy; Thu, 14 Feb 2013 14:01:54 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8C01B101E3; Thu, 14 Feb 2013 14:01:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5004A101E3 for ; Thu, 14 Feb 2013 14:01:53 +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 DO4CMBCyfkfJ for ; Thu, 14 Feb 2013 14:01:51 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 269CC101E2 for ; Thu, 14 Feb 2013 14:01:51 +0100 (CET) Original-Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r1ED1msQ009015 for ; Thu, 14 Feb 2013 14:01:49 +0100 Original-Received: from c.earth.lavabit.com (c.earth.lavabit.com [192.168.111.12]) by karen.lavabit.com (Postfix) with ESMTP id EEA4311B799 for ; Thu, 14 Feb 2013 07:01:46 -0600 (CST) Original-Received: from homerow (miun111-73.dynamic.miun.se [193.10.111.73]) by lavabit.com with ESMTP id 1UCSANGTTP6W for ; Thu, 14 Feb 2013 07:01:46 -0600 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=Y351W0jfh+TVorg942z5bNeMCwnPWhtRSZrXE/GsxBy37V/+LiR1X4opnONa218gRPLD1x7NQDnf8wLVivn/b3idMIC9lcLThG9Ee9F/D8abNnzgkC6yIzb9sIg5YHCNJ13fXMh0VaSKqqklJuVJwmYs6n0iXwk6kplaJNUUJNU=; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; Mail-Followup-To: ntg-context@ntg.nl In-Reply-To: <20130213235153.GE24111@homerow> User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.249.41.33; country=US; region=TX; city=Dallas; postalcode=75204; latitude=32.8019; longitude=-96.7883; metrocode=623; areacode=214; http://maps.google.com/maps?q=32.8019,-96.7883&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06J0d1MU5 - b48f57e322be - 20130214 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:80812 Archived-At: --===============1113376920== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2013=E2=80=9302=E2=80=9314 Marco Patzer wrote: > Now I can use =E2=80=9Cn=E2=80=9D in all MP instances (unless switched of= f for the > particular instance). I'd like to define some variables only visible > in instance =E2=80=9Cfoo=E2=80=9D. Something like >=20 > \startMPinitializations [foo] > numeric n; n=3D4cm; > \stopMPinitializations What I was looking for was (it's even mentioned in the manual): \startMPdefinitions{foo} =E2=80=A6 \stopMPdefinitions That means we have: - MPdefinitions (for instance-local definitions) - MPinclusions (global definitions) - MPinitializations (global definitions, can be disabled for an MP instance) - MPextensions (???, seems to be the same as MPinitializations) And all four include code for use within MP graphics. That really is confusing! > Maybe I'm missing the obvious here. Yes, I did :) Marco --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJRHOA4AAoJEPGqVaNSn0iKmkwH/0bQFX/XjUbx2tAnHBjKz5qp ZLhfHPZ/yofSt8BZZBwTADb02rSK5cxn8Lk7uNQ4Cpm3cA3UELgqjcondROUnhQU OVTdw550FF/AZ0536HmrrPQH+v4yrkar6nBP0NJGjhVFToZVgL5+zbj4P6FwXMpB uqnBSpksysLw6Pvn9xST1lp1jEj52BWmU5VSf76VFL7lI9RtHeSU5vt5CveXbPYU vuHKPIBh0KlZOmP3FTDHIts6rjZr0oF7Edt0OFwL53kxjnZCi81CP+LeQztkEQFo +5nd2v5nZM3Q/HrVyqveNUqu9tlhGWGDqrPly/gT27LkkG/M9Gdqqx+aid3F++Y= =5I1f -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0-- --===============1113376920== 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 ___________________________________________________________________________________ --===============1113376920==--