Hello,

is there a Lua version of external figure locator used by \externalfigure?

Suppose having:

----
\setupexternalfigures[location={default,local,global},directory={../../Pics}]
\externalfigure[mill]                % Finds e.g. in 
d:\Ctx-Beta\tex\texmf-context\tex\context\sample\common\mill.png
\externalfigure[MyPrettyPicture.jpg] % Finds e.g. in 
c:\Lukas\Pics\MyPrettyPicture.jpg
----

And I need a function like:

----
\startluacode
  local path

  path = assert(ExternalFileLocator("mill") == 
"d:/Ctx-Beta/tex/texmf-context/tex/context/sample/common/mill.png")
  path = assert(ExternalFileLocator("MyPrettyPicture.jpg") == 
"c:/Lukas/Pics/MyPrettyPicture.jpg")
\stopluacode
----

So what to use in place of "ExternalFileLocator()"?

TIA.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.      | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751 (+420 720 951 172)
Fax: +420 244 461 038

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to