summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-linespread.html
blob: cab6fe49698f859227fde678b2d0ec6abc141457 (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'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'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'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'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> - you have to follow
either command with <code>\</code><code>selectfont</code>.  So:
<blockquote>
<pre>
\fontsize{10}{12}%
\selectfont
</pre>
</blockquote>
or:
<blockquote>
<pre>
\linespread{1.2}%
\selectfont
</pre>
</blockquote>
Of course, a package such as <i>setspace</i>, whose job is to
manage the baseline, will deal with all this stuff - see
"<a href="FAQ-linespace.html">managing double-spaced documents</a>".  If
you want to avoid <i>setspace</i>, beware the behaviour of
linespread changes within a paragraph: read 
"<a href="FAQ-baselinepar.html"><code>\</code><code>baselineskip</code> is a paragraph parameter</a>".
<dl>
<dt><tt><i>setspace.sty</i></tt><dd><a href="ftp://cam.ctan.org/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>