[NTG-context] \useexternalfigure globally? (+minor issues)

Philipp Gesang pgesang at ix.urz.uni-heidelberg.de
Tue Feb 22 23:45:06 CET 2011


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 at 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
> ___________________________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110222/bbf4b871/attachment.pgp>


More information about the ntg-context mailing list