csquotes and spacing with \blockquote{}

1,982 views
Skip to first unread message

Kyle

unread,
Jul 1, 2010, 1:03:56 PM7/1/10
to LaTeX Users Group
Hi All,

In writing my dissertation, I have found the csquotes package great,
with one exception. While my main text needs to be double-spaced, all
block quotes must be single-spaced.

Below is a minimum example. What can I do to automatically turn all
block quotes single-spaced?

Sincere thanks in advance!

Kyle

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{memoir}

\usepackage{csquotes}
\SetBlockThreshold{0}

\DoubleSpacing

\begin{document}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
\blockquote{Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat.} Duis aute irure
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
nulla pariatur.

\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Note 1: Since I need to have precise control over what is an is not a
block quote, I have set the block threshold to 0, and use \enquote{}
when needing in-text quotation marks.)

Note 2: \SingleSpacing and \DoubleSpacing are the commands native to
the memoir class.

Daron Wilson

unread,
Jul 1, 2010, 10:47:51 PM7/1/10
to latexus...@googlegroups.com
Kyle,

I'm kind of a newbie at LaTeX, but I've been playing around with the csquotes package some, and I've found the extra documentation of csquotes to be really helpful. In the csquotes documentation folder of your latex installation you will find a file called tutorial.tex, and what I've done is latex that file to get the finished pdf output and then compare the two to see what Tex code generates what output. There are a significant number of comments and suggestions in the tutorial.tex document as well, and it is definitely worth reading.

For the latex package documentation, I'm not sure how to tell you to find it. I'm on a Mac, using MacTex, and for me there is a shortcut under HDD/Library/Tex/Documentation. If you're on Windows, I can't really help too much. Find out where your texmf tree is, and poke around in there. Once you find that, it looks like it would be something like

texmf-dist/doc/latex/ [on my machine, at least]

There should be folders for all the packages installed on your system, with various documentation files for each one.

The tutorial file tells you how to modify the blockquote environment, and my solution was taken from the tutorial (search it for "smallquote" to see the original code I've modified.)

%%================== Single Space Blockquote Trial

\documentclass{memoir}
\usepackage{csquotes}

\newenvironment*{singlespcquote}
{\quote\SingleSpacing}
{\endquote}

\SetBlockEnvironment{singlespcquote}
\SetBlockThreshold{0}

\DoubleSpacing

\begin{document}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
\blockquote{Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat

nulla pariatur. Duis aute irure. dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur} Duis aute irure dolor in reprehenderit

in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

\end{document}

%%===============================================

> --
> You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
> To post to this group, send email to latexus...@googlegroups.com.
> To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.
>

Peter Flynn

unread,
Jul 2, 2010, 7:33:12 AM7/2/10
to latexus...@googlegroups.com
On Fri, Jul 2, 2010 at 3:47 AM, Daron Wilson <daron....@gmail.com> wrote:
For the latex package documentation, I'm not sure how to tell you to find it.

The rules are:
  1. On Unix-based machines (Linux and Mac) you should be able to type texdoc packagename in a terminal window, and the PDF documentation for the package should be displayed. Not all packages have PDF docs yet, so you might have to look for packagename.dvi instead.
  2. On Windows machines, some editors have a link in their toolbar or menus to the documentation. Otherwise look in the TeX installation folder (eg C:\Program Files\MiKTeX...) for a doc subfolder.
  3. Packages should be distributed and installed with a .dtx file: run this through LaTeX to get the documentation. A few packages have documentation in the .sty file instead, at the end. Both types of file are available on CTAN.
  4. ALL packages should have documentation in their repository directory on CTAN. If you can't find something TeXish you want, CTAN is always the place to start, not Google.
///Peter


Kyle

unread,
Jul 2, 2010, 8:36:32 AM7/2/10
to LaTeX Users Group
You may be a newbie, Daron, but know way more than I do. It works
perfectly.

Thanks for the tips, both!

Kyle

On Jul 2, 7:33 am, Peter Flynn <anglebrac...@gmail.com> wrote:
> On Fri, Jul 2, 2010 at 3:47 AM, Daron Wilson <daron.wil...@gmail.com> wrote:
> > For the latex package documentation, I'm not sure how to tell you to find
> > it.
>
> The rules are:
>
>    1. On Unix-based machines (Linux and Mac) you should be able to typetexdoc
>    *packagename* in a terminal window, and the PDF documentation for the
>    package should be displayed. Not all packages have PDF docs yet, so you
>    might have to look for *packagename*.dvi instead.
>    2. On Windows machines, some editors have a link in their toolbar or
>    menus to the documentation. Otherwise look in the TeX installation folder
>    (eg C:\Program Files\MiKTeX...) for a doc subfolder.
>    3. Packages should be distributed and installed with a .dtx file: run
>    this through LaTeX to get the documentation. A few packages have
>    documentation in the .sty file instead, at the end. Both types of file
>    are available on CTAN.
>    4. *ALL* packages should have documentation in their repository directory
>    on CTAN <http://ctan.org/search.html>. If you can't find something TeXish
>    you want, CTAN is *always* the place to start, *not* Google.
>
> ///Peter
Reply all
Reply to author
Forward
0 new messages