davidcarlisle / dpctex

Assorted TeX packages
93 stars 30 forks source link

text overflow when longtable is surrounded by floats #6

Open ynco opened 7 years ago

ynco commented 7 years ago

Dear David,

The following variation of the sample file provided in LaTeX bugs database entry tools/3512 still causes text to overflow the bottom of the page.

\documentclass[a4paper,12pt]{article}
\usepackage{longtable}
% Viel Text erzeugen
\newcommand{\baz}{foo foo foo foo foo foo foo foo}
\newcommand{\qux}{\baz\baz\baz\baz\baz\baz\baz\baz}
\begin{document}

\begin{figure}\vspace{5cm}\end{figure}

\begin{longtable}{llll}
bar & bar & bar & bar
\end{longtable}

\begin{figure}\vspace{5cm}\end{figure}

\qux\qux\qux\qux\qux\qux\qux\qux
\qux\qux\qux\qux\qux\qux\qux\qux
\end{document}

I believe this behaviour is what the following comment from StackExchange question 203629 also refers to:

When I say it fixed it I mean it fixed my issue where I had 1 float and 1 longtable, not 1 long table with a float before and after. – Dalupus Oct 18 '14 at 15:33

Cheers, Yvan