![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
28 Oct
2021
28 Oct
'21
11:15 a.m.
On 10/27/21 10:06 PM, Hans Hagen via ntg-context wrote:
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:
[...] 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
Many thanks for your reply, Hans. Already wikified at https://wiki.contextgarden.net/Image_Placement#Measures_in_Lua. Many thanks again for your help, Pablo -- http://www.ousia.tk