Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

changing latex baselinestretch

1,150 views
Skip to first unread message

Bill McKie

unread,
Jun 30, 1997, 3:00:00 AM6/30/97
to

I need to change back and forth between single and double line spacing
within a \documentclass{book} latex (2e) document. E.g. I would like to
have single line spacing within a tabular environment and double line
spacing outside the tables. Or I might want to have a few paragraphs
in a chapter be single spaced and others that are double spaced.
I've tried embedding \renewcommand{\baselinestretch}{1} and
\renewcommand{\baselinestretch}{2} at various places within the
document, but do not seem to get the desired line spacing results. Is
there an easy way to repeatedly switch between different line spacings
in latex?

Stephen Eglen

unread,
Jul 1, 1997, 3:00:00 AM7/1/97
to Bill McKie

mc...@crl.crl.com (Bill McKie) writes:
> document, but do not seem to get the desired line spacing results. Is
> there an easy way to repeatedly switch between different line spacings
> in latex?

I'd recommend looking at setspace.sty available from CTAN. It allows
you to do things like:

\begin{spacing}{0.9}
\bibliographystyle{unsrt}
\bibliography{gen}
\end{spacing}

Change the number to change the spacing.

cheers, stephen

Anders Magnusson

unread,
Jul 1, 1997, 3:00:00 AM7/1/97
to Bill McKie

mc...@crl.crl.com (Bill McKie) writes:

> I need to change back and forth between single and double line spacing
> within a \documentclass{book} latex (2e) document. E.g. I would like to
> have single line spacing within a tabular environment and double line
> spacing outside the tables. Or I might want to have a few paragraphs
> in a chapter be single spaced and others that are double spaced.
> I've tried embedding \renewcommand{\baselinestretch}{1} and
> \renewcommand{\baselinestretch}{2} at various places within the

> document, but do not seem to get the desired line spacing results. Is
> there an easy way to repeatedly switch between different line spacings
> in latex?

If you use \baselineskip it holds for the current environment, so you
can set one value for the ordinary text, and different values for
tables, equations and so on. The drawback is that you have to set it
every time you start a new environment (i.e. you have to set it for
each table and so on). There might be better ways, but I used it to
increase the line-spacing in the text and had the default for tables
and equations, which it was perfect for.

/Anders
--
Anders Magnusson Phone: +46 46 2227991
Dept. of Solid Mechanics URL: http://www.hallf.lth.se/~hlam
Lund University e-mail: Anders.M...@hallf.lth.se
"BTW, does Jesus know you flame?"
-- Diane Holt, dia...@binky.UUCP, to Ed Carp

David Kastrup

unread,
Jul 1, 1997, 3:00:00 AM7/1/97
to Bill McKie

mc...@crl.crl.com (Bill McKie) writes:

> I need to change back and forth between single and double line
> spacing within a \documentclass{book} latex (2e) document. E.g. I
> would like to have single line spacing within a tabular environment
> and double line spacing outside the tables.

setspace.sty, as recommended by catalogue.html, available from CTAN.

Try
finger ct...@ftp.dante.de
or
finger ct...@ftp.tex.ac.uk

for info about CTAN.


--
David Kastrup Phone: +49-234-700-5570
Email: d...@neuroinformatik.ruhr-uni-bochum.de Fax: +49-234-709-4209
Institut für Neuroinformatik, Universitätsstr. 150, 44780 Bochum, Germany

0 new messages