ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: ntg-context Digest, Vol 139, Issue 61
       [not found] <mailman.129.1453635610.2231.ntg-context@ntg.nl>
@ 2016-01-24 12:53 ` Jeong Dal
  2016-01-24 12:55 ` Fieldstacks are broken Jeong Dal
  1 sibling, 0 replies; 16+ messages in thread
From: Jeong Dal @ 2016-01-24 12:53 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1127 bytes --]

Dear Fabrice,

I run the same file again and I think that main things in my log file is not different from yours.

Do you use Adobe Reader to view the pdf files?
The pdf viewer of TeXShop and that of TeXworks can not show the animation.

If you have the trouble even if you use the adobe reader, I don’t know the solution.

I hope that animation feature works in your computer.

Best regards,

Dalyoung

> 2016. 1. 24., 오후 8:40, ntg-context-request@ntg.nl 작성:
> 
> Date: Sun, 24 Jan 2016 12:39:56 +0100
> From: Fabrice Couvreur <fabrice1.couvreur@gmail.com <mailto:fabrice1.couvreur@gmail.com>>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl <mailto:ntg-context@ntg.nl>>
> Subject: Re: [NTG-context] Fieldstacks are broken
> Message-ID:
> 	<CACyK-erzfqiA2GQtGE7VSnYhgxQ9finVA9COUvkJcpE9yK3PQQ@mail.gmail.com <mailto:CACyK-erzfqiA2GQtGE7VSnYhgxQ9finVA9COUvkJcpE9yK3PQQ@mail.gmail.com>>
> Content-Type: text/plain; charset="utf-8"
> 
> 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


