Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
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 '13 at 15:26
add comment

2 Answers 2

up vote 5 down vote accepted

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.

share|improve this answer
    
It worked. 10x! –  Krt_Malta Feb 11 '13 at 15:34
add comment

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}
share|improve this answer
1  
    
Is it the same with \parindent? –  Tobi Feb 12 '13 at 9:12
    
@Tobi Yes, but minipage's \parindent matches quote's. –  lockstep Feb 12 '13 at 9:28
    
OK, thank you :-) –  Tobi Feb 12 '13 at 14:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.