Switch From Double to Single Spacing in Latex

1. Jul 19, 2009

S_David

Hello,

In writting my thesis, I set the spacing to be double spacing, complying the requirements. But in some paragraphs, I need to make the spacing single spacing, as in the abstract. When I write \singlespacing control sequence just before the intended paragrah, it shows no affect. How to make this command affect a specific paragrah only, without affecting the entire page layout.

Regard

2. Jul 19, 2009

Fenn

If you're using the memoir document class, there's an environenent called SingleSpace that does just that

Code (Text):

This text is default spacing.

\begin{SingleSpace}

This text is forced singlespace.

\end{SingleSpace}

This text is back to default spacing.

3. Jul 19, 2009

S_David

Actually, I am using the article class, and the enviroment you mentioned is not defined in it. Anyway, I solved the problem by placing \singlespacing control sequence just before the intented paragrah, and then place \doublespacing for the rest to be double spaced. In the begining, I wrote
Code (Text):
{\singlespacing Text}
and it didn't work. But when I removed the burely braces, it works just fine.

Thanks Fenn

Regards

4. Feb 19, 2010

Fenn

Just a quick follow-up on this. The command \singlespacing is part of the setspace package. I have found myself trying to do this exact same thing using the article document class, and had to mix up line spacing throughout the document.

This may not be the most elegant or correct, but it does what I want.

Code (Text):

\documentclass{article}

%set to doublespaced by default
\renewcommand{\baselinestretch}{1.9}

\usepackage{setspace}

\begin{document}

this is double spaced by default\\
this is double spaced by default\\
this is double spaced by default\\

\singlespacing

this is now single spaced\\
this is now single spaced\\
this is\ldots well you get the idea.

\end{document}