ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Customizing layer stepping
@ 2008-06-13  6:45 Wolfgang Schuster
  2008-06-18  7:55 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2008-06-13  6:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1217 bytes --]

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

[-- Attachment #2: go-view-test-6.pdf --]
[-- Type: application/pdf, Size: 26761 bytes --]

[-- Attachment #3: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Customizing layer stepping
  2008-06-13  6:45 Customizing layer stepping Wolfgang Schuster
@ 2008-06-18  7:55 ` Wolfgang Schuster
  2008-06-18 11:09   ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2008-06-18  7:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
<schuster.wolfgang@googlemail.com> wrote:
> 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
>
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Customizing layer stepping
  2008-06-18  7:55 ` Wolfgang Schuster
@ 2008-06-18 11:09   ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2008-06-18 11:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2008-06-18 11:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-13  6:45 Customizing layer stepping Wolfgang Schuster
2008-06-18  7:55 ` Wolfgang Schuster
2008-06-18 11:09   ` 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).