Open main menu
Wiki
Search
Changes
← Older edit
Newer edit →
Presentations
(view source)
Revision as of 15:06, 5 August 2006
1,116 bytes added
,
15:06, 5 August 2006
→Hyperlinks, buttons & navigation
{{todo|write something about them}}
Here is a small example showing how to include hyperlinks:
<texcode>
\setupcolors[state=start]
\setupinteraction[state=start,color=middlered]
\useURL [garden][http://contextgarden.net]
\starttext
The \from[garden] site is useful.
\stoptext
</texcode>
It looks like this (in a PDF viewer the red link is clickable and should call up a browser on the link when you click it):
<context>
\setupcolors[state=start]
\setupinteraction[state=start,color=middlered]
\useURL [garden][http://contextgarden.net]
\starttext
The \from[garden] site is useful.
\stoptext
</context>
If you want an alternative text to show up in the clickable area, use the fourth argument to \useURL, like this:
<texcode>
\setupcolors[state=start]
\setupinteraction[state=start,color=middlered]
\useURL [garden][http://contextgarden.net][][Context garden]
\starttext
The \from[garden] is useful.
\stoptext
</texcode>
It looks like this:
<context>
\setupcolors[state=start]
\setupinteraction[state=start,color=middlered]
\useURL [garden][http://contextgarden.net][][Context garden]
\starttext
The \from[garden] is useful.
\stoptext
</context>
=== Including Graphics ===
Sanjoy
127
edits