🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #4461

Re: vertical spacing in LaTeX

#4461
From: Tom Lane
Date: Wed, 24 Feb 1988 14:16
42 lines
2367 bytes
In article <4445@sigi.Colorado.EDU> michael@boulder.Colorado.EDU (Michael
Schmidt) writes:
>   How can I influence the vertical spacing in LaTeX? Say to
>   achieve double spacing?

to which lear@athos.rutgers.edu (eliot lear) replies:
>   \newcommand{\doublespace}{\baselineskip 2\baselineskip}
>   and 
>   \newcommand{\halfspace}{\par \baselineskip .5\baselineskip}
>   to undo it.

The LaTeX book (on p. 155) recommends changing \baselinestretch rather than
\baselineskip to achieve double spacing.  The latter value is set by
any type-size-changing command, so section headers, footnotes, and so forth
will not be doublespaced with lear's macros; moreover, a type-size-setting
command in open text (not inside a group) will destroy the spacing permanently.

To achieve true double spacing, I'd recommend putting something like

	\renewcommand{\baselinestretch}{2}

in the document preamble (before \begin{document}).

If you want to change the setting on the fly, you need to also cause
\baselineskip to be updated, which you can do as in lear's code; or you
could say "\large \normalsize" to force \baselineskip to be recomputed.
(The latter method has the advantage of being independent of the previous
state.)  You probably shouldn't be doing that at all, though; if what you
need is a little more space at particular places --- say around formulas ---
there are other parameters that you can diddle; or you can always throw in a
strut.

The LaTeX book points out that this approach is really only suitable for
producing draft copies for marking up; a wholesale revision of the document
format for wider line spacing would require numerous other adjustments
to produce good-looking results.

-- 
				tom lane
ARPA: tgl@zog.cs.cmu.edu
UUCP: <your favorite arpanet gateway>!zog.cs.cmu.edu!tgl
BITNET: tgl%zog.cs.cmu.edu@cmuccvma
Technical Details
Message-ID: <946@PT.CS.CMU.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!ll-xn!mit-eddie!bbn!rochester!PT.CS.CMU.EDU!ZOG.CS.CMU.EDU!tgl
References: <4445@sigi.Colorado.EDU> <973@athos.rutgers.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!ll-xn!mit-eddie!bbn!rochester!PT.CS.CMU.EDU!ZOG.CS.CMU.EDU!tgl
From: tgl@ZOG.CS.CMU.EDU (Tom Lane)
Newsgroups: comp.text
Subject: Re: vertical spacing in LaTeX
Message-ID: <946@PT.CS.CMU.EDU>
Date: 24 Feb 88 14:16:00 GMT
References: <4445@sigi.Colorado.EDU> <973@athos.rutgers.edu>
Sender: netnews@PT.CS.CMU.EDU
Reply-To: tgl@zog.cs.cmu.edu (Tom Lane)
Distribution: na
Organization: Carnegie-Mellon University, CS/RI
Lines: 41