[NTG-context] mathalignment and grid
Henri Menke
henrimenke at gmail.com
Sun Aug 28 15:27:32 CEST 2016
Dear list,
when I typeset multi line equations using mathalignment and grid the descenders of the last line of equation run into the first line of text after that equation. The problem is particularly bad with the Lucida fonts (I think the large operators are relatively larger than for Latin Modern).
I could just increase the spacing after equation (commented out in the MWE below), but that would introduce an imbalance between space before and space after for all equations without descenders. Furthermore the problem does not arise for single line equations with descenders. Without grid there is also no problem.
How do I fix mathalignment to prevent this?
Cheers, Henri
---
\setuplayout[grid=yes]
\setupbodyfont[lucidaot,9pt]
%\setupformulas[spaceafter={back,nowhite,2*line}]
\showgrid
\starttext
\input ward
\startformula
\startmathalignment
\NC \sum_{i,\alpha,\beta} c_{i,\alpha}^\dagger c_{i,\beta} \NR
\NC \sum_{i,\alpha,\beta} c_{i,\alpha}^\dagger c_{i,\beta} \NR
\stopmathalignment
\stopformula
%\blank[2*line]
\input ward
\startformula
\sum_{i,\alpha,\beta} c_{i,\alpha}^\dagger c_{i,\beta}
\stopformula
\input ward
\startformula
\text{no descenders}
\stopformula
\input ward
\stoptext
More information about the ntg-context
mailing list