On 10/7/2018 6:26 PM, Alan Bowen wrote:
A how-to question that has come up:
Is there a way to establish to hyperlink to a specific page or footnote
in an external PDF document?
-- first.tex --
\setupinteraction[state=start]
\starttext
whatever \footnote[whatever:1]{whatever 1}
\goto{note 3}[second::whatever:3]
\goto{note 4}[second::whatever:4]
\in{note (1)}[whatever:1]
\in{note (2)}[whatever:2]
\in{note (3)}[second::whatever:3]
\in{note (4)}[second::whatever:4]
\page
whatever \footnote[whatever:2]{whatever 2}
\goto{note 3}[second::whatever:3]
\goto{note 4}[second::whatever:4]
\in{note (1)}[whatever:1]
\in{note (2)}[whatever:2]
\in{note (3)}[second::whatever:3]
\in{note (4)}[second::whatever:4]
\stoptext
-- second.tex --
\setupinteraction[state=start]
\starttext
whatever \footnote[whatever:3]{whatever 3}
\goto{note 1}[first::whatever:1]
\goto{note 2}[first::whatever:2]
\in{note (1)}[first::whatever:1]
\in{note (2)}[first::whatever:2]
\in{note (3)}[whatever:3]
\in{note (4)}[whatever:4]
\page
whatever \footnote[whatever:4]{whatever 4}
\goto{note 1}[first::whatever:1]
\goto{note 2}[first::whatever:2]
\in{note (1)}[first::whatever:1]
\in{note (2)}[first::whatever:2]
\in{note (3)}[whatever:3]
\in{note (4)}[whatever:4]
\stoptext
--
the \in ref to the other doc will work ok in a next beta (normally one
will use a proper project / component structure for such cases)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________