\useexternalfigure globally? (+minor issues)
![](https://secure.gravatar.com/avatar/a5c08a43051c146e1e17a5e4e7d052f4.jpg?s=120&d=mm&r=g)
Hi all, [1] in grph-fig.mkiv, “\useexternalfigure” is declared twice in exactly the same way (ll. 124 and 132). [2] “\showexternalfigures” does not seem to work in mkiv (fails at “\startXMLmapping”), is there an alternative? [3] Is there a way to globally declare an externalfigure from inside a group? So that in the following example, the second reference to “kuh” succeeds. ···8<···························································· \starttext \bgroup \useexternalfigure[kuh][cow] \externalfigure[kuh] \egroup \externalfigure[kuh] \stoptext ···8<···························································· Thanks in advance, Philipp
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 22.02.2011 um 22:25 schrieb Philipp Gesang:
Hi all,
[3] Is there a way to globally declare an externalfigure from inside a group? So that in the following example, the second reference to “kuh” succeeds.
···8<···························································· \starttext
\bgroup \useexternalfigure[kuh][cow]
\startglobal \useexternalfigure[kuh][cow] \stopglobal Wolfgang
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 22-2-2011 10:46, Wolfgang Schuster wrote:
Am 22.02.2011 um 22:25 schrieb Philipp Gesang:
Hi all,
[3] Is there a way to globally declare an externalfigure from inside a group? So that in the following example, the second reference to “kuh” succeeds.
···8<···························································· \starttext
\bgroup \useexternalfigure[kuh][cow]
\startglobal \useexternalfigure[kuh][cow] \stopglobal
with side effects (like other local macros bleeding out) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/a5c08a43051c146e1e17a5e4e7d052f4.jpg?s=120&d=mm&r=g)
On 2011-02-22 <22:46:20>, Wolfgang Schuster wrote:
Am 22.02.2011 um 22:25 schrieb Philipp Gesang:
Hi all,
[3] Is there a way to globally declare an externalfigure from inside a group? So that in the following example, the second reference to “kuh” succeeds.
···8<···························································· \starttext
\bgroup \useexternalfigure[kuh][cow]
\startglobal \useexternalfigure[kuh][cow] \stopglobal
Thanks a lot, this works like a charm. Too bad I already wrote a workaround … Philipp
Wolfgang
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 22.02.2011 um 23:18 schrieb Philipp Gesang:
On 2011-02-22 <22:46:20>, Wolfgang Schuster wrote:
Am 22.02.2011 um 22:25 schrieb Philipp Gesang:
Hi all,
[3] Is there a way to globally declare an externalfigure from inside a group? So that in the following example, the second reference to “kuh” succeeds.
···8<···························································· \starttext
\bgroup \useexternalfigure[kuh][cow]
\startglobal \useexternalfigure[kuh][cow] \stopglobal
Thanks a lot, this works like a charm. Too bad I already wrote a workaround …
Which? As Hans wrote \startglobal can result in unwanted side effects. Wolfgang
![](https://secure.gravatar.com/avatar/a5c08a43051c146e1e17a5e4e7d052f4.jpg?s=120&d=mm&r=g)
On 2011-02-22 <23:22:17>, Wolfgang Schuster wrote:
Am 22.02.2011 um 23:18 schrieb Philipp Gesang:
On 2011-02-22 <22:46:20>, Wolfgang Schuster wrote:
Am 22.02.2011 um 22:25 schrieb Philipp Gesang:
Hi all,
[3] Is there a way to globally declare an externalfigure from inside a group? So that in the following example, the second reference to “kuh” succeeds.
···8<···························································· \starttext
\bgroup \useexternalfigure[kuh][cow]
\startglobal \useexternalfigure[kuh][cow] \stopglobal
Thanks a lot, this works like a charm. Too bad I already wrote a workaround …
Which?
My-code specific and Lua-based. Cost me a couple of function calls but I managed to get the extfig declared outside the group.
As Hans wrote \startglobal can result in unwanted side effects.
I guess I’ll investigate those later and stick to my code just now. Best regards, Philipp
Wolfgang
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (3)
-
Hans Hagen
-
Philipp Gesang
-
Wolfgang Schuster