[NTG-context] typearea

Hans Hagen ntg-context@ntg.nl
Tue, 20 Jan 2004 10:12:32 +0100


At 20:06 19/01/2004, you wrote:

> > 
> \edef\layoutratio{\withoutpt{\the\dimexpr(2\paperheight/(\paperwidth/32768))}}
>
>Very strange, it works, but I don't understand how 2 * a / (b / 32768) == a/b

one can divide a dimen by a dimen in which case the dimen is cast on a 
counter (internally a dimen is just a number, with a sp unit); we need to 
compensate by 64K then; i multiply by two first to get rid of inaccuracy 
etc etc

>Do I understand it right, backspace is the inner margin, and cutspace the
>outer one?  Are both needed?

no, but it permits width=middle

Hans