Welcome to the UK List of
TeX Frequently Asked Questions
on the Web

Searching

The index of Frequently Asked Questions about TeX is searchable.

Please enter your keyword here:   then press here: ,    or:
Google

Why doesn’t \linespread work?

The command \linespread{factor} is supposed to multiply the current \baselineskip by <factor>; but, to all appearances, it doesn’t.

In fact, the command is equivalent to \renewcommand{\baselinestretch}{factor}: written that way, it somehow feels less surprising that the effect isn’t immediate. The \baselinestretch factor is only used when a font is selected; a mere change of \baselinestretch doesn’t change the font, any more than does the command \fontsize{size}{baselineskip} — you have to follow either command with \selectfont. So:

\fontsize{10}{12}%
\selectfont

or:

\linespread{1.2}%
\selectfont

Of course, a package such as setspace, whose job is to manage the baseline, will deal with all this stuff — see “managing double-spaced documents”. If you want to avoid setspace, beware the behaviour of linespread changes within a paragraph: read “\baselineskip is a paragraph parameter”.

setspace.sty
macros/latex/contrib/setspace/setspace.sty; catalogue entry


Go to previous question, or next question

Go to FAQ home.

URL for this question: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=linespread

Comments, suggestions, or error reports? - see “how to improve the FAQ”.

This is FAQ version 3.28, released on 2014-06-10.