Switch From Double to Single Spacing in Latex

  • Context: LaTeX 
  • Thread starter Thread starter EngWiPy
  • Start date Start date
  • Tags Tags
    Latex Switch
Click For Summary

Discussion Overview

The discussion revolves around how to change line spacing in LaTeX documents, specifically switching from double spacing to single spacing for certain paragraphs while maintaining double spacing for the rest of the document. The context includes practical applications in thesis writing and document formatting.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant seeks a method to apply single spacing to specific paragraphs in a thesis formatted with double spacing.
  • Another participant suggests using the SingleSpace environment available in the memoir document class to achieve single spacing for specific sections.
  • A different participant notes that they are using the article class, where the SingleSpace environment is not available, and shares their solution of using \singlespacing and \doublespacing commands without braces to control spacing.
  • Another reply highlights that the \singlespacing command is part of the setspace package and shares a workaround involving redefining the default line spacing in the article class.

Areas of Agreement / Disagreement

Participants express differing views on the best approach to achieve the desired spacing, with some advocating for specific environments in certain document classes while others share alternative methods. No consensus is reached on a single solution applicable to all document classes.

Contextual Notes

Limitations include the dependency on the document class being used (article vs. memoir) and the specific commands available within those classes. Some participants' solutions may not be universally applicable.

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

  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 3 ·
Replies
3
Views
6K
Replies
37
Views
7K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 13 ·
Replies
13
Views
5K