Command/setupinteraction

Unofficial ConTeXt Wiki mirror

Last modified: 2025-01-09

Summary

The command \setupinteraction is used for ...

Settings

\setupinteraction[...,...][...=...,...]
[...,...] name
state start stop
style style command
color color
contrastcolor color
title text
subtitle color
author text
date text
keyword text
focus standard frame width minwidth height minheight fit tight
menu on off
fieldlayer auto name
calculate reference
click yes no
display normal new
page yes no page name auto
openaction reference
closeaction reference
openpageaction reference
closepageaction reference
symbolset name
height dimension
depth dimension
focusoffset dimension

Option Explanation
state
Enable/disable interaction, i.e. clickable links
style
style of links; use style=, to disable styling of links
color
This color is used if the destination of the reference is on a different page from the reference itself.
contrastcolor
This color is used if the destination of the reference is on the same page as the reference itself.
title
PDF metadata “title”
subtitle
PDF metadata “subject”, i.e. goes into the /Subject field of the document information dictionary.
author
PDF metadata “author”
date
PDF metadata “creation date”
keyword
PDF metadata "keywords"
focus
link target behaviour
standard Make PDF links open in current zoom setting. (When the PDF viewer is in 'scroll' mode, this setting jumps directly to the target rather than to the page it is on. Omitting focus=standard causes the viewer to jump to the page, regardless of whether in scroll mode or not.)
width Make PDF links open in 'Fit width' mode
height Make PDF links open in 'Fit height' mode
fit Make PDF links open in 'Fit page' mode
click
Hyperlink highlighting when clicked (/H /N)
openaction
- FitWidth Make the PDF open in 'Fit width' mode.

- FitHeight Make the PDF open in 'Fit height' mode. - ToggleViewer Make the PDF open in fullscreen mode.

Settings name

\setupinteraction[...]
[...] name

Description

Examples

Example 1

\setupinteraction
   [state=start,
    color=green,
    style=bold]

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: