Difference between revisions of "Command/useexternaldocument"

From Wiki
Jump to navigation Jump to search
Line 32: Line 32:
 
Assuming that the file « intermezzo.pdf » is present in the same directory as the document you are typesetting, the following allows you to open the file upon clicking on the link
 
Assuming that the file « intermezzo.pdf » is present in the same directory as the document you are typesetting, the following allows you to open the file upon clicking on the link
  
<tex>
+
<texcode>
 
\setupinteraction[state=start]
 
\setupinteraction[state=start]
 
\setupcolors[state=start]
 
\setupcolors[state=start]
Line 43: Line 43:
 
\stoptext
 
\stoptext
  
</tex>
+
</texcode>
 
As a matter of fact many other file formats are recognized.
 
As a matter of fact many other file formats are recognized.
  

Revision as of 14:57, 5 February 2011

\useexternaldocument

Syntax

\useexternaldocument[...][...][...]
[...] name
[...] file
[...] text


Description

Example

Assuming that the file « intermezzo.pdf » is present in the same directory as the document you are typesetting, the following allows you to open the file upon clicking on the link

\setupinteraction[state=start]
\setupcolors[state=start]

\useexternaldocument[intermezzo.pdf]

\starttext
As one may see in the example \goto{ open the file intermezzo}[file(intermezzo.pdf)].

\stoptext

As a matter of fact many other file formats are recognized.

See also