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:




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”.

Source: Why doesn't `\linespread` work?

composition/texte/paragraphes/pourquoi_linespread_ne_fonctionne_pas.txt · Dernière modification: 2018/12/04 00:53 par jejust
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0