[pdftex] PDF-Links from MetaPost
Hans Hagen
pragma at wxs.nl
Mon Mar 11 00:46:20 CET 2002
At 05:42 PM 3/10/2002 +0100, Hartmut Henkel wrote:
>Dear PDF-fans,
>
>which ways are there for /Link annotations in MetaPost source, for
>pdf-output through TeX and companions?
>
>E. g. the way latex --> dvips --> epstopdf seems to work. I tried
>annotating MetaPost sources through special"[ pdfmark", then use
>\includegraphics{} in LaTeX to include the .eps picture from MetaPost
>and then do dvips and epstopdf.
>
>But I had no success through latex --> dvipdfm: After converting some
>x.mp with pdfmark link info into to x.1, and this into x.pdf by epstopdf
>for inclusion into latex, the x.pdf does not contain a meaningful link,
>e. g. one gets something like /Dest[4 0 R /XYZ null null null], but
>there is no object `4 0' in x.pdf. And no link appears after inclusion
>of this x.pdf through dvipdfm.
>
>Is there any trick to get MetaPost links through with dvipdfm?
>And how about the same using pdftex?
In ConTeXt one can say:
\setupinteraction[state=start]
\setupcolors [state=start]
\starttext
Hello There! \blank
\startMPcode
pickup pencircle scaled 5 ;
draw fullcircle scaled 4cm withcolor red ;
hyperpath "nextpage" boundingbox currentpicture ;
draw origin withcolor blue ;
\stopMPcode
\page This is an already pretty old feature and i must admit that i never
use it.
\stoptext
The problem with this kind of functionality is that it is rather closely
related to the way macro packages handle such things,
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma at wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
fall-back web server:
www.pragma-ade.nl
-------------------------------------------------------------------------
More information about the pdftex
mailing list