[-- Attachment #1.2: Type: text/html, Size: 12905 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Fieldstacks are broken
       [not found] <mailman.129.1453635610.2231.ntg-context@ntg.nl>
  2016-01-24 12:53 ` ntg-context Digest, Vol 139, Issue 61 Jeong Dal
@ 2016-01-24 12:55 ` Jeong Dal
  1 sibling, 0 replies; 16+ messages in thread
From: Jeong Dal @ 2016-01-24 12:55 UTC (permalink / raw)
  To: list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl
	ntg-context@ntg.nl


[-- Attachment #1.1: Type: text/plain, Size: 1245 bytes --]

I am sorry, I forgot to  change the subject. I send it again.

***************
Dear Fabrice,

I run the same file again and I think that main things in my log file is not different from yours.

Do you use Adobe Reader to view the pdf files?
The pdf viewer of TeXShop and that of TeXworks can not show the animation.

If you have the trouble even if you use the adobe reader, I don’t know the solution.

I hope that animation feature works in your computer.

Best regards,

Dalyoung

> 2016. 1. 24., 오후 8:40, ntg-context-request@ntg.nl <mailto:ntg-context-request@ntg.nl> 작성:
> 
> Date: Sun, 24 Jan 2016 12:39:56 +0100
> From: Fabrice Couvreur <fabrice1.couvreur@gmail.com <mailto:fabrice1.couvreur@gmail.com>>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl <mailto:ntg-context@ntg.nl>>
> Subject: Re: [NTG-context] Fieldstacks are broken
> Message-ID:
> 	<CACyK-erzfqiA2GQtGE7VSnYhgxQ9finVA9COUvkJcpE9yK3PQQ@mail.gmail.com <mailto:CACyK-erzfqiA2GQtGE7VSnYhgxQ9finVA9COUvkJcpE9yK3PQQ@mail.gmail.com>>
> Content-Type: text/plain; charset="utf-8"
> 
> 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


[-- Attachment #1.2: Type: text/html, Size: 13134 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Fieldstacks are broken
       [not found] <mailman.1.1453719602.15037.ntg-context@ntg.nl>
@ 2016-01-25 22:28 ` Jeong Dal
  0 siblings, 0 replies; 16+ messages in thread
From: Jeong Dal @ 2016-01-25 22:28 UTC (permalink / raw)
  To: ntg-context

Dear Wolfgang,


> The key has no effect because there is only one style for the buttons.
> 

I see.
I think that the other options: menu, menu color, framerate are enough for me.

Thank you.
Best regards,

Dalyoung
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Fieldstacks are broken
  2016-01-24 18:27   ` Wolfgang Schuster
@ 2016-01-25  9:42     ` Fabrice Couvreur
  0 siblings, 0 replies; 16+ messages in thread
From: Fabrice Couvreur @ 2016-01-25  9:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1405 bytes --]

Dear Wolfgang and Jeong,
Sorry for the noise! I simply make a copy and paste the code without
reading because
the subject of the question interested me.
This works perfectly correcting the errors reported by Wolfgang.
With Evince or Xpdf is impossible to play the movie, but with Acroread yes.
thank you,
Fabrice

2016-01-24 19:27 GMT+01:00 Wolfgang Schuster <schuster.wolfgang@gmail.com>:

> Jeong Dal <haksan@me.com>
> 24. Januar 2016 um 15:02
> Dear Wolfgang and Fabrice,
>
> I am sorry. I didn’t notice that there is a difference between my code and
> Fabrice’s.
> I made a wrong comment.
>
> I know that there are several options in the animation module: menu,
> menustyle, menucolor, framerate.
> Would you please explain the menustyle option once more?
>
> The key has no effect because there is only one style for the buttons.
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3730 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Fieldstacks are broken
  2016-01-24 14:02 ` Jeong Dal
@ 2016-01-24 18:27   ` Wolfgang Schuster
  2016-01-25  9:42     ` Fabrice Couvreur
  0 siblings, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2016-01-24 18:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 477 bytes --]

> Jeong Dal <mailto:haksan@me.com>
> 24. Januar 2016 um 15:02
> Dear Wolfgang and Fabrice,
>
> I am sorry. I didn’t notice that there is a difference between my code 
> and Fabrice’s.
> I made a wrong comment.
>
> I know that there are several options in the animation module: menu, 
> menustyle, menucolor, framerate.
> Would you please explain the menustyle option once more?
The key has no effect because there is only one style for the buttons.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1651 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Fieldstacks are broken
       [not found] <mailman.131.1453640134.2231.ntg-context@ntg.nl>
@ 2016-01-24 14:02 ` Jeong Dal
  2016-01-24 18:27   ` Wolfgang Schuster
  0 siblings, 1 reply; 16+ messages in thread
From: Jeong Dal @ 2016-01-24 14:02 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 610 bytes --]

Dear Wolfgang and Fabrice,

I am sorry. I didn’t notice that there is a difference between my code and Fabrice’s.
I made a wrong comment.

I know that there are several options in the animation module: menu, menustyle, menucolor, framerate.  
Would you please explain the menustyle option once more?

Thank you so much.

Best regards,

Dalyoung

 
> 2016. 1. 24., 오후 9:55, ntg-context-request@ntg.nl 작성:
> 
> \unexpanded\def\MyGraphics#1%
>   {\startMPcode
>      ...
>    \stopMPcode}
> 
> or
> 
> \define[1]\MyGraphics
>   {\startMPcode
>      ...
>    \stopMPcode}


[-- Attachment #1.2: Type: text/html, Size: 8292 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Fieldstacks are broken
  2016-01-24 11:39   ` Fabrice Couvreur
@ 2016-01-24 12:04     ` Wolfgang Schuster
  0 siblings, 0 replies; 16+ messages in thread
From: Wolfgang Schuster @ 2016-01-24 12:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 962 bytes --]

> Fabrice Couvreur <mailto:fabrice1.couvreur@gmail.com>
> 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

[-- Attachment #1.2: Type: text/html, Size: 2465 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Fieldstacks are broken
  2016-01-22 14:45 ` Jeong Dal
@ 2016-01-24 11:39   ` Fabrice Couvreur
  2016-01-24 12:04     ` Wolfgang Schuster
  0 siblings, 1 reply; 16+ messages in thread
From: Fabrice Couvreur @ 2016-01-24 11:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 6105 bytes --]

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}}
\usemodule[animation]
\setupinteraction[state=start]

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

\stoptext

fab@debian:~$ context ntg43.tex

resolvers       | trees | analyzing 'home:texmf'
mtx-context     | run 1: luatex
--fmt="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
--jobname="ntg43"
--lua="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./ntg43.tex"
--c:input="./ntg43.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
This is LuaTeX, Version beta-0.88.0 (TeX Live 2016/dev)
 system commands enabled.

resolvers       > trees > analyzing 'home:texmf'

system          > callbacks > not registering frozen 'find_format_file'
open source     > 1 > 1 >
/home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv

ConTeXt  ver: 2016.01.18 22:21 MKIV beta  fmt: 2016.1.22  int:
english/english

system          > 'cont-new.mkiv' loaded
open source     > 2 > 2 >
/home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
close source    > 2 > 2 >
/home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
system          > files > jobname 'ntg43', input './ntg43', result 'ntg43'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > 2 > 3 > /home/fab/ntg43.tex
resolvers       > modules > 'animation' is loaded
open source     > 3 > 4 >
/home/fab/context/tex/texmf-modules/tex/context/third/animation/t-animation.mkvi
close source    > 3 > 4 >
/home/fab/context/tex/texmf-modules/tex/context/third/animation/t-animation.mkvi
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
open source     > 3 > 5 >
/home/fab/context/tex/texmf-context/tex/context/base/mkiv/java-imp-fld.mkiv
close source    > 3 > 5 >
/home/fab/context/tex/texmf-context/tex/context/base/mkiv/java-imp-fld.mkiv
interactions    > javascripts > loaded: library 'fld'
backend         > xmp > using file
'/home/fab/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1
close source    > 2 > 5 > /home/fab/ntg43.tex
close source    > 1 > 5 >
/home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path:
/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.025 seconds, 1 scans with
scantime 0.013 seconds, 0 shared scans, 13 found files, scanned paths:
/home/fab/texmf
mkiv lua stats  > stored bytecode data: 383 modules (0.240 sec), 81 tables
(0.011 sec), 464 chunks (0.251 sec)
mkiv lua stats  > traced context: maxstack: 1169, freed: 9, unreachable:
1160
mkiv lua stats  > cleaned up reserved nodes: 42 nodes, 9 lists of 443
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 27
glue_spec, 3 attribute_list, 2 temp, 1 pdf_literal
mkiv lua stats  > node list callback tasks: 6 unique task lists, 6
instances (re)created, 44 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf
output)
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 226 direct, 1256 indirect, 1482 total
mkiv lua stats  > randomizer: resumed with value 0.6945844393664
mkiv lua stats  > loaded tex modules: 1 requested, all found (*-animation)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > interactive elements: 5 references, 0 destinations
mkiv lua stats  > result saved in file: ntg43.pdf, compresslevel 3,
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 3 files: contnav.afm, latinmodern-math.otf,
lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.012, afm 1.500, tfm 1.000, 5
instances, load time 0.196 seconds
mkiv lua stats  > pdf annotations: 5 links (5 unique), 4 special
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree:
texmf-linux-64
mkiv lua stats  > luatex banner: this is luatex, version beta-0.88.0 (tex
live 2016/dev)
mkiv lua stats  > control sequences: 43642 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua, used memory: 57 MB (ctx: 57
MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.516 seconds, 1 processed pages, 1 shipped
pages, 1.938 pages/second

system          | total runtime: 0.742 seconds


2016-01-22 15:45 GMT+01:00 Jeong Dal <haksan@me.com>:

> Dear Hans, Wolfgang
>
> Thank you for the solutions.
>
> “\unexpanded …” method is working well.
>
> It can make the class materials more interesting.
>
> Thanks again.
>
> Best regards,
>
> Dalyoung
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 7973 bytes --]

[-- Attachment #2: ntg43.pdf --]
[-- Type: application/pdf, Size: 9472 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Fieldstacks are broken
       [not found] <mailman.85.1453416648.2231.ntg-context@ntg.nl>
@ 2016-01-22 14:45 ` Jeong Dal
  2016-01-24 11:39   ` Fabrice Couvreur
  0 siblings, 1 reply; 16+ messages in thread
From: Jeong Dal @ 2016-01-22 14:45 UTC (permalink / raw)
  To: list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl
	ntg-context@ntg.nl

Dear Hans, Wolfgang

Thank you for the solutions.

“\unexpanded …” method is working well.

It can make the class materials more interesting.

Thanks again.

Best regards,

Dalyoung


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Fieldstacks are broken
       [not found] <mailman.1.1453460401.13701.ntg-context@ntg.nl>
@ 2016-01-22 14:43 ` Jeong Dal
  0 siblings, 0 replies; 16+ messages in thread
From: Jeong Dal @ 2016-01-22 14:43 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1072 bytes --]

Dear Otared,

You are welcome. It is not my code.
As you know I am just an enduser of ConTeXt.
I also always thank to Hans, ConTeXt team and this list.
Here are always answers!

I mainly use ConTeXt to prepare documents, math papers, and class materials.
It is really good to use Metafun and Lua inside ConTeXt with ease. 
And the animation feature is really good to give better presentation to students.

As you said \dostepwiserecurse would be useful in many ways.

Please share your ideas too.

Best regards,

Dalyoung


> Hi Jeong,
> 
> I played with your code and indeed it is very nice to use this animation feature (I never succeeded to imbed a movie in a TeX file typeset with Context…).
> Thanks to Hans and Wolfgang, and you, I can now use such things in my presentations.
> 
> Just to say something which may be useful, one can also use \dostepwiserecurse as in
> 
> \startanimation[menu=yes]
> \dostepwiserecurse{0}{20}{2}{\expanded{\startframe \MyGraphics{\recurselevel} \stopframe}}
> \stopanimation
> 
> Best regards: OK


[-- Attachment #1.2: Type: text/html, Size: 8483 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Fieldstacks are broken
  2016-01-21 22:47   ` Wolfgang Schuster
@ 2016-01-22  4:26     ` Otared Kavian
  0 siblings, 0 replies; 16+ messages in thread
From: Otared Kavian @ 2016-01-22  4:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2331 bytes --]

Hi Jeong,

I played with your code and indeed it is very nice to use this animation feature (I never succeeded to imbed a movie in a TeX file typeset with Context…).
Thanks to Hans and Wolfgang, and you, I can now use such things in my presentations.

Just to say something which may be useful, one can also use \dostepwiserecurse as in

\startanimation[menu=yes]
\dostepwiserecurse{0}{20}{2}{\expanded{\startframe \MyGraphics{\recurselevel} \stopframe}}
\stopanimation

Best regards: OK

> On 21 Jan 2016, at 23:47, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
> 
>> Jeong Dal <mailto:haksan@me.com> 21. Januar 2016 um 15:55
>> 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{%
> \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}
>> \usemodule[animation]
>> \setupinteraction[state=start]
>> 
>> \starttext
>> \startanimation[menu=yes]
>> {\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  “unexpected symbol near ‘\'”.
> \startanimation[menu=yes]
> \dorecurse{20}{\expanded{\startframe \MyGraphics{\recurselevel} \stopframe}}
> \stopanimation
> 
> Wolfgang
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 5474 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Fieldstacks are broken
  2016-01-21 14:55 ` Jeong Dal
  2016-01-21 15:16   ` Hans Hagen
@ 2016-01-21 22:47   ` Wolfgang Schuster
  2016-01-22  4:26     ` Otared Kavian
  1 sibling, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2016-01-21 22:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1194 bytes --]

> Jeong Dal <mailto:haksan@me.com>
> 21. Januar 2016 um 15:55
> 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{%
\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}
> \usemodule[animation]
> \setupinteraction[state=start]
>
> \starttext
> \startanimation[menu=yes]
> {\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 
>  “unexpected symbol near ‘\'”.
\startanimation[menu=yes]
\dorecurse{20}{\expanded{\startframe \MyGraphics{\recurselevel} \stopframe}}
\stopanimation

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2850 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Fieldstacks are broken
  2016-01-21 14:55 ` Jeong Dal
@ 2016-01-21 15:16   ` Hans Hagen
  2016-01-21 22:47   ` Wolfgang Schuster
  1 sibling, 0 replies; 16+ messages in thread
From: Hans Hagen @ 2016-01-21 15:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 1/21/2016 3:55 PM, Jeong Dal wrote:
> 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:=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}
> \usemodule[animation]
> \setupinteraction[state=start]
>
> \starttext
> \startanimation[menu=yes]
> {\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  “unexpected symbol near
> ‘\'”.
>
> \dorecurse{20}
> {{\MyGraphics {\recurselevel}}
>
> \startluacode
> for i = 1, 20 do
> context(“{\\MyGraphics <smb://MyGraphics>{i}}”)
> end
> \stopluacode

\dorecurse{20} {\dontleavehmode\ruledhbox{\MyGraphics{#1}}\allowbreak}

\page

\startluacode
for i = 1, 20 do
	context.dontleavehmode()
	context.MyGraphics(i)
     context.allowbreak()
end
\stopluacode



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Fieldstacks are broken
       [not found] <mailman.1.1452510001.6531.ntg-context@ntg.nl>
@ 2016-01-21 14:55 ` Jeong Dal
  2016-01-21 15:16   ` Hans Hagen
  2016-01-21 22:47   ` Wolfgang Schuster
  0 siblings, 2 replies; 16+ messages in thread
From: Jeong Dal @ 2016-01-21 14:55 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2421 bytes --]

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:=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}
\usemodule[animation]
\setupinteraction[state=start]

