Am 21.03.2009 um 23:26 schrieb Arthur Reutenauer:

Can I divide dimensions to get a number in pdftex?

 LaTeX has a package to do exactly that, fp.  You could look into its
code.  Or you could use LuaTeX :-)

\startluacode
if tex.dimen["!!dimena"] / tex.dimen["!!dimenb"] > tex.dimen["!! dimenc"] / tex.dimen["!!dimend"] then
    tex.sprint("this")
else
    tex.sprint("that")
end
\stopluacode

Wolfgang

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

maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________

Reply via email to