From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: erik.margraf@gmail.com,
mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Animations (again, but different)
Date: Thu, 4 Nov 2010 22:49:38 +0100 [thread overview]
Message-ID: <D535D81F-7418-4FCC-A4A7-114E1A59B488@gmail.com> (raw)
In-Reply-To: <AANLkTimEd_xCtCNSeVoQOr+mZNobTT8vw95UmuVHT8Qm@mail.gmail.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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-11-04 21:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-03 16:38 Erik Margraf
2010-11-04 21:49 ` Wolfgang Schuster [this message]
2010-11-11 20:47 ` Erik Margraf
2010-11-14 16:34 ` Erik Margraf
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=D535D81F-7418-4FCC-A4A7-114E1A59B488@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=erik.margraf@gmail.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).