3

I'm using the book class and I would like to change the default spacing before and after a quote environment.

1
  • Welcome to TeX.SE. Your objective is a bit vague: Would you like to increase or decrease the vertical whitespace above and below a quote environment? Should the adjustment factor be multiplicative or additive? What line-spacing is in effect: Single-spacing, double-spacing, or something else? Please elaborate.
    – Mico
    Jun 4, 2015 at 4:40

1 Answer 1

2

Tapping into the beginning/ending part of an environment in order to insert content (spacing, for example), is made easy using etoolbox:

enter image description here

\documentclass{book}
\usepackage{lipsum,etoolbox}
\AtBeginEnvironment{quote}{\vspace{2\baselineskip}}% Stuff before {quote}
\AtEndEnvironment{quote}{\vspace{1.5\baselineskip}}% Stuff after {quote}
\begin{document}

\lipsum[1]

\begin{quote}
  \lipsum[2]
\end{quote}

\lipsum[3]

\end{document}
2
  • Non-ideal about this approach is that it only add (subtracts) from the given space rather than sets the space itself.
    – Daniel
    Sep 3, 2023 at 9:01
  • 1
    @Daniel: Consider creating your own quotation environment then... using something like this.
    – Werner
    Sep 4, 2023 at 16:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .