From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63433 Path: news.gmane.org!not-for-mail From: Erik Margraf Newsgroups: gmane.comp.tex.context Subject: Re: Animations (again, but different) Date: Thu, 11 Nov 2010 21:47:52 +0100 Message-ID: References: Reply-To: erik.margraf@gmail.com, mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0184406463==" X-Trace: dough.gmane.org 1289508490 22210 80.91.229.12 (11 Nov 2010 20:48:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 11 Nov 2010 20:48:10 +0000 (UTC) Cc: mailing list for ConTeXt users To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 11 21:48:06 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PGe3x-0003WS-6y for gctc-ntg-context-518@m.gmane.org; Thu, 11 Nov 2010 21:48:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2A733CA891; Thu, 11 Nov 2010 21:48:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uMmELXLXQ6la; Thu, 11 Nov 2010 21:47:59 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A874CA885; Thu, 11 Nov 2010 21:47:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2814ACA885 for ; Thu, 11 Nov 2010 21:47:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sVM70ZM83COH for ; Thu, 11 Nov 2010 21:47:55 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 3470ECA883 for ; Thu, 11 Nov 2010 21:47:55 +0100 (CET) Original-Received: from mail-qw0-f41.google.com (mail-qw0-f41.google.com [209.85.216.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oABKlrVg006827 for ; Thu, 11 Nov 2010 21:47:54 +0100 Original-Received: by qwi2 with SMTP id 2so2363732qwi.14 for ; Thu, 11 Nov 2010 12:47:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to :in-reply-to:references:date:message-id:subject:from:to:cc :content-type; bh=Ym+bC4qdIQO1OMrWxvuUmXig9ORaZNApUGnMT0zsjgM=; b=ROg6rBp3XlIVctQUGXo3OvPtrlc+cGm6GagStufC8/lvAj6gYuS5JToy8wK94X8ak5 sXoXt8OQ6iximhtRmDXQ2/fBGmRPH+MgBn4tHfL3CmyowtP/AriTd+cB9Lj8W8N2vkBv vPoeohjYKz1V1dLsmEqjRObEOl7M3CE+5Dpk8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=vYIDJrI4J0n1lSdAmeBcqTTIHpd6TRD8bzLrRx0OxT9o7GoqK2izD5VufeIi+KMuMJ 3jWKqj9NJlnoJJfieFZm9cy0CIHsBs+FBGqh9yqRddmS0cCn1l0DpPQVDjyr6NUCP6d1 Vn2XXvVD6YrhwdRTFXlnlkG9FbD6MKjw9y9rw= Original-Received: by 10.229.89.208 with SMTP id f16mr1123017qcm.168.1289508473079; Thu, 11 Nov 2010 12:47:53 -0800 (PST) Original-Received: by 10.229.241.197 with HTTP; Thu, 11 Nov 2010 12:47:52 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05DtULR5N - a2ca4eac8164 - 20101111 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:63433 Archived-At: --===============0184406463== Content-Type: multipart/alternative; boundary=0016364eed32790b480494cd1649 --0016364eed32790b480494cd1649 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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: =3D=3D=3D=3D=3D=3D=3D \defineproperty[my-hasitations][layer][state=3Dstop] \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}] =3D=3D=3D=3D=3D=3D=3D=3D 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 > > 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=92s not possible to close the big pictures) but it should > give you a first impression: > > \setupinteraction[state=3Dstart] > > \defineproperty [1] [layer] [state=3Dstop,global=3Dyes] > \defineproperty [2] [layer] [state=3Dstop,global=3Dyes] > \defineproperty [3] [layer] [state=3Dstop,global=3Dyes] > \defineproperty [4] [layer] [state=3Dstop,global=3Dyes] > > \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=3D{foreground,properties}] > > \bTABLE[width=3D4cm,height=3D4cm,offset=3Dnone] > \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 > > --0016364eed32790b480494cd1649 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Thank's for your example! But I'm sorry to say, I didn't get it= .=A0
When I run context on it, it results in a 2x2 matrix of pictures.<= /div>
Two of them show some reaction (change the color somewhat)=A0
when I click on them.=A0(the cows don't). That's all.

Maybe it has to with the following lines in the log file:<= /div>
...
interaction =A0 =A0 : active
referen= ces =A0 =A0 =A0: unknown reference [][VideLayer{1}]
references =A0 =A0 =A0: unknown reference [][VideLayer{2}]
r= eferences =A0 =A0 =A0: unknown reference [][VideLayer{3}]
referen= ces =A0 =A0 =A0: unknown reference [][VideLayer{4}]
...
I tried the following example from the Wiki:
=3D=3D=3D=3D=3D=3D=3D
\defineproperty[my-hasitations][l= ayer][state=3Dstop]

\startproperty[my-hasitations]=
To \ConTeXt\ or not to \ConTeXt?
\stopproperty

\button{Show =A0 Decision}[VideLayer{my-hasitations}]
=
\button{Hide =A0 Decision}[HideLayer{my-hasitations}]
\butto= n{Toggle Decision}[ToggleLayer{my-hasitations}]
=3D=3D=3D= =3D=3D=3D=3D=3D
This produces the analogous messages for these three buttons.=A0
=

My Context Version =A0- "MTXrun | current version:= 2010.11.03 19:42"
My LuaTeX Version - This is LuaTeX, Versi= on beta-0.63.0-2010090921

on Debian AMD64. =A0I 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=A0
success)
Am I missing something?

kind regards
Erik



2010/11/4 Wolfgang Schuster <schuster.wolfgang@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)?
>
> =A0 -- Have a bunch of thumbnail pictures
> =A0 -- When you click on a thumbnail you see a
> =A0 =A0 =A0larger version of the same picture
> =A0 -- With the next mouseclick the picture
> =A0 =A0 =A0vanishes (you see the gallery of thumbnails again)
>
> if yes, how?
> Any hints are welcome.

Not perfect (it=92s not possible to close the big pictures) but= it should give you a first impression:

\setupinteraction[state=3Dstart]

\defineproperty [1] [layer] [state=3Dstop,global=3Dyes]
\defineproperty [2] [layer] [state=3Dstop,global=3Dyes]
\defineproperty [3] [layer] [state=3Dstop,global=3Dyes]
\defineproperty [4] [layer] [state=3Dstop,global=3Dyes]

\starttexdefinition properties
=A0\startoverlay
=A0 =A0{\startproperty[1]\overlayfigure{cow}\stopproperty}
=A0 =A0{\startproperty[2]\overlayfigure{mill}\stopproperty}
=A0 =A0{\startproperty[3]\overlayfigure{hacker}\stopproperty}
=A0 =A0{\startproperty[4]\overlayfigure{cow}\stopproperty}
=A0\stopoverlay
\stoptexdefinition

\defineoverlay[properties][\properties]

\startTEXpage[background=3D{foreground,properties}]

\bTABLE[width=3D4cm,height=3D4cm,offset=3Dnone]
=A0\bTR
=A0 =A0\bTD \goto{\overlayfigure{cow}}[VideLayer{1}] \eTD
=A0 =A0\bTD \goto{\overlayfigure{mill}}[VideLayer{2}] \eTD
=A0\eTR
=A0\bTR
=A0 =A0\bTD \goto{\overlayfigure{hacker}}[VideLayer{3}] \eTD
=A0 =A0\bTD \goto{\overlayfigure{cow}}[VideLayer{4}] \eTD
=A0\eTR
\eTABLE

\stopTEXpage

Wolfgang


--0016364eed32790b480494cd1649-- --===============0184406463== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0184406463==--