LaTeX Switch From Double to Single Spacing in Latex

  • Thread starter Thread starter EngWiPy
  • Start date Start date
  • Tags Tags
    Latex Switch
AI Thread Summary
In the discussion, a user seeks assistance with adjusting line spacing in their thesis, specifically needing to switch from double to single spacing for certain paragraphs. They initially attempt to use the \singlespacing command but find it ineffective. A solution is provided for users of the memoir document class, which includes the SingleSpace environment to manage spacing locally. However, the original poster uses the article class and resolves the issue by correctly placing the \singlespacing command without braces before the intended paragraph and then reverting to \doublespacing for the rest of the document. Another participant notes that the \singlespacing command is part of the setspace package, which can be used to achieve the desired formatting in the article class, demonstrating a workaround for mixing line spacing throughout the document.
EngWiPy
Messages
1,361
Reaction score
61
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.

Thanks in advance.

Regard
 
Physics news on Phys.org
If you're using the memoir document class, there's an environenent called SingleSpace that does just that

Code:
This text is default spacing.

\begin{SingleSpace}

This text is forced singlespace.

\end{SingleSpace}

This text is back to default spacing.
 
Fenn said:
If you're using the memoir document class, there's an environenent called SingleSpace that does just that

Code:
This text is default spacing.

\begin{SingleSpace}

This text is forced singlespace.

\end{SingleSpace}

This text is back to default spacing.

Actually, I am using the article class, and the environment 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:
{\singlespacing Text}
and it didn't work. But when I removed the burely braces, it works just fine.

Thanks Fenn

Regards
 
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:
\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}
 

Similar threads

Back
Top