From: "Giuseppe Bilotta (Oblomov)" <oblomov@freemail.it>
Subject: Re: PDF "dirty" trick
Date: Thu, 14 Sep 2000 21:50:25 +0200 [thread overview]
Message-ID: <000301c01e8b$411ed140$78460e97@nuovo> (raw)
In-Reply-To: <3.0.6.32.20000914114723.0165d7f0@pop.wxs.nl>
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
>
next prev parent reply other threads:[~2000-09-14 19:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-13 20:36 Giuseppe Bilotta (Oblomov)
2000-09-14 9:47 ` Hans Hagen
2000-09-14 19:50 ` Giuseppe Bilotta (Oblomov) [this message]
2000-09-15 7:51 ` Hans Hagen
2000-09-15 17:58 ` Giuseppe Bilotta (Oblomov)
2000-09-17 15:54 ` Giuseppe Bilotta
2000-09-17 21:53 ` Hans Hagen
2000-09-18 14:31 ` Giuseppe Bilotta
2000-09-19 7:31 ` 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='000301c01e8b$411ed140$78460e97@nuovo' \
--to=oblomov@freemail.it \
/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).