Following the advice in the answer to this question, I did set a huge negative \lineskiplimit. However, it turned out that align got quite upset about this. So my question is: what would you recommend to achieve (at least partially) grid typesetting with amsmath? By "partially" I mean that I accept not adhering to grid when there are, say, lots of theorem-like environments etc. on a page, but on pages with only text/sections/inline math I'd prefer to have it. I am rather afraid of using any packages for grid typesetting, since in the class I am using I redefined a lot of LaTeX internals (for example, I coded theorems, sections, enumerations from scratch, not even 100% compatibly with pure LaTeX). (I know this is risky, but "though this be madness, yet there's method in't";).)
So now I have a few options.
Redefine align & friends to temporarily set
\lineskiplimitto 0pt. Not something I'd like to do, obviously.Set
\lineskiplimitback to 0pt, and\smash(or display) manually all "too big" formulae.
Currently I am leaning towards 2., but are there any other ideas?
\baselineskip. If you disable\lineskiplimityou don't force grid alignment, just force that large rows just stack whatever size they are, if you\smashlarge rows then they over-print adjacent rows. – David Carlisle Apr 15 '12 at 17:08\lineskiplimit=-\maxdimenwould do exactly this: give me grid with no displays, and if they appeared, I wouldn't care about the grid on such a page. But it turned out that this setting messed displays completely-hence my question. – mbork Apr 15 '12 at 23:49