Text FormattingDoubles-pacing, but not in \quote or \verse environment

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
alarswilson
Posts: 26
Joined: Thu Apr 02, 2009 3:42 pm

Doubles-pacing, but not in \quote or \verse environment

Post by alarswilson »

My thesis guidelines call for block-quotes to be single space, but the rest of the text double-spaced. I have been simply using \doublespacing, but this double-spaces the \quote and \verse environments as well. How do I accomplish this simply?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Doubles-pacing, but not in \quote or \verse environment

Post by localghost »

Just use the \singlespacing command from the setspace package inside these environments.


Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
alarswilson
Posts: 26
Joined: Thu Apr 02, 2009 3:42 pm

Re: Doubles-pacing, but not in \quote or \verse environment

Post by alarswilson »

Is there any way of doing this from the front end, without editing all of my \quote and \verse environments by hand?
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Doubles-pacing, but not in \quote or \verse environment

Post by Juanjo »

Add these lines to the preamble:

Code: Select all

\expandafter\def\expandafter\quote\expandafter{\quote\singlespacing}
\expandafter\def\expandafter\verse\expandafter{\verse\singlespacing}
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
alarswilson
Posts: 26
Joined: Thu Apr 02, 2009 3:42 pm

Re: Doubles-pacing, but not in \quote or \verse environment

Post by alarswilson »

Thanks. It worked great.
Post Reply