![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 7/3/2017 8:37 AM, Henri Menke wrote:
Dear Hans,
In a previous email I complained that with mathalignment large formulas crash into the paragraph below when using grid typesetting. This has been fixed in the latest beta but now the space above and below is asymmetric. For this particular case I could fix it by setting the gird snapping mode to "top" rather than "math", but this does not apply universally. Any chance there is an easy fix?
you can experiment with other grid options to see what is the best average .. the problem is that in a symmetrical vcentered formula ht/dp is kind of unknown (we could add a grid key to formulas so that users can choose)
Cheers, Henri
---
\setuplayout[grid=both] \showgrid
\startmode[fix] \unprotect \def\math_alignment_snap_start {\ifgridsnapping \snaptogrid[top]\vbox\bgroup \fi} \protect \stopmode
\starttext \input knuth \startformula \startmathalignment \NC i\hbar\frac{\diff}{\diff t}\psi \NC= \left( - \frac{\hbar^2}{2 m} \nabla^2 + V(r) \right) \psi \NR \NC F(x) \NC= \int f(x) \diff x \NR \stopmathalignment \stopformula \input ward \stoptext ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------