Re: [NTG-context] getting number from context.figurewidth

2021-10-28 Thread Pablo Rodriguez via ntg-context
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=' .. contex

Re: [NTG-context] getting number from context.figurewidth

2021-10-27 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] getting number from context.figurewidth

2021-10-27 Thread Jairo A. del Rio via ntg-context
Hi, Pablo. I have no idea of what you need to do, but in grph-inc.lua you find the following (line 709): implement { name = "figurestatus", actions = { get, context }, arguments = { "'status'", "string", "string" } } So that \figureheight calls this function via \clf_figurestatus and, in turn,

Re: [NTG-context] getting number from context.figurewidth

2021-10-27 Thread Pablo Rodriguez via ntg-context
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 placeh

[NTG-context] getting number from context.figurewidth

2021-10-26 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \startluacode document.sample = "xml-mkiv.pdf" context.getfiguredimensions({ document.sample }) context(context.figureheight) context.par() context(tex.dimen.paperheight) \stopluacode \stoptext Is there a way that I c