From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93471 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Fieldstacks are broken Date: Sun, 24 Jan 2016 13:04:30 +0100 Message-ID: <56A4BDCE.5000809@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1395821399079699260==" X-Trace: ger.gmane.org 1453637113 11884 80.91.229.3 (24 Jan 2016 12:05:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Jan 2016 12:05:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 24 13:05:02 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 1aNJPh-0001xQ-Pf for gctc-ntg-context-518@m.gmane.org; Sun, 24 Jan 2016 13:05:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 00C5B63AD; Sun, 24 Jan 2016 13:04:46 +0100 (CET) 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 REIKY0pvGAkG; Sun, 24 Jan 2016 13:04:45 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 3333663B2; Sun, 24 Jan 2016 13:04:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7612E63B0 for ; Sun, 24 Jan 2016 13:04:44 +0100 (CET) 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 ag7SxIx3ZwTZ for ; Sun, 24 Jan 2016 13:04:43 +0100 (CET) Original-Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) (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 E54C463AD for ; Sun, 24 Jan 2016 13:04:33 +0100 (CET) Original-Received: by mail-wm0-f52.google.com with SMTP id u188so34731493wmu.1 for ; Sun, 24 Jan 2016 04:04:33 -0800 (PST) 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:content-type; bh=Mz1eoNafGh+vGhCLD4bIOCgQukR8RqoIYNO/ktc6eMk=; b=sNIldzGluo8doc7P1LVq42+Tn8iEHUX72ZrVU84GgLkslYL6pnn9xpTPY2RmU86pHG ZvSW06WzUBpl69IgA8KZ791i/XoH3RcIYFzdT8KuVHUvLMmsQa2tI2iqbsNryWRSmaCd roVz2TSEf+FbIbGUri9BPa29M/kHiGKJheRJ1xdqGTtTHi/icQ1/harLf8bsKkZkAuHM 7weLvHiaVPU7AAYyW4VqUTK0t1MzBIqnkTUBF3Y8QKibivX+IM0MD+qf3831ew9/gze/ 7Y+NKoxG+Zomx/+vc18Z5Jbo9k+bK8AME5ON3D+SFvQIcJZPqJz0gW+bZOcXCXdFvlix xRPQ== 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:content-type; bh=Mz1eoNafGh+vGhCLD4bIOCgQukR8RqoIYNO/ktc6eMk=; b=OqPCepB3jioBOTDMVvzcTZcO1WmwOdeg8sA0I4tDvcZ17eBCeA9QuzSJi0oz2Kl5sT xix1jjhOEzGzNPWH79IVo1MJshMZS9oLgMX0DTfsRsakpd05e4ozMG0R4rWHMegdefNt ykkxAQE29Aq8MktqajEdV6S+ONt8o2B2sz5hv1vb9tipLJXcGkwcNKOLHtRL94xMJR0S 0Wkp1Uhh5sLLyU3iL8/U4dvnlkADfbxymW/qtvoTXYB+OJSiNoi1x2w1e40ClqwJE6S/ sQVufqQ0e48+79hxasdfvfkUuxM++JP8GyYpqKyt+EoLCHDDARhnjJl3hSEAZkS9aVsM xq2w== X-Gm-Message-State: AG10YOSCInE5zagoVocj4QV27qgR66ytcclwcru9D+OA3V+pOVVHUqKkNx3D7y0xFCpA5A== X-Received: by 10.194.93.102 with SMTP id ct6mr14286259wjb.157.1453637073430; Sun, 24 Jan 2016 04:04:33 -0800 (PST) Original-Received: from keima.localdomain (x2f2995b.dyn.telefonica.de. [2.242.153.91]) by smtp.gmail.com with ESMTPSA id b1sm14311401wjy.0.2016.01.24.04.04.32 for (version=TLSv1/SSLv3 cipher=OTHER); Sun, 24 Jan 2016 04:04:32 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: 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:93471 Archived-At: This is a multi-part message in MIME format. --===============1395821399079699260== Content-Type: multipart/alternative; boundary="------------020009000107090504000109" This is a multi-part message in MIME format. --------------020009000107090504000109 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Fabrice Couvreur > 24. Januar 2016 um 12:39 > Hello everyone, > I tested the code and it does not work: I get one page with buttons > for animation is not working. > thank you, > Fabrice > > \def\MyGraphics#1{% > \unexpanded\def\MyGraphics#1{% > \startMPcode > path p,q; > p:=fullcircle scaled 72; > L:=length p; > N:=20; > q:=subpath (0,#1/N*L) of p; > draw q withcolor red; > fill fullcircle scaled 3 shifted point length q of q withcolor blue; > setbounds currentpicture to unitsquare shifted (-0.5,-0.5) scaled 75; > \stopMPcode}} You have nested definition which is wrong,the correct way is one of the following ones (2 or 3 are recommended): \unexpanded\def\MyGraphics#1% {\startMPcode ... \stopMPcode} or \define[1]\MyGraphics {\startMPcode ... \stopMPcode} or \starttexdefinition unexpanded MyGraphics #1 \startMPcode ... \stopMPcode \stoptexdefinition Wolfgang --------------020009000107090504000109 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
24= .=20 Januar 2016 um 12:39
Hello everyone,
= I tested the code and it does not work
: I get one page with buttons for animation is not working.
thank you,
Fabrice

\= def\MyGraphics#1{%
\unexpanded\def\MyGraphics#1{%
\startMPcode
p= ath p,q;
p:=3Dfullcircle scaled 72;
L:=3Dlength p;
N:=3D20;
q:=3D= subpath (0,#1/N*L) of p;
draw q withcolor red;
fill fullcircle scaled 3=20 shifted point length q of q withcolor blue;
setbounds currentpicture=20 to unitsquare shifted (-0.5,-0.5) scaled 75;
\stopMPcode}}

You have nested definition which is wrong,the correct way is one of the=20 following ones (2 or 3 are recommended):

\unexpanded\def\MyGraphics#1%
=C2=A0 {\startMPcode
=C2=A0=C2=A0=C2=A0=C2=A0 ...
=C2=A0=C2=A0 \stopMPcode}

or

\define[1]\MyGraphics
=C2=A0 {\startMPcode
=C2=A0=C2=A0=C2=A0=C2=A0 ...
=C2=A0=C2=A0 \stopMPcode}

or

\starttexdefinition unexpanded MyGraphics #1
=C2=A0=C2=A0=C2=A0 \startMPcode
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 ...
=C2=A0=C2=A0=C2=A0 \stopMPcode
\stoptexdefinition

Wolfgang
--------------020009000107090504000109-- --===============1395821399079699260== 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= --===============1395821399079699260==--