Changing the line spacing
Without some vertical space between the lines, the readability of our text could suffer. Adding such space would help lead the eye along the line. Though LaTeX already takes care of good readability by choosing meaningful interline spacing, publishers might require different spacing.
We shall modify the very first example of this chapter by adding half of a line height to the line spacing:
- Extend the preamble of our example with this command:
\usepackage[onehalfspacing]{setspace}
- Compile the code to see the change:
We loaded the setspace
package to adjust the line spacing. We provided the option onehalfspacing
, which increases the spacing by half of a line height for the whole document.
The setspace
package understands three options:
singlespacing
is the default. No additional space will be inserted. The text will be typeset with LaTeX's default interline...