What’s the current approved way to get image properties within a Lua
function?
very old:
local pic = figures.getinfo(figures.current().status.fullname)
used to work in 2019:
local pic = img.scan{filename = figures.current().status.fullname}
if I understand this right, "img" isn’t valid
Thanks Hans, that works now.
Best Wishes
Keith
On 11/07/2023 10:37, Hans Hagen wrote:
On 7/11/2023 11:11 AM, Keith McKay wrote:
Hi All
Using\enabletrackers[paragraphs.passes=summary] whilst doing some
testing causes a fatal error after first run but pdf is produced.
Here is the error
On 7/11/2023 11:11 AM, Keith McKay wrote:
Hi All
Using\enabletrackers[paragraphs.passes=summary] whilst doing some
testing causes a fatal error after first run but pdf is produced. Here
is the error message from the MWE:
in spac-pas.lmt in lines 156 and 158 you can change
classes into
Hi All
Using\enabletrackers[paragraphs.passes=summary] whilst doing some
testing causes a fatal error after first run but pdf is produced. Here
is the error message from the MWE:
lua error:
run callback [6]: bad argument #2 to 'format' (number expected,
got nil)
stack traceback: