Featured Book

LaTeX Beginners Guide

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 3 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

singlespace in {quote}, doublespace elsewhere Topic is solved

programmingspacingAdd tags Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)

singlespace in {quote}, doublespace elsewhere

Postby saimike on Mon Apr 23rd, 2012

Preamble: I'm formatting a humanities dissertation so this may seem weird.

I have a lot of quotes from interviews and I want to have them single spaced (intra-paragraph) and doublespaced inter-paragraph. I was able to do this rather well using in my appendix using:

\setlength{\parskip}{11pt}
\singlespacing


Is there a way I can have all my {quote} in singlespace? i.e. whenever I start a \begin{quote}, it will be single spaced with an 11pt \parskip.
saimike
 
Posts: 20
Joined: Wed Apr 11th, 2012

Re: singlespace in {quote}, doublespace elsewhere  Topic is solved

Postby Stefan_K on Mon Apr 23rd, 2012

With a consistent macro typesetting software like LaTeX, it's no problem. Just extend the quote environment. A quick addition:

Code: Select all  •  Open in writeLaTeX
\makeatletter
\g@addto@macro\quote\singlespace
\makeatother


\makeatletter and \makeatother are just required because @ is a special character, commonly used to mark internal macros, which is therefore not allowed for direct use in documents. This would not be necessary in a style file.

Stefan
LaTeX Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6387
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

Re: singlespace in {quote}, doublespace elsewhere

Postby saimike on Mon Apr 23rd, 2012

Stefan

Awesome, that worked very well!
saimike
 
Posts: 20
Joined: Wed Apr 11th, 2012

Re: singlespace in {quote}, doublespace elsewhere

Postby saimike on Wed Apr 25th, 2012

Stefan

Would this macro affect the inter-paragraph spacing between the quote and the previous or following paragraph?

I am seeing inconsistent spacing when using it with puthesis.cls (https://engineering.purdue.edu/~mark/pu ... thesis.cls).
saimike
 
Posts: 20
Joined: Wed Apr 11th, 2012

Re: singlespace in {quote}, doublespace elsewhere

Postby Stefan_K on Wed Apr 25th, 2012

I don't think so. Have a look:

Code: Select all  •  Open in writeLaTeX
\documentclass[aae,dissertation]{puthesis}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{setspace}
\makeatletter
\g@addto@macro\quote\singlespace
\makeatother
\doublespace
\begin{document}
\blindtext
\begin{quote}
  \blindtext
\end{quote}
\blindtext
\end{document
}


Perhaps show with code, similarly as I, what you mean with inconsistent spacing. There could be other reasons.

Stefan
LaTeX Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6387
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

Re: singlespace in {quote}, doublespace elsewhere

Postby NeuroTex on Fri May 17th, 2013

...thanks for a very helpful post here :D

but - is there a way for (and any sense in) putting the starred version of the \singlespace command? Say something like:


Code: Select all  •  Open in writeLaTeX
\makeatletter
\g@addto@macro\quote\singlespace*
\makeatother


the above doesn't seem to be working form me
and using:

Code: Select all  •  Open in writeLaTeX
\makeatletter
\g@addto@macro{\quote}{\singlespace*}
\makeatother


just adds an extra "*" in front of my quoted text.

...and what would be the valid/proper way to add \singlespace to every occurrence of a starred command like table* or chapter*?
NeuroTex
 
Posts: 1
Joined: Fri May 17th, 2013


Topic Tags

programmingspacing

Return to Text Formatting

Who is online

Users browsing this forum: No registered users and 3 guests