Changes

Jump to navigation Jump to search
1,550 bytes added ,  10:23, 12 October 2009
Add some actual content to this page, with an example, some stuff about link colors and table of contents links
* see in [[Using Graphics| using graphics]] how to use movies.
* [[Widgets]] (interactive elements, form fields etc.)
 
The [[cmd:setupinteraction|\setupinteraction]] command configures all interaction in the resulting PDF document. Basic interaction (meaning clickable links for references) is enabled using
 
<texcode>
\setupinteraction[state=start]
</texcode>
 
This makes all links generated with the [[cmd:goto|\goto]] command (and indirectly the [[cmd:in|\in]] and [[cmd:at|\at]] commands) clickable.
== Tips ==
=== Link coloring ===
By default, the link text gets a green or red color, depending on wether the link is to another page or to the same page. You can change the link colors with the <tt>color</tt> (links to other pages) and <tt>contrastcolor</tt> (links to the same page) properties. For example, to disable link coloring alltogether:
 
<texcode>
\setupinteraction[state=start,color=,contrastcolor=]
</texcode>
 
=== Clickable table of contents ===
To make table of contents items clickable, use the [[cmd:setupcombinedlist|\setupcombinedlist]] command.
 
<texcode>
\setupcombinedlist[content][interaction=all]
</texcode>
 
This makes the entire table of contents line clickable. It is possible to select just one part (<tt>sectionnumber</tt>, <tt>pagenumber</tt>, <tt>text</tt>).
 
If links have a color, this will also make the table of contents get a different text color. You can use the <tt>color</tt> property to change it back, <i>e.g.</i>:
 
<texcode>
\setupcombinedlist[content][interaction=all,color=black]
</texcode>
 
Alternatively, you can use the <tt>textcolor</tt> property to change just the text colour, and leave the section and page numbers colored.
=== Default focus mode ===
14

edits

Navigation menu