Re: [NTG-context] Animations (again, but different)
Hi, with context version 2010.11.12 18:22, I get much better results now. Thanks! I guess, I now have a first feeling about these things. kind regards Erik 2010/11/11 Erik Margraf erik.marg...@googlemail.com Thank's for your example! But I'm sorry to say, I didn't get it. When I run context on it, it results in a 2x2 matrix of pictures. Two of them show some reaction (change the color somewhat) when I click on them. (the cows don't). That's all. Maybe it has to with the following lines in the log file: ... interaction : active references : unknown reference [][VideLayer{1}] references : unknown reference [][VideLayer{2}] references : unknown reference [][VideLayer{3}] references : unknown reference [][VideLayer{4}] ... I tried the following example from the Wiki: === \defineproperty[my-hasitations][layer][state=stop] \startproperty[my-hasitations] To \ConTeXt\ or not to \ConTeXt? \stopproperty \button{Show Decision}[VideLayer{my-hasitations}] \button{Hide Decision}[HideLayer{my-hasitations}] \button{Toggle Decision}[ToggleLayer{my-hasitations}] This produces the analogous messages for these three buttons. My Context Version - MTXrun | current version: 2010.11.03 19:42 My LuaTeX Version - This is LuaTeX, Version beta-0.63.0-2010090921 on Debian AMD64. I looked at the files with Acrobat Reader 9 on Windows XP (BTW. I also tried this completely using a MiKTeX 9 Installation on WinXP without success) Am I missing something? kind regards Erik 2010/11/4 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 03.11.2010 um 17:38 schrieb Erik Margraf: Dear Contexters! In the last few days I could read a few posts about animations in a resulting PDF document. Some statements mentioned java script as possible means to create an animation. Is it possible to do the following (which is rather simple using html and javascript)? -- Have a bunch of thumbnail pictures -- When you click on a thumbnail you see a larger version of the same picture -- With the next mouseclick the picture vanishes (you see the gallery of thumbnails again) if yes, how? Any hints are welcome. Not perfect (it’s not possible to close the big pictures) but it should give you a first impression: \setupinteraction[state=start] \defineproperty [1] [layer] [state=stop,global=yes] \defineproperty [2] [layer] [state=stop,global=yes] \defineproperty [3] [layer] [state=stop,global=yes] \defineproperty [4] [layer] [state=stop,global=yes] \starttexdefinition properties \startoverlay {\startproperty[1]\overlayfigure{cow}\stopproperty} {\startproperty[2]\overlayfigure{mill}\stopproperty} {\startproperty[3]\overlayfigure{hacker}\stopproperty} {\startproperty[4]\overlayfigure{cow}\stopproperty} \stopoverlay \stoptexdefinition \defineoverlay[properties][\properties] \startTEXpage[background={foreground,properties}] \bTABLE[width=4cm,height=4cm,offset=none] \bTR \bTD \goto{\overlayfigure{cow}}[VideLayer{1}] \eTD \bTD \goto{\overlayfigure{mill}}[VideLayer{2}] \eTD \eTR \bTR \bTD \goto{\overlayfigure{hacker}}[VideLayer{3}] \eTD \bTD \goto{\overlayfigure{cow}}[VideLayer{4}] \eTD \eTR \eTABLE \stopTEXpage 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 ___
Re: [NTG-context] Animations (again, but different)
Thank's for your example! But I'm sorry to say, I didn't get it. When I run context on it, it results in a 2x2 matrix of pictures. Two of them show some reaction (change the color somewhat) when I click on them. (the cows don't). That's all. Maybe it has to with the following lines in the log file: ... interaction : active references : unknown reference [][VideLayer{1}] references : unknown reference [][VideLayer{2}] references : unknown reference [][VideLayer{3}] references : unknown reference [][VideLayer{4}] ... I tried the following example from the Wiki: === \defineproperty[my-hasitations][layer][state=stop] \startproperty[my-hasitations] To \ConTeXt\ or not to \ConTeXt? \stopproperty \button{Show Decision}[VideLayer{my-hasitations}] \button{Hide Decision}[HideLayer{my-hasitations}] \button{Toggle Decision}[ToggleLayer{my-hasitations}] This produces the analogous messages for these three buttons. My Context Version - MTXrun | current version: 2010.11.03 19:42 My LuaTeX Version - This is LuaTeX, Version beta-0.63.0-2010090921 on Debian AMD64. I looked at the files with Acrobat Reader 9 on Windows XP (BTW. I also tried this completely using a MiKTeX 9 Installation on WinXP without success) Am I missing something? kind regards Erik 2010/11/4 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 03.11.2010 um 17:38 schrieb Erik Margraf: Dear Contexters! In the last few days I could read a few posts about animations in a resulting PDF document. Some statements mentioned java script as possible means to create an animation. Is it possible to do the following (which is rather simple using html and javascript)? -- Have a bunch of thumbnail pictures -- When you click on a thumbnail you see a larger version of the same picture -- With the next mouseclick the picture vanishes (you see the gallery of thumbnails again) if yes, how? Any hints are welcome. Not perfect (it’s not possible to close the big pictures) but it should give you a first impression: \setupinteraction[state=start] \defineproperty [1] [layer] [state=stop,global=yes] \defineproperty [2] [layer] [state=stop,global=yes] \defineproperty [3] [layer] [state=stop,global=yes] \defineproperty [4] [layer] [state=stop,global=yes] \starttexdefinition properties \startoverlay {\startproperty[1]\overlayfigure{cow}\stopproperty} {\startproperty[2]\overlayfigure{mill}\stopproperty} {\startproperty[3]\overlayfigure{hacker}\stopproperty} {\startproperty[4]\overlayfigure{cow}\stopproperty} \stopoverlay \stoptexdefinition \defineoverlay[properties][\properties] \startTEXpage[background={foreground,properties}] \bTABLE[width=4cm,height=4cm,offset=none] \bTR \bTD \goto{\overlayfigure{cow}}[VideLayer{1}] \eTD \bTD \goto{\overlayfigure{mill}}[VideLayer{2}] \eTD \eTR \bTR \bTD \goto{\overlayfigure{hacker}}[VideLayer{3}] \eTD \bTD \goto{\overlayfigure{cow}}[VideLayer{4}] \eTD \eTR \eTABLE \stopTEXpage 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 ___
Re: [NTG-context] Animations (again, but different)
Am 03.11.2010 um 17:38 schrieb Erik Margraf: Dear Contexters! In the last few days I could read a few posts about animations in a resulting PDF document. Some statements mentioned java script as possible means to create an animation. Is it possible to do the following (which is rather simple using html and javascript)? -- Have a bunch of thumbnail pictures -- When you click on a thumbnail you see a larger version of the same picture -- With the next mouseclick the picture vanishes (you see the gallery of thumbnails again) if yes, how? Any hints are welcome. Not perfect (it’s not possible to close the big pictures) but it should give you a first impression: \setupinteraction[state=start] \defineproperty [1] [layer] [state=stop,global=yes] \defineproperty [2] [layer] [state=stop,global=yes] \defineproperty [3] [layer] [state=stop,global=yes] \defineproperty [4] [layer] [state=stop,global=yes] \starttexdefinition properties \startoverlay {\startproperty[1]\overlayfigure{cow}\stopproperty} {\startproperty[2]\overlayfigure{mill}\stopproperty} {\startproperty[3]\overlayfigure{hacker}\stopproperty} {\startproperty[4]\overlayfigure{cow}\stopproperty} \stopoverlay \stoptexdefinition \defineoverlay[properties][\properties] \startTEXpage[background={foreground,properties}] \bTABLE[width=4cm,height=4cm,offset=none] \bTR \bTD \goto{\overlayfigure{cow}}[VideLayer{1}] \eTD \bTD \goto{\overlayfigure{mill}}[VideLayer{2}] \eTD \eTR \bTR \bTD \goto{\overlayfigure{hacker}}[VideLayer{3}] \eTD \bTD \goto{\overlayfigure{cow}}[VideLayer{4}] \eTD \eTR \eTABLE \stopTEXpage 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 ___
[NTG-context] Animations (again, but different)
Dear Contexters! In the last few days I could read a few posts about animations in a resulting PDF document. Some statements mentioned java script as possible means to create an animation. Is it possible to do the following (which is rather simple using html and javascript)? -- Have a bunch of thumbnail pictures -- When you click on a thumbnail you see a larger version of the same picture -- With the next mouseclick the picture vanishes (you see the gallery of thumbnails again) if yes, how? Any hints are welcome. kind regards Erik ___ 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 ___
[NTG-context] Animations
Hi Hans, this is a feature request regarding fieldstack based animations. Since i want to use fieldstacks in one of my modules i’m looking for a simple to use interface to produce animations, for the moment i create a symbol for each frame and put them together with a fieldstack. For latex there is a package called animate [1] which provides a environment to produce animations with buttons for navigation (just a take a look at the examples in the manual, code is not relevant for us). I wrote now a short dummy module [1] to demonstrate how this could look in context, the first file [1] contains a few example, the environment is inspired by \startoverlay/\stopoverlay but it needs a alternative method to allow loops (look at the third example in this file). The second test file shows which navigation buttons i want for such a module, the are “first frame”, “previous frame”, “play” and “stop” animation, “next frame” and “last frame”. As a alternative one can produce a animation with a overlay button only with a symbol on the first frame to indicate a interactive element. [1] http://ctan.org/tex-archive/macros/latex/contrib/animate/animate.pdf [2] http://bitbucket.org/wolfs/animation/src/tip/files/ [3] http://bitbucket.org/wolfs/animation/src/tip/files/animation-1.tex [4] http://bitbucket.org/wolfs/animation/src/tip/files/animation-2.tex 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 ___
Re: [NTG-context] Animations
On 2-11-2010 9:39, Wolfgang Schuster wrote: Hi Hans, this is a feature request regarding fieldstack based animations. I'll send you something to test. - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | 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 ___
[NTG-context] Animations (with javascript)
Hi all, Considering pdfclock.pdf and euro-anim.pdf, I would try to make a similar animation, i.e. with a kind of time step but I can't find the source (euro-anim isn't auto-incremented since it recquire clicks). Is there someone who know how to do this ? Cheers, Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Animations in ConTeXt
Hello list, i have recently found the webpage http://www.tug.org/texshowcase/ with a lot of astonishing TeX typesettings. Most of all, because i was looking for this, i was impressed by the animation possibilities of pdftex. See 'LorenzAttractor.tex' in the 'Dynamic documents' section. It is a LaTeX implementation using a lot of JavaScript. Is something like this possible in ConTeXt? I'm aware of fieldstacks and step by step presentations. But i would like to generate 'pdf-movies', especially for mathematical animations using MetaPost as an graphical engine. There exists also a 'solution' for plain TeX: http://www.fi.muni.cz/~xholecek/animations/ But i had no success in generating the pdf-files from the sources. No animation was shown. So again. Is it possible to write something like the above animation packages in ConTeXt (as a module)? Thanks in advance richard rascher-friesenhausen -- == Richard Rascher-Friesenhausen MeVis -- Centrum fuer Medizinische Diagnosesysteme und Visualisierung GmbH Universitaetsallee 29 D-28359 Bremen email: [EMAIL PROTECTED] www : http://www.mevis.de/ fon : +49 - 421 - 218 7707 (mevis) fax : +49 - 421 - 218 4236 (mevis) == ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context