Difference between revisions of "Command/useexternaldocument"

From Wiki
Jump to navigation Jump to search
m (Text replace - "[[Category:Commands|" to "== ConTeXt-Forum == {{Forum|{{SUBPAGENAME}}}} [[Category:Commands|")
m (Text replace - "ConTeXt-Forum " to "Help from ConTeXt-Forum ")
Line 49: Line 49:
 
<!-- something like [[cmd:goto|\goto]] -->
 
<!-- something like [[cmd:goto|\goto]] -->
  
== ConTeXt-Forum ==
+
== Help from ConTeXt-Forum ==
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
 
[[Category:Commands|useexternaldocument]]
 
[[Category:Commands|useexternaldocument]]

Revision as of 02:30, 15 March 2012

\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. It is also possible to give the path of the file to be opened.

See also

Help from ConTeXt-Forum