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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to