Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Switch From Double to Single Spacing in Latex

  1. Jul 19, 2009 #1
    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
     
  2. jcsd
  3. Jul 19, 2009 #2
    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.

     
     
  4. Jul 19, 2009 #3
    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
     
  5. Feb 19, 2010 #4
    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}

     
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Switch From Double to Single Spacing in Latex
  1. Line Spacing in Latex (Replies: 4)

  2. Double Line in LaTeX (Replies: 7)

Loading...