https://wiki.contextgarden.net/index.php?title=Command/useexternalfigure&feed=atom&action=history
Command/useexternalfigure - Revision history
2024-03-29T08:50:32Z
Revision history for this page on the wiki
MediaWiki 1.34.1
https://wiki.contextgarden.net/index.php?title=Command/useexternalfigure&diff=31846&oldid=prev
Taco: Created page with "Documentation for \useexternalfigure"
2020-09-23T13:17:23Z
<p>Created page with "Documentation for \useexternalfigure"</p>
<p><b>New page</b></p><div><cd:commandgroup name="useexternalfigure" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807"><br />
<cd:shortdesc>The command <tt>\useexternalfigure</tt> creates a preset to use with {{cmd|externalfigure}}<br />
</cd:shortdesc><br />
<cd:variants><br />
<cd:command category="graphics" file="grph-inc.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-graphics.xml" level="style" name="useexternalfigure" variantnumber="1"><br />
<cd:arguments><br />
<cd:keywords ordinal="1"><br />
<cd:keywordsdoc></cd:keywordsdoc><br />
<cd:constant type="cd:name"></cd:constant><br />
</cd:keywords><br />
<cd:keywords ordinal="2"><br />
<cd:keywordsdoc></cd:keywordsdoc><br />
<cd:constant type="cd:file"></cd:constant><br />
</cd:keywords><br />
<cd:keywords optional="yes" ordinal="3"><br />
<cd:keywordsdoc></cd:keywordsdoc><br />
<cd:constant type="cd:name"></cd:constant><br />
</cd:keywords><br />
<cd:assignments list="yes" optional="yes" ordinal="4"><br />
<cd:assignmentsdoc></cd:assignmentsdoc><br />
<cd:inherit name="setupexternalfigure"></cd:inherit><br />
</cd:assignments><br />
</cd:arguments><br />
</cd:command><br />
</cd:variants><br />
<cd:description><!-- the long description of the command goes here --><br />
</cd:description><br />
<cd:examples><cd:example title=""><texcode><br />
\useexternalfigure[kuh][cow.pdf][width=2cm]<br />
<br />
\starttext<br />
\externalfigure[kuh]<br />
\stoptext<br />
</texcode></cd:example><cd:example title="">By design, {{cmd|useexternalfigure}} works only in local scope.<br />
In order to globally declare a figure, one has to wrap it into a<br />
{{cmd|startglobal}} environment, thereby rendering it<br />
accessible outside the current group.<br />
[http://www.ntg.nl/pipermail/ntg-context/2011/056976.html]<br />
<br />
''NB'': The drawback is that other local stuff might be leaked into<br />
the global environment.<br />
<br />
<texcode><br />
\starttext<br />
\bgroup<br />
\startglobal<br />
\useexternalfigure[kuh][cow.pdf]<br />
\stopglobal<br />
\placefigure[here]{first}{\externalfigure[kuh]}<br />
\egroup<br />
\placefigure[here]{second}{\externalfigure[kuh]}<br />
\stoptext<br />
</texcode><br />
</cd:example></cd:examples><br />
<cd:notes></cd:notes><br />
<cd:seealso><br />
<cd:commandref name="defineexternalfigure" originator="system"></cd:commandref><br />
<cd:commandref name="setupexternalfigure" originator="system"></cd:commandref><br />
<cd:source file="grph-inc.mkiv" originator="system"></cd:source><br />
<cd:wikipage originator="system" page="Category:Graphics"></cd:wikipage></cd:seealso><br />
</cd:commandgroup></div>
Taco