Aditya Mahajan wrote:
Hi,

Can I divide dimensions to get a number in pdftex?

I have four dimensions \!!dimena, \!!dimenb, \!!dimenc and \!!dimend, and I want

depends on what you want to achive as there are many possibilities

\number\dimexp 123pt\relax
\number\dimexp 123pt/65536\relax

there's also

\withoutpt

anyhow, you code ...


\dimen0=10pt
\dimen2=20pt
\dimen4=30pt
\dimen6=40pt

\ifdim \dimexpr\dimen0/\dimen2\relax > \dimexpr\dimen4/\dimen6\relax
  do something
\else
  do otherthing
\fi

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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