summaryrefslogtreecommitdiff
path: root/conf/longtable.sty.patch
blob: dd449805c296732c596b64ded4b4b72c151fb671 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- longtable.orig      2004-03-13 21:37:06.000000000 -0500
+++ longtable.sty       2008-10-10 16:32:25.000000000 -0400
@@ -55,6 +55,7 @@
 \newcount\LTchunksize \LTchunksize=20
 \let\c@LTchunksize\LTchunksize
 \newdimen\LTcapwidth  \LTcapwidth=4in
+\newlength\LTextracouponspace
 \newbox\LT@head
 \newbox\LT@firsthead
 \newbox\LT@foot
@@ -146,6 +147,7 @@
   \advance\dimen@ \ht\ifvoid\LT@firsthead\LT@head\else\LT@firsthead\fi
   \advance\dimen@ \dp\ifvoid\LT@firsthead\LT@head\else\LT@firsthead\fi
   \advance\dimen@ \ht\LT@foot
+  \advance\dimen@ \LTextracouponspace
   \dimen@ii\vfuzz
   \vfuzz\maxdimen
     \setbox\tw@\copy\z@
@@ -159,6 +161,10 @@
   \advance\dimen@ -\pagegoal
   \ifdim \dimen@>\z@\vfil\break\fi
       \global\@colroom\@colht
+  \ifnum\thepage=1
+    \advance\vsize-\LTextracouponspace
+    \dimen@\pagegoal\advance\dimen@-\LTextracouponspace\pagegoal\dimen@
+  \fi
   \ifvoid\LT@foot\else
     \advance\vsize-\ht\LT@foot
     \global\advance\@colroom-\ht\LT@foot