Hey there. I've been playing with m-layout, and I think there's a bug in preset-2-1. I only found it because I was trying to implement the exact same layout, and because I really was struggling with the computational order of precedence in the \dimexpr's (anyone have a good reference for that?) The final line of preset-2-1 should be: \c!bottomspace=\dimexpr((2\layoutvstep)-\layoutparameter\c!header- \layoutparameter\c!headerdistance) [(2\layoutvstep) should be grouped. I don't entirely know why.] ...if it's doing what i think it wants to do! -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Adam Lindsay wrote:
Hey there.
I've been playing with m-layout, and I think there's a bug in preset-2-1. I only found it because I was trying to implement the exact same layout, and because I really was struggling with the computational order of precedence in the \dimexpr's (anyone have a good reference for that?)
The final line of preset-2-1 should be: \c!bottomspace=\dimexpr((2\layoutvstep)-\layoutparameter\c!header- \layoutparameter\c!headerdistance)
[(2\layoutvstep) should be grouped. I don't entirely know why.] ...if it's doing what i think it wants to do!
Can you try the attached file? \dimexpr .. \relax instead of () ; as GB pointed out some time ago, the expr scanner only stops at a \relax; one of the problem sis that the scanner is modelled after some kind of macro based solution (a wrong design decission imo) 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 -----------------------------------------------------------------
participants (2)
-
Adam Lindsay
-
Hans Hagen