> Can someone explain this?
tex.dimen is a Lua table containing the dimension registers, in scaled
points. Hence, if \!!dimena is 1pt, tex.dimen["!!dimena"] will be 65536,
for instance. The rest is algebra and Lua control structures.
> The solutions posted in lua seem more complicated
> than that using \dimexpr
If you mean from the number of characters, maybe. Then again, it's
only about comparing a / b to c / d in both cases. It would be
interesting to compare their efficiency.
Arthur
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________