On 10/27/2021 9:20 PM, Pablo Rodriguez via ntg-context wrote:
On 10/26/21 6:31 PM, Pablo Rodriguez via ntg-context wrote:
[...] Is there a way that I can get a number from context.figureheight, such as I get it from tex.dimen.paperheight?
Sorry for insisting, I need it for a Lua script that in the relevant line reads:
loader_times:write('.box placeholder width=' .. context.figurewidth .. ' height=' .. context.figureheight)
I cannot concatenate string and function (and I need the number, not the unit).
Is there no way of doing it? i'm pretty sure this has been asked before
\ctxlua{local f = figures.getinfo("cow.pdf") print(f and f.used and f.used.width)} so .. time to wikify it Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------