Difference between revisions of "Command/setupinteraction"

From Wiki
Jump to navigation Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
(Move contents of PDF startview here)
Line 125: Line 125:
 
|<code>contrastcolor</code>
 
|<code>contrastcolor</code>
 
|This colour is used if the destination of the reference is on the same page as the reference itself.
 
|This colour is used if the destination of the reference is on the same page as the reference itself.
 +
|-
 +
|<code>openaction</code>
 +
|* <code>FitWidth</code> Make the PDF open in 'Fit width' mode
 +
* <code>FitHeight</code> Make the PDF open in 'Fit height' mode
 +
* <code>ToggleViewer</code> Make the PDF open in fullscreen mode.
 +
|-
 +
|<code>focus</code>
 +
|* <code>width</code> Make PDF links open in 'Fit width' mode
 +
* <code>height</code> Make PDF links open in 'Fit height' mode
 +
* <code>standard</code> Make PDF links open in current zoom setting
 
|}
 
|}
  
Line 130: Line 140:
 
<texcode>
 
<texcode>
 
\setupinteraction
 
\setupinteraction
[state=start,
+
  [state=start,
color=green,
+
    color=green,
style=bold]
+
    style=bold]
 
</texcode>
 
</texcode>
  
 
== See also ==
 
== See also ==
<!-- something like {{cmd|goto}} -->
+
* [[Interaction]]
[[Interaction]]
 
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Revision as of 08:39, 7 June 2012

\setupinteraction

Syntax

\setupinteraction[...,...=...,...]
state start stop
menu on off
page yes no
click yes no
split yes no
display new
openaction reference
closeaction reference
openpageaction reference
closepageaction reference
calculate name
strut yes no
width dimension
height dimension
depth dimension
style normal bold slanted boldslanted type cap small...command
color name
contrastcolor name
symbolset name
title text
subtitle text
author text
date text
keyword text
fieldlayer auto name


Description

click Hyperlink highlighting when clicked (/H /N),
subtitle Goes into the /Subject field of the pdf file's document information dictionary.
color This colour is used if the destination of the reference is on a different page from the reference itself.
contrastcolor This colour is used if the destination of the reference is on the same page as the reference itself.
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.
focus * width Make PDF links open in 'Fit width' mode
  • height Make PDF links open in 'Fit height' mode
  • standard Make PDF links open in current zoom setting

Example

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

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: