ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] get measures as dimension in Lua
@ 2024-06-09 20:12 Henning Hraban Ramm
  2024-06-10  5:08 ` [NTG-context] " Max Chernoff
  0 siblings, 1 reply; 6+ messages in thread
From: Henning Hraban Ramm @ 2024-06-09 20:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,
when I define a measure on the TeX side, I used to get at the value in 
Lua with tex.getdim, like:

\definemeasure[Bleed][3mm]

tex.getdimen("Bleed")

But now I get "incorrect dimen name".
I need it as a dimension, since I do calculations with other dimensions 
like "topspace".

How should I do this correctly?

(I just assume this used to work – the code is old any maybe stuck in an 
intermediate state where I switched from \newdim to \definemeasure…)

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-13 21:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-09 20:12 [NTG-context] get measures as dimension in Lua Henning Hraban Ramm
2024-06-10  5:08 ` [NTG-context] " Max Chernoff
2024-06-10  8:28   ` Hans Hagen via ntg-context
2024-06-10  8:58     ` Henning Hraban Ramm
2024-06-13 17:24       ` Henning Hraban Ramm
2024-06-13 21:03         ` Hans Hagen via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).