From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94547 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: useMPgraphic scaling Date: Tue, 26 Apr 2016 09:15:16 +0200 Message-ID: <571F1584.6090604@gmail.com> References: <2C9CB32E-2C54-48AD-8507-B06E12E1C302@uva.nl> <3e0c0c33-56b7-b0f9-f2cf-83500792ca9b@wxs.nl> <8d96c4d0-475d-f7fb-e2ed-379fdd1db867@wxs.nl> <90E0EEAB-EF63-4F30-8B9B-B56A5193A32B@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8079538983355459515==" X-Trace: ger.gmane.org 1461654951 26943 80.91.229.3 (26 Apr 2016 07:15:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2016 07:15:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 26 09:15:38 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 1auxDc-0002N9-7u for gctc-ntg-context-518@m.gmane.org; Tue, 26 Apr 2016 09:15:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DBBF9ADC3; Tue, 26 Apr 2016 09:15:16 +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 883I3JTSJX06; Tue, 26 Apr 2016 09:15:14 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 76630ADCD; Tue, 26 Apr 2016 09:15:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B6554ADC1 for ; Tue, 26 Apr 2016 09:15:13 +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 BhxkX3yWYI4n for ; Tue, 26 Apr 2016 09:15:13 +0200 (CEST) Original-Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id EF88CADBE for ; Tue, 26 Apr 2016 09:15:02 +0200 (CEST) Original-Received: by mail-wm0-f66.google.com with SMTP id n3so2094234wmn.1 for ; Tue, 26 Apr 2016 00:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=xUXrvUIwvXXtlsL96TrA5i8jYBjcUTp0KHwXUHjqepo=; b=QU3lEL9Ktnb1Xk18xcBo/cOTif+ssx84Q0+97qZ7N7rH8SwrckFkkeLgyigaOw2fJZ mjO05mRiCMa+3wbzXno3tLqbeq75LV680WucPaJrvUYCuAI+VaBi9RY5V6xij54DS61L N35Vx/CnUOSAUlI6hp8UxeGgZxQlwPZkp/Jh66Dmwz2nbJCPiNpm3UbVBrw8EcQ1cGsu uOzfKqXZgmy/RRuiXsKUP10PNB7OwnkIfbf25ela0L450EzxadeWqWTA/NErTSn+UBtG CZqOJDer93yEmzCWBnK/Woqdo+YHoRtPQme1g/7+X2waf+NU/gFS6ouwq+Bc+aq6e9kU dmtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=xUXrvUIwvXXtlsL96TrA5i8jYBjcUTp0KHwXUHjqepo=; b=ls0Znd+nDAjZPdadYEWSEEv4yOWau7UMfa37jbWX3Nc8VMiRmCa6XY1aF/NhkGJJOS EmLcGb1/rAfjhw0SW2z006aIsBXRxAqAd7JtUGc3KmrhOYTqXHbUPW/FdAbB1yg0sjbY 4QitsyhI/W9NJ7zWc8TW9yDdgs80dH4uSC96qhma8Zjey39JnLhujL0oxD39P0NUbFlo umMqmffnCDMWmub3i2xvzHWhwiCjWwWOr9Tr7o5B5PRdloxYG0n4EQmDhSqAhFAZba7W DIu7NSaR/SDoQ3dtz8T5nPGsPWDhklJ0BPMh5IaQ22J3avxLi0RCEK+p38i1U19uzxjx bg/Q== X-Gm-Message-State: AOPr4FVe5MCvTjj2zhJHMMWnRXwE1t6jdiwlEREKeJr+W4wPAa68Vd9TmhVinSZqAcOHIA== X-Received: by 10.28.129.22 with SMTP id c22mr16486639wmd.89.1461654902695; Tue, 26 Apr 2016 00:15:02 -0700 (PDT) Original-Received: from keima.localdomain (x2f224dd.dyn.telefonica.de. [2.242.36.221]) by smtp.gmail.com with ESMTPSA id g132sm1590801wme.0.2016.04.26.00.15.01 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Apr 2016 00:15:02 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <90E0EEAB-EF63-4F30-8B9B-B56A5193A32B@uva.nl> 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:94547 Archived-At: This is a multi-part message in MIME format. --===============8079538983355459515== Content-Type: multipart/alternative; boundary="------------080801050908060704050401" This is a multi-part message in MIME format. --------------080801050908060704050401 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > Meer, Hans van der > 26. April 2016 um 08:50 > > > Sure, is needed. Checked it again. > I define \scalesetting as > \edef\scalesetting{scale=\xmlattdef{#1}{scale}{1000}} > But I am not sure why this needs the expansion.. > > The enclosing \rotate[rotation=\xmlattdef{#1}{rotation}{0}]{...} does > not need the\expanded. > The exapnsion is need for this part only: \scale[\scalesetting] ConTeXt checks if the argument contains an assignment which isn't the case unless you expand \scalesetting and it sees the = in the argument. Wolfgang --------------080801050908060704050401 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
26. April 2016 um 08:50


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

The enclosing \rotate[rotation=\xmlattdef{#1}{rotation}{0}]{...} does not need the \expanded.

The exapnsion is need for this part only:

    \scale[\scalesetting]

ConTeXt checks if the argument contains an assignment which isn’t the case unless you expand \scalesetting and it sees the = in the argument.

Wolfgang
--------------080801050908060704050401-- --===============8079538983355459515== 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= --===============8079538983355459515==--