Hi, how can I can change the stepper for PDF-Layers, the code from the presentation module 60 use InvokeStepper and makes with every step only the next layer visible but I want to hide also a few layers in certain steps. In my example in the steps one to seven the layer for each step should be shown but in the eight step layer eight should be visible and layer seven should be deactivated at the same time. You could also see what I want also in the PDF file but it use fieldstacks and is very slow for more than 100 fields for each graphic. \usemodule[pre-60] \setupinteraction[state=start,click=on] \def\addstone#1#2#3% {\StartLocalStep \position(#1,#2){#3}% \StopLocalStep \ignorespaces} \starttext \framed [width=3cm, height=3cm, background=invoke, offset=overlay] {\setuppositioning[unit=mm,factor=5,xoffset=-2.5cm,yoffset=-2.5cm] \startpositioning \addstone12X% show layer 1 \addstone42O% show layer 2 \addstone23X% show layer 3 \addstone33O% show layer 4 \addstone21X% show layer 5 \addstone31O% show layer 6 \addstone32X% show layer 7 \addstone22O% show layer 8, hide layer 7 \addstone00X% show layer 9 \stoppositioning} \stoptext Wolfgang
Hi,
nobody (Hans, Taco!) with a solution for my question, don't force me
to finish my
module in LaTeX (just kidding).
Regards
Wolfgang
On Fri, Jun 13, 2008 at 8:45 AM, Wolfgang Schuster
Hi,
how can I can change the stepper for PDF-Layers, the code from the presentation module 60 use InvokeStepper and makes with every step only the next layer visible but I want to hide also a few layers in certain steps.
In my example in the steps one to seven the layer for each step should be shown but in the eight step layer eight should be visible and layer seven should be deactivated at the same time.
You could also see what I want also in the PDF file but it use fieldstacks and is very slow for more than 100 fields for each graphic.
\usemodule[pre-60]
\setupinteraction[state=start,click=on]
\def\addstone#1#2#3% {\StartLocalStep \position(#1,#2){#3}% \StopLocalStep \ignorespaces}
\starttext
\framed [width=3cm, height=3cm, background=invoke, offset=overlay] {\setuppositioning[unit=mm,factor=5,xoffset=-2.5cm,yoffset=-2.5cm] \startpositioning \addstone12X% show layer 1 \addstone42O% show layer 2 \addstone23X% show layer 3 \addstone33O% show layer 4 \addstone21X% show layer 5 \addstone31O% show layer 6 \addstone32X% show layer 7 \addstone22O% show layer 8, hide layer 7 \addstone00X% show layer 9 \stoppositioning}
\stoptext
Wolfgang
Wolfgang Schuster wrote:
Hi,
nobody (Hans, Taco!) with a solution for my question, don't force me to finish my module in LaTeX (just kidding).
you need to write additional javascript code then, or alternatively use a whole bunch of layers (just define 50) and use the normal referenceing mechanism to turn them on and off (you can change actions, so then a click can turn on/off severel of them) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Wolfgang Schuster