Command/useexternalfigure

From Wiki
Jump to navigation Jump to search


\useexternalfigure

Summary

The command \useexternalfigure creates a preset to use with \externalfigure

Settings

\useexternalfigure[...][...][...][...=...,...]
[...]name
[...]file
[...]name
...=...,...inherits from \setupexternalfigure

Description

Examples

Example 1

\useexternalfigure[kuh][cow.pdf][width=2cm]

\starttext
\externalfigure[kuh]
\stoptext

Example 2

By design, \useexternalfigure works only in local scope. In order to globally declare a figure, one has to wrap it into a \startglobal environment, thereby rendering it accessible outside the current group. [1]

NB: The drawback is that other local stuff might be leaked into the global environment.

\starttext
\bgroup
  \startglobal
    \useexternalfigure[kuh][cow.pdf]
  \stopglobal
  \placefigure[here]{first}{\externalfigure[kuh]}
\egroup
\placefigure[here]{second}{\externalfigure[kuh]}
\stoptext

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: