From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2728 Path: main.gmane.org!not-for-mail From: "Giuseppe Bilotta (Oblomov)" Newsgroups: gmane.comp.tex.context Subject: Re: PDF "dirty" trick Date: Thu, 14 Sep 2000 21:50:25 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <000301c01e8b$411ed140$78460e97@nuovo> References: <3.0.6.32.20000914114723.0165d7f0@pop.wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035393496 11257 80.91.224.250 (23 Oct 2002 17:18:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:18:16 +0000 (UTC) Original-To: "ConTeXt" Xref: main.gmane.org gmane.comp.tex.context:2728 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2728 That's _exactly_ what I wanted (even too much :-)). It also explains why I didn't manage to do it with "normal" pdfTeX commands ---it required JavaScript. Now for a harder one: pop-up window reacting when the mouse passes over a certain point (no need to click)? I've seen in the PDF tech ref it is possible, and know the PDF implementation. What about ConTeXt? Hans Hagen wrote: > At 10:36 PM 9/13/00 +0200, Giuseppe Bilotta (Oblomov) wrote: > >Hello, > > > >what I would like to obtain: > > > >in a PDF "interactive" document, I would like to have a pop-up window > >containing some typeset material (sort of a "minipage" in a pop-up window). > > > >how did i try to do it: > > > >I managed to create pop-up notes, but they can only contain "normal text", > >they are resizable by the user, etc. > > > >I managed to create xforms, but I can only place them in the document, not > >in a pop-up environment. > > > >Is it possible to obtain what I want? If yes, can somebody give me some > >clue? > > This kind of problems is easy to solve on the one hand, since the > functionality is already there, but not always easy to use, since you need > to sync with the otr (output routine). But you're lucky. A quick demo in > tex, mp and widgets: > > % output=pdftex > > \setuppapersize[S6][S6] > \setupbodyfont[pos] > \setuplayout[width=middle,height=middle] > \setuptexttexts[\helpdata] > \setupframedtexts[helptext][background=myframe] > \setupcolors[state=start] > \setupinteraction[state=start] > \setupbuttons[frame=off,background=myframe] > > \defineoverlay[myframe][\uniqueMPgraphic{myframe}] > > \startuniqueMPgraphic{myframe} > path p ; p := unitsquare > xyscaled(\overlaywidth,\overlayheight) superellipsed .90 ; > fill p withcolor .85yellow ; > draw p withpen pencircle scaled 2pt withcolor .85red ; > \stopuniqueMPgraphic > > > \starttext > > \starthelptext[test] > Now, how many hidden features do you think that are present > in \ConTeXt ? Actually this one is not that hidden, since > it's used in the flow chart module. This undocumented > feature is implemented in \type {core-hlp.tex}. > \stophelptext > > \input tufte > > \setpagehelpdata{test} > > \setupfootertexts > [{\button{show help}[JS(Vide_Fields{help:test})]\quad > \button{hide all that help}[JS(Hide_Fields)]}] > > \stoptext >