Am 26.11.25 um 09:51 schrieb Hans Hagen via ntg-context:
\starttexdefinition Conv #1#2
\normalexpanded {
\unit {
\the\nodimen #2 {#1}
}
}
\stoptexdefinition
Thank you!
Now Hraban can also go wild with two Sundqvist units in one go:
\bTR
\bTD 1ts+2es \eTD
\bTD \Conv{1ts+2es}{mm} \eTD
\bTD \Conv{1ts+2es}{pt} \eTD
\eTR
And of course, he can guess how \nodimen is defined. I admit that I had
to look it up .. so long ago .. interesting that you found it (and
remembered).
Actually, I can’t. I got my code snippet from you and used it since.
I only tried to add \unit because the editor of my book asked why the
numbers are oddly formatted (i.e. not at all) in these tables. (I tried
it then, failed, and let it be.)
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
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
___________________________________________________________________________________