ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Customizing layer stepping
Date: Fri, 13 Jun 2008 08:45:47 +0200	[thread overview]
Message-ID: <115224fb0806122345m48cda7e9w4ffad284c38d703e@mail.gmail.com> (raw)

[-- 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
___________________________________________________________________________________

             reply	other threads:[~2008-06-13  6:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-13  6:45 Wolfgang Schuster [this message]
2008-06-18  7:55 ` Wolfgang Schuster
2008-06-18 11:09   ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=115224fb0806122345m48cda7e9w4ffad284c38d703e@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).