latex3 / latex2e

The LaTeX2e kernel
https://www.latex-project.org/
LaTeX Project Public License v1.3c
1.82k stars 251 forks source link

page with longtable and float will overflow #158

Open annProg opened 4 years ago

annProg commented 4 years ago

Brief outline of the bug

when longtable and float in single page, will cause error page break. Some content will overflow.

This bug with fix is described in detail at: https://www.latex-project.org/cgi-bin/ltxbugs2html.new?pr=tools/3512 . And it provide a bugfix, but it not fix this bug completely. e.g. The MWE below

Minimal example showing the bug

\documentclass[a4paper,12pt]{article}
\usepackage{longtable}
\usepackage{caption}
\newcommand{\baz}{foo foo foo foo foo foo foo foo}
\newcommand{\qux}{\baz\baz\baz\baz\baz\baz\baz\baz}
\begin{document}

\begin{figure}
\caption{Test Figure}
\vspace{10cm}
\end{figure}

\baz

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

\baz

\begin{figure}
\caption{Test Figure 2}
\vspace{10cm}
\end{figure}

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

Log file (required) and possibly PDF file

1.log 1.pdf

jfbu commented 4 years ago

The overflow does not show if the first figure uses [htbp] argument.

FrankMittelbach commented 4 years ago

@jfbu that because it then uses h and that means it is not really a float and \@colroomisn't changing but the reduction happens within the text, i.e. it then behave like any other text in this place.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity.

albert-github commented 3 years ago

In doxygen we use a frozen version of longtable (due to the fact that the newer version of LaTeX is giving problems with the tabu package) so it is of interest to know whether this problem will be addressed in

For doxygen a proposed patch has been made, see https://github.com/doxygen/doxygen/pull/8025, but seen the issue here I'm not sure if that fix is a correct fix or not.

davidcarlisle commented 3 years ago

there is a 4.14 release in development see https://github.com/latex3/latex2e/tree/longtable4.14/required/tools It would be interesting to know if that version works OK for you, it is planned to release it with a latex-dev release at some point after the 2010-10-01 LaTeX release.

albert-github commented 3 years ago

@davidcarlisle Thanks I've forwarded the request to the provider of the proposed patch.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity.

FrankMittelbach commented 3 years ago

how about moving that to dev @davidcarlisle?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity.

davidcarlisle commented 3 years ago

This still needs some more inversigation, sorry. Hopefully not as long as the fall releasse, but pushing the milestone back so this does not block the process.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity.

davidcarlisle commented 2 years ago

there is a 4.14 release in development see https://github.com/latex3/latex2e/tree/longtable4.14/required/tools It would be interesting to know if that version works OK for you, it is planned to release it with a latex-dev release at some point after the 2010-10-01 LaTeX release.

That release has been out for a while which fixes some interactions with floats but this test file still fails, needs further investigation, rescheduling for spring release.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity.

josephwright commented 8 months ago

Is this something that needs v5?