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, it calls figures.get. If I'm right, figures.get('status','height','0') -- or '"status"' ? would have to return the value you're asking for (at the TeX end, "sp" units are added). A MWE wouldn't hurt. I hope this helps or, at least, it leads you through the right direction. Cordially, Jairo El mié, 27 de oct. de 2021 a la(s) 14:20, Pablo Rodriguez via ntg-context ( ntg-context@ntg.nl) escribió: > 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? > > Many thanks for your help, > > Pablo > -- > http://www.ousia.tk > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ >
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________