latex2e icon indicating copy to clipboard operation
latex2e copied to clipboard

page with longtable and float will overflow

Open annProg opened this issue 5 years ago • 16 comments

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

annProg avatar Jul 16 '19 10:07 annProg

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

jfbu avatar Sep 04 '19 16:09 jfbu

@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.

FrankMittelbach avatar Sep 04 '19 17:09 FrankMittelbach

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

stale[bot] avatar Jan 11 '20 18:01 stale[bot]

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

stale[bot] avatar Apr 06 '20 17:04 stale[bot]

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

  • longtable code
  • general code

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.

albert-github avatar Sep 10 '20 08:09 albert-github

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.

davidcarlisle avatar Sep 10 '20 08:09 davidcarlisle

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

albert-github avatar Sep 10 '20 08:09 albert-github

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

stale[bot] avatar Nov 09 '20 08:11 stale[bot]

how about moving that to dev @davidcarlisle?

FrankMittelbach avatar Nov 09 '20 16:11 FrankMittelbach

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

stale[bot] avatar Jan 09 '21 14:01 stale[bot]

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.

davidcarlisle avatar Mar 28 '21 19:03 davidcarlisle

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

stale[bot] avatar Jun 02 '21 15:06 stale[bot]

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.

davidcarlisle avatar Sep 01 '21 23:09 davidcarlisle

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

stale[bot] avatar Nov 16 '21 11:11 stale[bot]

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

stale[bot] avatar Aug 13 '22 04:08 stale[bot]