I've got the following problem:
The content of a page overflows the footnote area. So far it has only happened when the last thing on the page is a blockquote. Here is a screenshot of what I am experiencing:
You can see a paragraph above the blockquote.
In my template I have the following code, which I suspect causes this problem:
\definecolor{quotecolor}{HTML}{686868}
\newfontfamily\quotefont[Color=quotecolor]{Ubuntu}
\AtBeginEnvironment{quote}{\quotefont\small\it\color{quotecolor}}
\AtBeginEnvironment{quote}{\vspace{-0.7\baselineskip}}% Stuff before {quote}
\AtEndEnvironment{quote}{\vspace{-0.7\baselineskip}}% Stuff after {quote}
However, without this code blockquotes seem to take way too much space vertically.
What can I do to fix this?
So far I only have the following two ideas:
- somehow increase the punishment for content overflowing into the footnote area
- using a different method for reducing the vertical white space around blockquotes
I'll try to come up with a MWE, although it could be very difficult to find a way to trick Latex into making the same mistake. I cannot share the complete document.
My build process is a bit complicated, but in the end everything is Latex code before being compiled to PDF, so I think this is a valid question for this platform:
- reStructuredText is parsed and partially replaced with latex code, to enable document internal links and citations
- the partly converted code is then converted completely to latex by Pandoc (using the template)
- the resulting latex code is then compiled to pdf using latexmk
I am able to get the last stage latex code file, but as I said, cannot share the complete file, nor significant portions and if such a thing is needed will need to come up with an MWE.

\vspaceto the environment makes latex think the block is smaller than it really is. a better way to approach this is to reset the default spacing at the top and bottom of the list structure, on whichquoteis built. this question explains how the various spacing elements work: \topsep, \itemsep, \partopsep and \parsep - what does each of them mean (and what about the bottom)? – barbara beeton Jan 31 '17 at 18:46\topsepinstead and then at the end of the quoting environment setting it to the old value again solved the problem and it seems a better practice than what I had before. – Zelphir Kaltstahl Feb 01 '17 at 12:12