[Tex/LaTex] How to modify spacing around quotation environment

environmentsquotingspacing

I am almost there in my quest to reproduce the rather compact layout of the book I'm translating… one thing to go, though:

I successfully used the enumitem package to modify the vertical and horizontal spacing of the various list environments.

But how do I modify the vertical and horizontal spacing of the quotation environment? I have found lots of information on how to do it for theorems and formulas etc., but none of that seems to apply for quotation (or quote, for that matter).

\documentclass[twocolumn]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{enumitem}
\setlist{leftmargin=*,parsep=0pt,itemsep=2pt,topsep=2pt,partopsep=0pt}
\setlist[enumerate]{widest=0}

\newcommand{\sometext}{Some random text. Not using lipsum as I don't need that much text.}

\begin{document}
\sometext
\begin{itemize}
\item One item.
\item Another item.
\end{itemize}
\sometext
\begin{quotation}
\textbf{Note:} \emph{This has too much whitespace around it.}
\end{quotation}
\sometext
\end{document}

enter image description here

Best Answer

The quoting package provides a quoting environment with customizable font, margins, spacing... Just load it with \usepackage{quoting} and use either \begin{quoting}[vskip=0pt] ... \end{quoting} or set it up globally with \quotingsetup{vskip=0pt}:

\documentclass[twocolumn]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{enumitem}
\setlist{leftmargin=*,parsep=0pt,itemsep=2pt,topsep=2pt,partopsep=0pt}
\setlist[enumerate]{widest=0}

\usepackage{quoting}
\quotingsetup{vskip=0pt}

\newcommand{\sometext}{Some random text. Not using lipsum as I don't need that much text.}

\begin{document}
\sometext
\begin{itemize}
\item One item.
\item Another item.
\end{itemize}
\sometext
\begin{quoting}
\textbf{Note:} \emph{This has no extra white\-space around it.}
\end{quoting}
\sometext
\end{document}

output result

Related Question