Difference between revisions of "Interaction"

From Wiki
Jump to navigation Jump to search
m (minor adjustments, nothing new)
Line 1: Line 1:
  
* use {{cmd|setupinteraction}}
+
 
 
* [[Presentation effects]] and [[Presentations]]
 
* [[Presentation effects]] and [[Presentations]]
 
* see in [[Using Graphics| using graphics]] how to use movies.
 
* see in [[Using Graphics| using graphics]] how to use movies.
 
* [[Widgets]] (interactive elements, form fields etc.) and [[Interaction and button]]
 
* [[Widgets]] (interactive elements, form fields etc.) and [[Interaction and button]]
* [[PDF Bookmarks and Headers]]
 
  
  
Line 15: Line 14:
 
This makes all links generated with the {{cmd|goto}} command (and indirectly the {{cmd|in}} and {{cmd|at}} commands) clickable.
 
This makes all links generated with the {{cmd|goto}} command (and indirectly the {{cmd|in}} and {{cmd|at}} commands) clickable.
  
== Hints ==
+
= Link coloring =
=== Link coloring ===
 
 
By default, the link text gets a green or red [[Color|color]], depending on whether 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:
 
By default, the link text gets a green or red [[Color|color]], depending on whether 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:
  
Line 23: Line 21:
 
</texcode>
 
</texcode>
  
=== Clickable table of contents ===
+
= Clickable table of contents =
 
To make table of contents items clickable, use the {{cmd|setupcombinedlist}} command.
 
To make table of contents items clickable, use the {{cmd|setupcombinedlist}} command.
  
Line 40: Line 38:
 
Alternatively, you can use the <tt>textcolor</tt> property to change just the text colour, and leave the section and page numbers colored.
 
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 ===
+
= Default focus mode =
 
By default, clicking an inter-document hyperlink will switch to "fit page" mode, to override this:
 
By default, clicking an inter-document hyperlink will switch to "fit page" mode, to override this:
  
Line 46: Line 44:
 
\setupinteraction[state=start,focus=standard]
 
\setupinteraction[state=start,focus=standard]
 
</texcode>
 
</texcode>
 +
 +
= PDF Bookmarks and Headers =
 +
 +
Refer to the dedicated [[PDF Bookmarks and Headers]] page.
 +
 +
  
 
[[Category:Presentation]]
 
[[Category:Presentation]]
 
[[Category:Command/Interaction|Interaction]]
 
[[Category:Command/Interaction|Interaction]]

Revision as of 09:24, 7 June 2020



The \setupinteraction command configures all interaction in the resulting PDF document. Basic interaction (meaning clickable links for references) is enabled using

\setupinteraction[state=start]

This makes all links generated with the \goto command (and indirectly the \in and \at commands) clickable.

Link coloring

By default, the link text gets a green or red color, depending on whether the link is to another page or to the same page. You can change the link colors with the color (links to other pages) and contrastcolor (links to the same page) properties. For example, to disable link coloring alltogether:

\setupinteraction[state=start,color=,contrastcolor=]

Clickable table of contents

To make table of contents items clickable, use the \setupcombinedlist command.

\setupcombinedlist[content][interaction=all]

This makes the entire table of contents line clickable. It is possible to select just one part (sectionnumber, pagenumber, text).

If links have a color, this will also make the table of contents get a different text color. You can use the color property to change it back, e.g.:

\setupcombinedlist[content][interaction=all,color=black]

Alternatively, you can use the textcolor property to change just the text colour, and leave the section and page numbers colored.

Default focus mode

By default, clicking an inter-document hyperlink will switch to "fit page" mode, to override this:

\setupinteraction[state=start,focus=standard]

PDF Bookmarks and Headers

Refer to the dedicated PDF Bookmarks and Headers page.