From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93451 Path: news.gmane.org!not-for-mail From: Jeong Dal Newsgroups: gmane.comp.tex.context Subject: Re: Fieldstacks are broken Date: Thu, 21 Jan 2016 23:55:16 +0900 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Content-Type: multipart/mixed; boundary="===============7154663374447260790==" X-Trace: ger.gmane.org 1453388163 19734 80.91.229.3 (21 Jan 2016 14:56:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jan 2016 14:56:03 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 21 15:55:50 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 1aMGeL-0004Ip-Ct for gctc-ntg-context-518@m.gmane.org; Thu, 21 Jan 2016 15:55:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 24DC06292; Thu, 21 Jan 2016 15:55:37 +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 SKx4hztgYnrl; Thu, 21 Jan 2016 15:55:36 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 6A5946296; Thu, 21 Jan 2016 15:55:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 299C6628D for ; Thu, 21 Jan 2016 15:55:36 +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 Pz7kqw9aJl4S for ; Thu, 21 Jan 2016 15:55:34 +0100 (CET) Original-Received: from pv33p03im-asmtp002.me.com (pv33p03im-asmtp002.me.com [17.143.180.11]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id F320D628A for ; Thu, 21 Jan 2016 15:55:23 +0100 (CET) Original-Received: from [10.0.1.3] (unknown [1.235.93.51]) by pv33p03im-asmtp002.me.com (Oracle Communications Messaging Server 7.0.5.36.0 64bit (built Sep 8 2015)) with ESMTPSA id <0O1B00IFG5G5OR50@pv33p03im-asmtp002.me.com> for ntg-context@ntg.nl; Thu, 21 Jan 2016 14:55:21 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-01-21_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1015 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1601210263 In-reply-to: X-Mailer: Apple Mail (2.3112) 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:93451 Archived-At: --===============7154663374447260790== Content-type: multipart/alternative; boundary="Apple-Mail=_70694A72-D996-461D-A86E-3C358493F25C" --Apple-Mail=_70694A72-D996-461D-A86E-3C358493F25C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thanks Hans, Wolfgang, Luigi The new beta with Luatex 0.88 makes \fieldstacks and \startanimation = work. The following example of Wolfgang is now working well. \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 \MyGraphics{#1}? = I tried \dorecurse, but it just display figures one by one. I also = tried lua, but it stops with the error message =E2=80=9Cunexpected = symbol near =E2=80=98\'=E2=80=9D. \dorecurse{20} {{\MyGraphics {\recurselevel}} \startluacode for i =3D 1, 20 do context(=E2=80=9C{\\MyGraphics {i}}=E2=80=9D) end \stopluacode Thanks again. Best regards, Dalyoung > Today's Topics: >=20 > 1. Re: Fieldstacks are broken (Hans Hagen) >=20 >=20 > ---------------------------------------------------------------------- >=20 > Message: 1 > Date: Mon, 11 Jan 2016 10:53:56 +0100 > From: Hans Hagen > To: ntg-context@ntg.nl > Subject: Re: [NTG-context] Fieldstacks are broken > Message-ID: <56937BB4.1070006@wxs.nl> > Content-Type: text/plain; charset=3Dutf-8; format=3Dflowed >=20 > On 1/10/2016 5:01 PM, Wolfgang Schuster wrote: >> Hi Hans, >>=20 >> the fieldstack mechanism doesn=E2=80=99t work anymore. >>=20 >> \setupinteraction[state=3Dstart] >>=20 >> \starttext \showframe >>=20 >> \definesymbol[frame-1][\tt 1] >> \definesymbol[frame-2][\tt 2] >> \definesymbol[frame-3][\tt 3] >>=20 >> \definefieldstack[frame][frame-1,frame-2,frame-3] >>=20 >> \placeontopofeachother >> {\framed[strut=3Dno,offset=3D1ex]{\fieldstack[frame]}} >> {\goto{Play}[Walk{frame}]} >>=20 >> \stoptext >=20 > fixed in next engine update >=20 >=20 > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl > ----------------------------------------------------------------- --Apple-Mail=_70694A72-D996-461D-A86E-3C358493F25C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Thanks Hans, Wolfgang, Luigi

The new beta with Luatex 0.88 makes \fieldstacks = and \startanimation work.
The following example of Wolfgang is = now working well.

\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]
\setu= pinteraction[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 \MyGraphics{#1}? I tried \dorecurse, but it just display = figures one by one.  I also tried lua, but it stops with the error = message  =E2=80=9Cunexpected symbol near =E2=80=98\'=E2=80=9D.
<= div>
\dorecurse{20}
{{\MyGraphics = {\recurselevel}}

\startluacode
for i =3D 1, 20 = do
= context(=E2=80=9C{\\MyGraphics{i}}=E2=80=9D)
end
\stoplua= code

Thanks again.

Best regards,

Dalyoung


Today's Topics:

  1. = Re: Fieldstacks are broken (Hans Hagen)


---------------------------------------------------------------= -------

Message: 1
Date: Mon, = 11 Jan 2016 10:53:56 +0100
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: = [NTG-context] Fieldstacks are broken
Message-ID: <56937BB4.1070006@wxs.nl>
Content-Type: = text/plain; charset=3Dutf-8; format=3Dflowed

On 1/10/2016 5:01 PM, Wolfgang Schuster wrote:
Hi Hans,
the fieldstack mechanism doesn=E2=80=99t work anymore.

\setupinteraction[state=3Dstart]

\starttext \showframe

\definesymbol[frame-1][\tt 1]
\definesymbol[frame-2][\tt 2]
\definesymbol[frame-3][\tt 3]

\definefieldstack[frame][frame-1,frame-2,frame-3]

\placeontopofeachother
{\framed[strut=3Dno,offset=3D1ex]{\fieldstack[frame]}}
{\goto{Play}[Walk{frame}]}

\stoptext

fixed in = next engine update


---------------------------------------------------------------= --
=             &n= bsp;           &nbs= p;            =      Hans Hagen | PRAGMA ADE
=             &n= bsp; Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | www.pragma-ade.com | = www.pragma-pod.nl
---------------------------------------------------------------= --

= --Apple-Mail=_70694A72-D996-461D-A86E-3C358493F25C-- --===============7154663374447260790== 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= --===============7154663374447260790==--