[NTG-context] image file resolver in Lua?

Rudolf Bahr quasi at quasi.de
Fri Feb 2 12:08:02 CET 2018


On Fri, Feb 02, 2018 at 08:40:08AM +0100, Henning Hraban Ramm wrote:
> Ahoi,
> 
> I’m using a Lua function to calculate image sizes, cropping etc.
> This snippet:
> 
> local filename = figures.current().status.fullname
> local pic = img.scan{filename = filename}
> 
> ... works most of the time, but sometimes the "current" image is the previous one, might be because I’m using layers and postponing.
> So I’d like to use just the same filename as I give to \externalfigure, i.e. without path and extension.
> How can I address the same file path resolver in my Lua function?
> 

Moin, Hraban,

where could I find something about those lua functions?

Regards, Rudolf



More information about the ntg-context mailing list