From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94539 Path: news.gmane.org!not-for-mail From: "Meer, Hans van der" Newsgroups: gmane.comp.tex.context Subject: Re: useMPgraphic scaling Date: Mon, 25 Apr 2016 13:46:07 +0000 Message-ID: References: <2C9CB32E-2C54-48AD-8507-B06E12E1C302@uva.nl> <3e0c0c33-56b7-b0f9-f2cf-83500792ca9b@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4679391560274100961==" X-Trace: ger.gmane.org 1461592025 1953 80.91.229.3 (25 Apr 2016 13:47:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Apr 2016 13:47:05 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 25 15:46:53 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 1augqj-00030S-1T for gctc-ntg-context-518@m.gmane.org; Mon, 25 Apr 2016 15:46:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 51EE7AECA; Mon, 25 Apr 2016 15:46:26 +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 xnwMbIF3t6D0; Mon, 25 Apr 2016 15:46:24 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 920EAAED8; Mon, 25 Apr 2016 15:46:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 78D45AECA for ; Mon, 25 Apr 2016 15:46: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 UnMyROo1MSBP for ; Mon, 25 Apr 2016 15:46:18 +0200 (CEST) Original-Received: from HUB02.uva.nl (hub02.uva.nl [146.50.108.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 314BFAEC5 for ; Mon, 25 Apr 2016 15:46:08 +0200 (CEST) Original-Received: from MBX02.uva.nl ([169.254.2.73]) by HUB02.uva.nl ([2002:9232:6ce7::9232:6ce7]) with mapi id 14.03.0266.001; Mon, 25 Apr 2016 15:46:07 +0200 Thread-Topic: [NTG-context] useMPgraphic scaling Thread-Index: AQHRnuM7IUHoIjJMlk+z0at4j73RG5+aahoAgAAoOoA= In-Reply-To: <3e0c0c33-56b7-b0f9-f2cf-83500792ca9b@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:1461575873, ts:1461591967 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:94539 Archived-At: --===============4679391560274100961== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_CB36DF00622C439691B5942C0E1440E5uvanl_" --_000_CB36DF00622C439691B5942C0E1440E5uvanl_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks, Your reply popped up here exactly the moment I saw the light! Must be somet= hing 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}}}}% On 25 Apr 2016, at 13:22, Hans Hagen > = wrote: On 4/25/2016 1:11 PM, Meer, Hans van der wrote: With images one can scale them on placement, for example \externalfigure[][= scale=3D250,height=3D..] etc. Is such a scaling or separate height,width setting also possible with the p= lacement of useMPgraphic? Or needs all scaling of thesebe done within the metapost/metafun code? \scale[...]{} Hans van der Meer --_000_CB36DF00622C439691B5942C0E1440E5uvanl_ Content-Type: text/html; charset="us-ascii" Content-ID: <667EBA57736172449A8158D4403E804F@uva.nl> Content-Transfer-Encoding: quoted-printable Thanks,

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

Was:
\scale[\scalesetting]{%
    \expanded{<= /font>\useMPgraphic{\xmlat= t{#1}{name}}{\xmlatt{#1}{parameter= s}}}}%

And of course had to be:
\expanded{\scale[\scalese= tting]{%
    \useMPgraph= ic{\xmlatt{#1}{name}}{\xmlatt{#1}{= parameters}}}}%

On 25 Apr 2016, at 13:22, Hans Hagen <pragma@wxs.nl> wrote:

On 4/25/2016 1:11 PM, Meer, Hans van der wrote:
With images one can scale them on plac= ement, for example \externalfigure[][scale=3D250,height=3D..] etc.
Is such a scaling or separate height,width setting also possible with the p= lacement of useMPgraphic?
Or needs all scaling of thesebe done within the metapost/metafun code?

\scale[...]{}


Hans van der Meer




--_000_CB36DF00622C439691B5942C0E1440E5uvanl_-- --===============4679391560274100961== 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= --===============4679391560274100961==--