Difference between revisions of "Command/useexternaldocument"

From Wiki
Jump to navigation Jump to search
m (Text replace - "ConTeXt-Forum " to "Help from ConTeXt-Forum ")
(autosyntax, category, links)
 
(3 intermediate revisions by one other user not shown)
Line 5: Line 5:
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
+
<syntax>useexternaldocument</syntax>
  <tr>
 
    <td colspan="2" class="cmd">\useexternaldocument<span class="first" >[...]</span><span class="second" >[...]</span><span class="third" >[...]</span></td>
 
  </tr>
 
  <tr valign="top" class="first">
 
    <td class="cmd">[...]</td>
 
    <td>name </td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[...]</td>
 
    <td>file </td>
 
  </tr>
 
  <tr valign="top" class="third">
 
    <td class="cmd">[...]</td>
 
    <td>text </td>
 
  </tr>
 
</table>
 
 
 
  
 
== Description ==  
 
== Description ==  
 
+
Link to a file.
  
  
 
== 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
+
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>
 
<texcode>
Line 47: Line 30:
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
<!-- something like {{cmd|goto}} -->
 +
* {{src|strc-ref.mkvi}}
 +
* {{cmd|goto}}
 +
* {{cmd|useURL}}
  
== Help from ConTeXt-Forum ==
+
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|useexternaldocument]]
+
[[Category:Command/Interaction|useexternaldocument]]

Latest revision as of 19:26, 20 December 2019

\useexternaldocument

Syntax

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


Description

Link to a file.


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: