While refining my thesis, I noticed that the spacing between lines differs sometimes, when there are inline formulae in the text. I guess this happens to provide enough space between the formulae and the surrounding lines. Unfortunately, this can look extremely ugly, when the spacings are differing every two lines.
The inline formula are typically some simple specifiers like
… coefficient $T_j^{(1)}$ is …
This means, it doesn't make sense to move it in an equation/align environment.
At the moment, I'm circumventing the additional spacing by adding an empirically determined stretch to the lines (e.g., \setstretch{1.1} from the setspace package yields equally spaced lines), but I can't be sure that this will fit all occurrences of oversized inline formulae. But I want to avoid more "extreme" settings like \onehalfspacing, since (IMHO) this looks ugly, too.
So my questions are:
- Is there a way to force the regular spacing of one
\baselineskip? (Please ignore the fact that this will probably look ugly as hell.) - Is there a prettier automatic solution, which is better than manually stretching the whole document?
- Or is it even possible to reduce the size of this formula? I'm thinking of the difference between
\textstyleand\displaystylefor fractions and operators.
For testing purposes, I created a MWE (to be compiled with lualatex), where the baselines of the first 5 lines are marked with a green line. In the standard configuration, the third, fourth and fifth line are much lower:
\documentclass[a5paper,DIV=9]{scrartcl}
\usepackage{amsmath}
\usepackage{fontspec}
\setmainfont{Latin Modern Roman}
\usepackage{unicode-math}
\setmathfont{Latin Modern Math}
\usepackage{setspace}
%\setstretch{1.05}
% geometry with DIV9 options
\usepackage[
showframe,
marginratio={1:1,1:2},
scale=0.66666
]{geometry}
\usepackage{xcolor,picture,eso-pic}
\def\bl{-66.39178pt} % upper border of textarea, taken from output of geometry package
\begin{document}
\AddToShipoutPicture*{%
\AtPageUpperLeft{%
\color{red}%
\put(0,\bl){\line(1,0){\paperwidth}}%
\color{green}
\put(0,\bl-1em){\line(1,0){\paperwidth}}%
\put(0,\bl-1em-\baselineskip){\line(1,0){\paperwidth}}%
\put(0,\bl-1em-2\baselineskip){\line(1,0){\paperwidth}}%
\put(0,\bl-1em-3\baselineskip){\line(1,0){\paperwidth}}%
\put(0,\bl-1em-4\baselineskip){\line(1,0){\paperwidth}}%
}%
}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut,
placerat ac, adipiscing vitae, felis. Curabitur dictum $T_j^{(1)}$ gravida mauris. Nam arcu libero,
nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.
\end{document}

\smashthe offending formula, but really the best way to cope with the problem, when you have several of those very high objects, is to enlarge the leading;\linespread{1.1}is a good remedy for this case (no need ofsetspace). – egreg Jul 05 '16 at 12:36\normallineskip=0pt, but it's not recommended. even if you do that, a display-style fraction in a text line will force lines apart. – barbara beeton Jul 05 '16 at 12:55\lineskiplimitto a large negative value did the trick. – Stefan Jul 06 '16 at 07:50\lineskipto a large value: they'll show up very clearly. – egreg Jul 06 '16 at 08:08