From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94546 Path: news.gmane.org!not-for-mail From: "Meer, Hans van der" Newsgroups: gmane.comp.tex.context Subject: Re: useMPgraphic scaling Date: Tue, 26 Apr 2016 06:50:11 +0000 Message-ID: <90E0EEAB-EF63-4F30-8B9B-B56A5193A32B@uva.nl> References: <2C9CB32E-2C54-48AD-8507-B06E12E1C302@uva.nl> <3e0c0c33-56b7-b0f9-f2cf-83500792ca9b@wxs.nl> <8d96c4d0-475d-f7fb-e2ed-379fdd1db867@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0444663406727352610==" X-Trace: ger.gmane.org 1461653460 5087 80.91.229.3 (26 Apr 2016 06:51:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2016 06:51:00 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 26 08:50:49 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1auwpc-000271-Ny for gctc-ntg-context-518@m.gmane.org; Tue, 26 Apr 2016 08:50:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 64F18AF23; Tue, 26 Apr 2016 08:50:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QPfu1Q4om-FI; Tue, 26 Apr 2016 08:50:24 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id B50FAAF2A; Tue, 26 Apr 2016 08:50:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9B918AF24 for ; Tue, 26 Apr 2016 08:50:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GuR_-5_3aPYU for ; Tue, 26 Apr 2016 08:50:22 +0200 (CEST) Original-Received: from HUB01.uva.nl (hub01.uva.nl [146.50.108.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 9A68FAF23 for ; Tue, 26 Apr 2016 08:50:12 +0200 (CEST) Original-Received: from MBX02.uva.nl ([169.254.2.73]) by HUB01.uva.nl ([::1]) with mapi id 14.03.0266.001; Tue, 26 Apr 2016 08:50:12 +0200 Thread-Topic: [NTG-context] useMPgraphic scaling Thread-Index: AQHRnuM7IUHoIjJMlk+z0at4j73RG5+aahoAgAAoOoCAAA2CgIABEJ2A In-Reply-To: <8d96c4d0-475d-f7fb-e2ed-379fdd1db867@wxs.nl> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [84.106.134.200] x-endpointsecurity-0xde81-ev: v:6.2.7.719, d:out, a:y, w:t, t:0, sv:1461642031, ts:1461653412 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:94546 Archived-At: --===============0444663406727352610== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_90E0EEABEF634F308B9BB56A5193A32Buvanl_" --_000_90E0EEABEF634F308B9BB56A5193A32Buvanl_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On 25 Apr 2016, at 16:34, Hans Hagen > = wrote: On 4/25/2016 3:46 PM, Meer, Hans van der wrote: Thanks, Your reply popped up here exactly the moment I saw the light! Must be something Messed up the order things: Was: \scale[\scalesetting]{% \expanded{\useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters}}}}% And of course had to be: \expanded{\scale[\scalesetting]{% \useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters}}}}% is the \expanded really needed? Sure, is needed. Checked it again. I define \scalesetting as \edef\scalesetting{scale=3D\xmlattdef{#1}{scale}{1000}} But I am not sure why this needs the expansion.. The enclosing \rotate[rotation=3D\xmlattdef{#1}{rotation}{0}]{...} does not= need the \expanded. Hans van der Meer --_000_90E0EEABEF634F308B9BB56A5193A32Buvanl_ Content-Type: text/html; charset="us-ascii" Content-ID: <3355D3F1415D5E438DDD34C9C33826D8@uva.nl> Content-Transfer-Encoding: quoted-printable
On 25 Apr 2016, at 16:34, Hans Hagen <pragma@wxs.nl> wrote:

= On 4/25/2016 3:46 PM, Meer, Hans van der wrote:
Thanks,

Your reply popped up here exactly the moment I saw the light! Must be
something
Messed up the order things:

Was:
\scale[\scalesetting]{%
   \expanded{\useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{pa= rameters}}}}%

And of course had to be:
\expanded{\scale[\scalesetting]{%
   \useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters}}= }}%

is the \expanded really needed?

Sure, is needed. Checked it again.
I define \scalesetting as 
\edef\scalesetting{scale=3D\xmlattdef{#1}{scale= }{1000}}
But I am not sure why this needs the expansion..

The enclosing \rotat= e[rotation=3D\xmlattdef{#1}{rotation}{0}]{...} does not need the \expanded.

Hans van der Meer




--_000_90E0EEABEF634F308B9BB56A5193A32Buvanl_-- --===============0444663406727352610== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0444663406727352610==--