* Re: Active points on a ground plan (CD-ROM catalogue)
@ 2003-12-18 22:03 Steffen Wolfrum
0 siblings, 0 replies; 3+ messages in thread
From: Steffen Wolfrum @ 2003-12-18 22:03 UTC (permalink / raw)
Very nice, thank you Hans!
Steffen
Hans Hagen <pragma@wxs.nl> wrote:
> At 16:33 11/12/2003, you wrote:
> >Hi,
> >
> >I'd like to make the CD-ROM catalogue (PDF) of an architectural exhibition
> >in ConTeXt.
> >
> >
> >In short the general idea is:
> >
> >- First you have a page with a map showing the locations of the different
> >buildings.
> >- Then you should point on location you are interested in and jump to the
> >page where this particular building is described in detail.
> >- Then again you should be able to jump back to the point (centered?) on
> >the map where you have started.
> >
> >
> >My main question now is:
> >
> >Is it possible in ConTeXt to locate/define on the map (one image) certain
> >points/areas that will contain the links to respective the detail page?
>
> Ha, when i tried to locate that old code, i ran into a bug (\dosingleempty
> is less tolerant than 5 years ago), so first a patch:
>
> \unprotect
>
> \def\dodostartfigure[#1][#2][#3]#4\stopfigure
> {\doifelse\v!test\@@exoptie
> {\teststartfigure[#1][#2][#3]#4\teststopfigure
> \let\@@exhokjes\v!aan}
> {\let\@@exhokjes\v!uit}%
> \setvalue{\??ef\??ef#1}%
> {\def\next{\placestartfigure[#1][#2][#3]#4\placestopfigure}%
> \dosingleempty\next}%
> \doifundefined{#1}{\setvalue{#1}{\getexternalfigure{#1}}}}
>
> \protect
>
>
> Now you can do things like:
>
> \setupinteraction
> [state=start]
>
> % \setupexternalfigures
> % [option=test]
>
> \startfigure[TheProces][work016a][factor=200]
> \referring (10.7,9.4) (4.3,2.3) [r:psfile]
> \referring (16.5,16.5) (4.3,2.3) [r:pdffile]
> \marking (10.7,9.4) (4.3,2.3) [m:psfile]
> \marking (16.5,16.5) (4.3,2.3) [m:pdffile]
> \stopfigure
>
> \starttext
>
> \title{Files}
>
> \placefigure
> {Whatever files we use.}
> {\TheProces}
>
> \title[r:psfile]{PostScrip Files}
>
> We're talking about PostScript files, see \in[m:psfile]!
>
> \title[r:pdffile]{PDF Files}
>
> We're talking about PDF files, see \in[m:pdffile]!
>
> \stoptext
>
> Uncommenting the test will provide you a suitable test bed.
>
> (Sorry for the bit oldfashioned code; it originates from the pre pdf time)
>
> Hans
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Active points on a ground plan (CD-ROM catalogue)
2003-12-11 15:33 Steffen Wolfrum
@ 2003-12-11 16:45 ` Hans Hagen
0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2003-12-11 16:45 UTC (permalink / raw)
At 16:33 11/12/2003, you wrote:
>Hi,
>
>I'd like to make the CD-ROM catalogue (PDF) of an architectural exhibition
>in ConTeXt.
>
>
>In short the general idea is:
>
>- First you have a page with a map showing the locations of the different
>buildings.
>- Then you should point on location you are interested in and jump to the
>page where this particular building is described in detail.
>- Then again you should be able to jump back to the point (centered?) on
>the map where you have started.
>
>
>My main question now is:
>
>Is it possible in ConTeXt to locate/define on the map (one image) certain
>points/areas that will contain the links to respective the detail page?
Ha, when i tried to locate that old code, i ran into a bug (\dosingleempty
is less tolerant than 5 years ago), so first a patch:
\unprotect
\def\dodostartfigure[#1][#2][#3]#4\stopfigure
{\doifelse\v!test\@@exoptie
{\teststartfigure[#1][#2][#3]#4\teststopfigure
\let\@@exhokjes\v!aan}
{\let\@@exhokjes\v!uit}%
\setvalue{\??ef\??ef#1}%
{\def\next{\placestartfigure[#1][#2][#3]#4\placestopfigure}%
\dosingleempty\next}%
\doifundefined{#1}{\setvalue{#1}{\getexternalfigure{#1}}}}
\protect
Now you can do things like:
\setupinteraction
[state=start]
% \setupexternalfigures
% [option=test]
\startfigure[TheProces][work016a][factor=200]
\referring (10.7,9.4) (4.3,2.3) [r:psfile]
\referring (16.5,16.5) (4.3,2.3) [r:pdffile]
\marking (10.7,9.4) (4.3,2.3) [m:psfile]
\marking (16.5,16.5) (4.3,2.3) [m:pdffile]
\stopfigure
\starttext
\title{Files}
\placefigure
{Whatever files we use.}
{\TheProces}
\title[r:psfile]{PostScrip Files}
We're talking about PostScript files, see \in[m:psfile]!
\title[r:pdffile]{PDF Files}
We're talking about PDF files, see \in[m:pdffile]!
\stoptext
Uncommenting the test will provide you a suitable test bed.
(Sorry for the bit oldfashioned code; it originates from the pre pdf time)
Hans
^ permalink raw reply [flat|nested] 3+ messages in thread
* Active points on a ground plan (CD-ROM catalogue)
@ 2003-12-11 15:33 Steffen Wolfrum
2003-12-11 16:45 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Steffen Wolfrum @ 2003-12-11 15:33 UTC (permalink / raw)
Hi,
I'd like to make the CD-ROM catalogue (PDF) of an architectural exhibition in ConTeXt.
In short the general idea is:
- First you have a page with a map showing the locations of the different buildings.
- Then you should point on location you are interested in and jump to the page where this particular building is described in detail.
- Then again you should be able to jump back to the point (centered?) on the map where you have started.
My main question now is:
Is it possible in ConTeXt to locate/define on the map (one image) certain points/areas that will contain the links to respective the detail page?
Thank you,
Steffen
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-12-18 22:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-18 22:03 Active points on a ground plan (CD-ROM catalogue) Steffen Wolfrum
-- strict thread matches above, loose matches on Subject: below --
2003-12-11 15:33 Steffen Wolfrum
2003-12-11 16:45 ` Hans Hagen
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).