[Tex/LaTex] How does one stop automatic line spacing increases when typesetting tall math symbols

line-spacingmath-mode

Often when typesetting mathematics, one wants to use math symbols in line. When these are certain symbols, or more often, decorated symbols, whose height is sufficiently large, the line spacing (that is, the space between the current line and the previous one) is increased in order to compensate for the height of the symbol. A usual example is $\widetilde{f}$, for instance. I would like to stop this from happening, even if it leads to possible overlap of symbols between the two lines. Is this possible?

Another one that will certainly induce a lineskip increase is \overset{\alpha}{\to}. I would also like this not to induce a lineskip increase.

If it is relevant, I am using XeLaTeX with unicode-math and the Lucida fonts, but I would very much prefer a general solution, as I encounter this problem with computer modern (and the $\widetilde{f}$) as well.

Best Answer

You should set the parameter \lineskiplimit to a negative value to avoid the lines from spreading. This behavior is explained in the TeXbook pg.78.

The TeX engine adds more space between the lines if their separation is smaller than \lineskiplimit; therefore setting it to a large negative value has the effect that a correction (which goes under the name \lineskip) is never applied.

Therefore simply add \setlength{\lineskiplimit}{-100pt} to the preamble of your document. All the lines will be equally spaced no matter their content. This is what you want.

Taking the MWE from @jfbu that's what the output looks like after setting the lineskiplimit:

enter image description here