\starttext
\startanimation[menu=yes]
{\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  “unexpected symbol near ‘\'”.

\dorecurse{20}
{{\MyGraphics {\recurselevel}}

\startluacode
for i = 1, 20 do
	context(“{\\MyGraphics <smb://MyGraphics>{i}}”)
end
\stopluacode

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=utf-8; format=flowed
> 
> On 1/10/2016 5:01 PM, Wolfgang Schuster wrote:
>> Hi Hans,
>> 
>> the fieldstack mechanism doesn’t work anymore.
>> 
>> \setupinteraction[state=start]
>> 
>> \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=no,offset=1ex]{\fieldstack[frame]}}
>> {\goto{Play}[Walk{frame}]}
>> 
>> \stoptext
> 
> fixed in next engine update
> 
> 
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
> -----------------------------------------------------------------


[-- Attachment #1.2: Type: text/html, Size: 4432 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Fieldstacks are broken
  2016-01-10 16:01 Wolfgang Schuster
@ 2016-01-11  9:53 ` Hans Hagen
  0 siblings, 0 replies; 16+ messages in thread
From: Hans Hagen @ 2016-01-11  9:53 UTC (permalink / raw)
  To: ntg-context

On 1/10/2016 5:01 PM, Wolfgang Schuster wrote:
> Hi Hans,
>
> the fieldstack mechanism doesn’t work anymore.
>
> \setupinteraction[state=start]
>
> \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=no,offset=1ex]{\fieldstack[frame]}}
> {\goto{Play}[Walk{frame}]}
>
> \stoptext

fixed in next engine update


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Fieldstacks are broken
@ 2016-01-10 16:01 Wolfgang Schuster
  2016-01-11  9:53 ` Hans Hagen
  0 siblings, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2016-01-10 16:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Hans,

the fieldstack mechanism doesn’t work anymore.

\setupinteraction[state=start]

\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=no,offset=1ex]{\fieldstack[frame]}}
{\goto{Play}[Walk{frame}]}

\stoptext

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-01-25 22:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.129.1453635610.2231.ntg-context@ntg.nl>
2016-01-24 12:53 ` ntg-context Digest, Vol 139, Issue 61 Jeong Dal
2016-01-24 12:55 ` Fieldstacks are broken Jeong Dal
     [not found] <mailman.1.1453719602.15037.ntg-context@ntg.nl>
2016-01-25 22:28 ` Jeong Dal
     [not found] <mailman.131.1453640134.2231.ntg-context@ntg.nl>
2016-01-24 14:02 ` Jeong Dal
2016-01-24 18:27   ` Wolfgang Schuster
2016-01-25  9:42     ` Fabrice Couvreur
     [not found] <mailman.85.1453416648.2231.ntg-context@ntg.nl>
2016-01-22 14:45 ` Jeong Dal
2016-01-24 11:39   ` Fabrice Couvreur
2016-01-24 12:04     ` Wolfgang Schuster
     [not found] <mailman.1.1453460401.13701.ntg-context@ntg.nl>
2016-01-22 14:43 ` Jeong Dal
     [not found] <mailman.1.1452510001.6531.ntg-context@ntg.nl>
2016-01-21 14:55 ` Jeong Dal
2016-01-21 15:16   ` Hans Hagen
2016-01-21 22:47   ` Wolfgang Schuster
2016-01-22  4:26     ` Otared Kavian
2016-01-10 16:01 Wolfgang Schuster
2016-01-11  9:53 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).