Difference between revisions of "Command/useexternaldocument"
< Command
Jump to navigation
Jump to search
(Create reference page) |
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}") |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
{{Reference | {{Reference | ||
|name=useexternaldocument | |name=useexternaldocument | ||
Line 32: | Line 30: | ||
== Example == | == Example == | ||
<!-- Please fill in an example if you can --> | <!-- Please fill in an example if you can --> | ||
+ | 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 | ||
+ | |||
+ | <texcode> | ||
+ | \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 | ||
+ | |||
+ | </texcode> | ||
+ | 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 == | == See also == | ||
− | <!-- something like | + | <!-- something like {{cmd|goto}} --> |
+ | |||
+ | == Help from ConTeXt-Mailinglist/Forum == | ||
+ | All issues with: | ||
+ | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category: | + | [[Category:Commands|useexternaldocument]] |
Revision as of 06:05, 23 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-Mailinglist/Forum
All issues with: