summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-linespread.html
blob: 4d7a868de2001592e1dc2b6a2ca3fd3fe777c960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<head>
<title>UK TeX FAQ -- question label linespread</title>
</head><body>
<h3>Why doesn&#8217;t <code>\</code><code>linespread</code> work?</h3>
<p/>The command <code>\</code><code>linespread{</code><em>factor</em><code>}</code> is supposed to multiply
the current <code>\</code><code>baselineskip</code> by &lt;<i>factor</i>&gt;; but, to all
appearances, it doesn&#8217;t.
<p/>In fact, the command is equivalent to
<code>\</code><code>renewcommand{<code>\</code><code>baselinestretch</code>}{factor}</code>: written that
way, it somehow feels less surprising that the effect isn&#8217;t immediate.
The <code>\</code><code>baselinestretch</code> factor is only used when a font is selected;
a mere change of <code>\</code><code>baselinestretch</code> doesn&#8217;t change the font, any
more than does the command
<code>\</code><code>fontsize{</code><em>size</em><code>}{</code><em>baselineskip</em><code>}</code> &#8212; you have to follow
either command with <code>\</code><code>selectfont</code>.  So:
<blockquote>
<pre>
\fontsize{10}{12}%
\selectfont
</pre>
</blockquote><p>
or:
<blockquote>
<pre>
\linespread{1.2}%
\selectfont
</pre>
</blockquote><p>
Of course, a package such as <i>setspace</i>, whose job is to
manage the baseline, will deal with all this stuff &#8212; see
&#8220;<a href="FAQ-linespace.html">managing double-spaced documents</a>&#8221;.  If
you want to avoid <i>setspace</i>, beware the behaviour of
linespread changes within a paragraph: read 
&#8220;<a href="FAQ-baselinepar.html"><code>\</code><code>baselineskip</code> is a paragraph parameter</a>&#8221;.
<dl>
<dt><tt><i>setspace.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/setspace/setspace.sty">macros/latex/contrib/setspace/setspace.sty</a>
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=linespread">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=linespread</a>
</body>