Difference between revisions of "Command/setupinteraction"

From ConTeXt wiki
(Move contents of PDF startview here)
m (Improve table)
Line 110: Line 110:
 
   </tr>
 
   </tr>
 
</table>
 
</table>
 
  
 
== Description ==  
 
== Description ==  
{|
+
{| class="wikitable"
 
|<code>click</code>
 
|<code>click</code>
 
|Hyperlink highlighting when clicked (<tt>/H</tt> <tt>/N</tt>),
 
|Hyperlink highlighting when clicked (<tt>/H</tt> <tt>/N</tt>),
|-
+
|- style="vertical-align: top"
 
|<code>subtitle</code>
 
|<code>subtitle</code>
 
|Goes into the <tt>/Subject</tt> field of the pdf file's document information dictionary.
 
|Goes into the <tt>/Subject</tt> field of the pdf file's document information dictionary.
|-
+
|- style="vertical-align: top"
 
|<code>color</code>
 
|<code>color</code>
 
|This colour is used if the destination of the reference is on a different page from the reference itself.
 
|This colour is used if the destination of the reference is on a different page from the reference itself.
|-
+
|- style="vertical-align: top"
 
|<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.
|-
+
|- style="vertical-align: top"
 
|<code>openaction</code>
 
|<code>openaction</code>
|* <code>FitWidth</code> Make the PDF open in 'Fit width' mode
+
|
 +
* <code>FitWidth</code> Make the PDF open in 'Fit width' mode
 
* <code>FitHeight</code> Make the PDF open in 'Fit height' mode
 
* <code>FitHeight</code> Make the PDF open in 'Fit height' mode
 
* <code>ToggleViewer</code> Make the PDF open in fullscreen mode.
 
* <code>ToggleViewer</code> Make the PDF open in fullscreen mode.
|-
+
|- style="vertical-align: top"
 
|<code>focus</code>
 
|<code>focus</code>
|* <code>width</code> Make PDF links open in 'Fit width' mode
+
|
 +
* <code>width</code> Make PDF links open in 'Fit width' mode
 
* <code>height</code> Make PDF links open in 'Fit height' mode
 
* <code>height</code> Make PDF links open in 'Fit height' mode
 
* <code>standard</code> Make PDF links open in current zoom setting
 
* <code>standard</code> Make PDF links open in current zoom setting
Line 149: Line 150:
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==
All issues with:
+
All issues with: {{Forum|{{SUBPAGENAME}}}}
{{Forum|{{SUBPAGENAME}}}}
 
  
 
[[Category:Command/Interaction|setupinteraction]]
 
[[Category:Command/Interaction|setupinteraction]]

Revision as of 08:42, 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: