3

I have a \begin{quote} ... \end{quote} which I would not like to be broken in separate pages. So if it's at the end of a page and there's not enough space, it would go into a new page automatically. Is it possible to achieve this? I've looked around and found no clues up to now.

Obviously, I'm not after the \newpage solution. I'd like something automated.

1
  • Usually quote is for short quotations (one or more), whereas quotation is for longer ones. You can look at the quoting package for customizing the appearance of quotations.
    – egreg
    Feb 11, 2013 at 15:26

2 Answers 2

5

You can wrap the quote in a {minipage}, so it won’t break across pages.

\documentclass{article}

\usepackage{lipsum}% some blind text

\begin{document}
\lipsum[1-4]
\begin{quote}
    \begin{minipage}{\linewidth}
        \lipsum[1-2]
    \end{minipage}
\end{quote}
\lipsum[1-4]
\end{document}

Note that the {minipage} must be inside of {quote} and that the environment has an mandatory argument that specifies the width of the {minipage}, in this case it should be \linewidth. And please see locksteps answer below about the \parskip drawback.

0
3

Tobi's solution has one minor drawback: The minipage environment features a \parskip of 0pt, so paragraph breaks in a quote environment using a minipage may go unnoticed. Remedy: save the value of \parskip within quote, but before starting the minipage, and restore it within the minipage.

\documentclass{article}

\usepackage{lipsum}% some blind text

\begin{document}
\lipsum[1-4]
\begin{quote}
    \edef\normalparskip{\the\parskip}
    \begin{minipage}{\linewidth}
        \setlength{\parskip}{\normalparskip}
        \lipsum[1-2]
    \end{minipage}
\end{quote}
\lipsum[1-4]
\end{document}
3

You must log in to answer this question.

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