* hyperlinks within a PDF
@ 2014-06-16 1:11 Robert Zydenbos
2014-06-16 6:18 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Robert Zydenbos @ 2014-06-16 1:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
Forgive me for what must seem a beginners’ question, but I really could not find the solution in the documentation or the Wiki:
How do I create hyperlinks within a PDF to another spot in the text of that same PDF? I had expected I could do something like:
Here is a \goto{link}[label:1].
…
\label[label:1]{This is what the link points to.}
-- but I cannot find anything that resembles this in the documentation.
Robert
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: hyperlinks within a PDF
2014-06-16 1:11 hyperlinks within a PDF Robert Zydenbos
@ 2014-06-16 6:18 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2014-06-16 6:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 16.06.2014 um 03:11 schrieb Robert Zydenbos <context@zydenbos.net>:
> Forgive me for what must seem a beginners’ question, but I really could not find the solution in the documentation or the Wiki:
>
> How do I create hyperlinks within a PDF to another spot in the text of that same PDF? I had expected I could do something like:
>
> Here is a \goto{link}[label:1].
>
> …
>
> \label[label:1]{This is what the link points to.}
>
> -- but I cannot find anything that resembles this in the documentation.
References for floats and sections can be set with the reference key while additional references
in the text can be set with the \reference, \textreference or \pagereference commands.
\setupexternalfigures[location=default]
\setupinteraction[state=start]
\starttext
\startchapter[referemce=sec:sectionlabel,title=Dummy chapter]
\input knuth
\startplacefigure[reference=fig:figurelabel,title=Dummy figure]
\externalfigure[cow]
\stopplacefigure
\page
This is a page reference\pagereference[ref:pagereference]
\page
This is a text reference \textreference[ref:textreference]{Text reference}
\page
This is a normal reference \reference[ref:reference]{Normal reference}
\page
The is a \goto{link}[sec:sectionlabel] to \in{chapter}[sec:sectionlabel] on \at{page}[sec:sectionlabel].
The is a \goto{link}[fig:figurelabel] to \in{figure}[fig:figurelabel] on \at{page}[fig:figurelabel].
The is a \goto{link}[ref:pagereference] to \in[ref:pagereference] on \at{page}[ref:pagereference].
The is a \goto{link}[ref:textreference] to \in[ref:textreference] on \at{page}[ref:textreference].
The is a \goto{link}[ref:reference] to \in[ref:reference] on \at{page}[ref:reference].
\stopchapter
\stoptext
Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-16 6:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-16 1:11 hyperlinks within a PDF Robert Zydenbos
2014-06-16 6:18 ` Wolfgang Schuster
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).