Difference between revisions of "Command/externalfigure"

From Wiki
Jump to navigation Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
Line 22: Line 22:
 
== Description ==  
 
== Description ==  
  
<tt>\externalfigure</tt> uses the mediabox when including pdf files. You can tell it to use the artbox instead:
+
Include an external figure. If it is a pdf file, by default <tt>\externalfigure</tt> will use the mediabox; you can tell it to use the artbox instead like so:
  
 
<texcode>
 
<texcode>
\externalfigure[whatever.pdf][width=10cm,size=artbox]
+
% Unfortunately, cow.pdf is trimmed so that its mediabox coincides
</texcode>
+
% with its artbox, so it's not suitable for illustrating this key.
 
+
\externalfigure[cow][width=4cm,size=artbox]
 
+
</context>
 
 
  
 
== Example ==
 
== Example ==

Revision as of 18:41, 29 June 2012

\externalfigure

Syntax

\externalfigure[...][...,...=...,...]
[...] file
[...,...=...,...] see \useexternalfigure


Description

Include an external figure. If it is a pdf file, by default \externalfigure will use the mediabox; you can tell it to use the artbox instead like so:

<texcode> % Unfortunately, cow.pdf is trimmed so that its mediabox coincides % with its artbox, so it's not suitable for illustrating this key. \externalfigure[cow][width=4cm,size=artbox] </context>

Example

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: