23 Mar
2009
23 Mar
'09
11:35 a.m.
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