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