Hi, I fixed/extended some experimental code. See attached file. Of course you need to move the core file to base and regenerate the format. If you want autospacing, you need the \epar (this will trigger some line width calculations, somethign that needs to take place inside a par). You can also \moveformula ([-top] but that is the default and onlyh option in not grid mode) \optimizedisplayspacingtrue % needed test \par \dorecurse{10}{test } \moveformula \startformula test \stopformula test \endgraf test test \par \dorecurse{10}{test } \startformula test \stopformula test \endgraf test \dorecurse{30}{\bpar \dorecurse\recurselevel{test } \epar \startformula formula \stopformula} no guarantees -) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------