From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93454 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Fieldstacks are broken Date: Thu, 21 Jan 2016 23:47:55 +0100 Message-ID: <56A1601B.8010504@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="===============7243187822561150890==" X-Trace: ger.gmane.org 1453416514 11835 80.91.229.3 (21 Jan 2016 22:48:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jan 2016 22:48:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 21 23:48:22 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 1aMO1e-0003aE-Hr for gctc-ntg-context-518@m.gmane.org; Thu, 21 Jan 2016 23:48:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A482E62B4; Thu, 21 Jan 2016 23:48:11 +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 bVvPfXfKknme; Thu, 21 Jan 2016 23:48:10 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 51CC662B3; Thu, 21 Jan 2016 23:48:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2AB0462B3 for ; Thu, 21 Jan 2016 23:48:09 +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 68B51UGdTYmd for ; Thu, 21 Jan 2016 23:48:08 +0100 (CET) Original-Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) (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 3686362B2 for ; Thu, 21 Jan 2016 23:47:58 +0100 (CET) Original-Received: by mail-wm0-f45.google.com with SMTP id l65so238950162wmf.1 for ; Thu, 21 Jan 2016 14:47:58 -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=94LZKZR5l8phaOleY7YWWXuH0ERE1aif+Xbp1+LPVJs=; b=spKOfAkD+sQMPPWAnv16wh4jD5iolFaIb6c0GCHt5P3l7WLPYG4umHapxc8/SdQGNf 5ACtXUVVNy4fnf/+oHmF1Ftznr7cNlFprS2BiNY3EOoUAEt4nrOxZdSOYysECKKFjkqD +pLHgPY3nV5iJ2EY5B4FuVavdppm8y3yXdXpRopnWk2bl92IwBKU6c6GgQqeaJYO263U PiwNfbxdoHB+Gd++yjUWN8JpsxbmRTLQrlYhVXElmbv4FPYe0kWP3kwqNy0SIbfDRR8E iZAZXZvhHvYIzruHevcZVTUgwcNmLZBOkuR0d5jj8Uta22eRXDv8X3mifjXnlR/6/sve 9vCg== 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=94LZKZR5l8phaOleY7YWWXuH0ERE1aif+Xbp1+LPVJs=; b=KofPwV31pj4SdghP39qMdJFoOy6zOfLDeT3QEsg8GBCKz7Cg+U1IvxkXybfjLmijmy kvgGkyC7T47114PfpRwiWhXNdFNCKeNQPEpyAlKTenMMQ6rT0US7XTiA5+rn6WhzWhGH gl0zl4cAnKaljnAF4OJfypVpa2oTBhY6naIq1YeYICFqE0mLXjQIjF1PrcwQQkkLPzuR zf/VSdRYV8EQmX9LpWoJJNMD7hFtP6RKRoI1unY3bpy64jjySvLOZyyuMk3yiBZOT23N vyWSXzu3VqJWxLnLb1D3O3NEGaZrV0tbBPrqJfLPMTaGyihk1k7xaeI2zwPbpt92kKVK GN+g== X-Gm-Message-State: ALoCoQk3tyZ2DSO0rpvvWo3bNYZV0WND8Kg7+lfzKzYffVuLEZtJO3LMQpGCVD4eMHkSkcUkjI6fWnW7/wX+lhqKfqUEtizGXg== X-Received: by 10.194.21.135 with SMTP id v7mr44207297wje.131.1453416476771; Thu, 21 Jan 2016 14:47:56 -0800 (PST) Original-Received: from keima.localdomain (x2f248d2.dyn.telefonica.de. [2.242.72.210]) by smtp.gmail.com with ESMTPSA id l67sm314292wmf.11.2016.01.21.14.47.55 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jan 2016 14:47:56 -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:93454 Archived-At: This is a multi-part message in MIME format. --===============7243187822561150890== Content-Type: multipart/alternative; boundary="------------090602080808090206060603" This is a multi-part message in MIME format. --------------090602080808090206060603 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Jeong Dal > 21. Januar 2016 um 15:55 > Thanks Hans, Wolfgang, Luigi > > The new beta with Luatex 0.88 makes \fieldstacks and \startanimation wo= rk. > The following example of Wolfgang is now working well. > > \def\MyGraphics#1{% \unexpanded\def\MyGraphics#1{% > \startMPcode > path p,q; > p:=3Dfullcircle scaled 72; > L:=3Dlength p; > N:=3D20; > q:=3Dsubpath (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} > \usemodule[animation] > \setupinteraction[state=3Dstart] > > \starttext > \startanimation[menu=3Dyes] > {\MyGraphics {5}} > {\MyGraphics {10}} > {\MyGraphics {15}} > {\MyGraphics {20}} > \stopanimation > > \stoptext > > One more question. Is there any convenient way to list=20 > \MyGraphics{#1}? I tried \dorecurse, but it just display figures one=20 > by one. I also tried lua, but it stops with the error message=20 > =E2=80=9Cunexpected symbol near =E2=80=98\'=E2=80=9D. \startanimation[menu=3Dyes] \dorecurse{20}{\expanded{\startframe \MyGraphics{\recurselevel} \stopfram= e}} \stopanimation Wolfgang --------------090602080808090206060603 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
21= .=20 Januar 2016 um 15:55
T= hanks Hans, Wolfgang, Luigi

The new beta=20 with Luatex 0.88 makes \fieldstacks and \startanimation work.
T= he following example of Wolfgang is now working well.
\def\MyGraphics#1{%
\unexpanded\def\MyGraphics#1{%
\startMPcode
path p,q;
p:=3Dfullcircle=20 scaled 72;
L:=3Dlength p;
N:=3D20;
q:=3Dsub= path=20 (0,#1/N*L) of p;
draw q withcolor red;
fill=20 fullcircle scaled 3 shifted point length q of q withcolor blue;
setbounds currentpicture to unitsquare shifted (-0.5,-0.5) scaled 75;
\s= topMPcode}
\usemodule[animation]
\setupinteraction[st= ate=3Dstart]

\starttext
\startanimation[menu=3Dyes]
{\MyGraphics {5}}
{\MyGraphics {10}}
{\MyGraphics {15}}
{\MyGraphics {20}}
\stopanimation

\stop= text

One more question. Is there any convenient way to list=20 \MyGraphics{#1}? I tried \dorecurse, but it just display figures one by=20 one. =C2=A0I also tried lua, but it stops with the error message =C2=A0=E2= =80=9Cunexpected symbol near =E2=80=98\'=E2=80=9D.
\startanimation[menu=3Dyes]
\dorecurse{20}{\expanded{\startframe \MyGraphics{\recurselevel}=20 \stopframe}}
\stopanimation

Wolfgang
--------------090602080808090206060603-- --===============7243187822561150890== 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= --===============7243187822561150890==--