Created
May 15, 2019 06:47
-
-
Save KmolYuan/183a6443258c13e9afd421f2f8242e04 to your computer and use it in GitHub Desktop.
Latex longtable.sty patch for the error of table overflow.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /usr/share/texmf/tex/latex/tools/longtable.sty 2001-09-27 06:50:51.000000000 -0400 | |
+++ longtable.sty 2003-03-09 15:34:04.000000000 -0500 | |
@@ -160,7 +160,7 @@ | |
\ifdim \dimen@>\z@\vfil\break\fi | |
\global\@colroom\@colht | |
\ifvoid\LT@foot\else | |
- \advance\vsize-\ht\LT@foot | |
+ \global\advance\vsize-\ht\LT@foot | |
\global\advance\@colroom-\ht\LT@foot | |
\dimen@\pagegoal\advance\dimen@-\ht\LT@foot\pagegoal\dimen@ | |
\maxdepth\z@ | |
@@ -189,9 +189,13 @@ | |
\LT@final@warn | |
\fi | |
\endgraf\penalty -\LT@end@pen | |
+ \ifvoid\LT@foot\else | |
+ \global\advance\vsize\ht\LT@foot | |
+ \global\advance\@colroom\ht\LT@foot | |
+ \dimen@\pagegoal\advance\dimen@\ht\LT@foot\pagegoal\dimen@ | |
+ \fi | |
\endgroup | |
\global\@mparbottom\z@ | |
- \pagegoal\vsize | |
\endgraf\penalty\z@\addvspace\LTpost | |
\ifvoid\footins\else\insert\footins{}\fi} | |
\def\LT@nofcols#1&{% | |
@@ -388,18 +392,17 @@ | |
\setbox\z@\vbox{\unvbox\@cclv}% | |
\ifdim \ht\LT@lastfoot>\ht\LT@foot | |
\dimen@\pagegoal | |
+ \advance\dimen@\ht\LT@foot | |
\advance\dimen@-\ht\LT@lastfoot | |
\ifdim\dimen@<\ht\z@ | |
\setbox\@cclv\vbox{\unvbox\z@\copy\LT@foot\vss}% | |
\@makecol | |
\@outputpage | |
+ \global\vsize\@colroom | |
\setbox\z@\vbox{\box\LT@head}% | |
\fi | |
\fi | |
- \global\@colroom\@colht | |
- \global\vsize\@colht | |
- \vbox | |
- {\unvbox\z@\box\ifvoid\LT@lastfoot\LT@foot\else\LT@lastfoot\fi}% | |
+ \unvbox\z@\ifvoid\LT@lastfoot\copy\LT@foot\else\box\LT@lastfoot\fi | |
\fi | |
\else | |
\setbox\@cclv\vbox{\unvbox\@cclv\copy\LT@foot\vss}% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apply patch: