[NTG-context] linking to an external PDF file

Hans Hagen j.hagen at xs4all.nl
Sun Oct 7 20:05:25 CEST 2018


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
-----------------------------------------------------------------


More information about the ntg-context mailing list