From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] get measures as dimension in Lua
Date: Sun, 9 Jun 2024 22:12:19 +0200 [thread overview]
Message-ID: <adee61dd-9e47-42f4-87ee-9a36e1c16454@fiee.net> (raw)
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
___________________________________________________________________________________
next reply other threads:[~2024-06-09 20:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-09 20:12 Henning Hraban Ramm [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=adee61dd-9e47-42f4-87ee-9a36e1c16454@fiee.net \
--to=texml@fiee.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).