From 177001fe6d444a507e2929c416ef3d4f5f108643 Mon Sep 17 00:00:00 2001 From: jeff Date: Fri, 10 Oct 2008 21:30:12 +0000 Subject: [PATCH] avoid overprinting remittance coupons --- conf/invoice_latex | 2 ++ conf/longtable.sty.patch | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 conf/longtable.sty.patch diff --git a/conf/invoice_latex b/conf/invoice_latex index fe910b24e..d04507d99 100644 --- a/conf/invoice_latex +++ b/conf/invoice_latex @@ -237,6 +237,8 @@ Terms: [@-- $terms --@]\\ } $OUT .= '\pagebreak' if $section{'post_total'}; $OUT .= '\captionsetup{singlelinecheck=false,justification=raggedright,font={Large,sc,bf}}'; + $OUT .= '\ifthenelse{\equal{\thepage}{1}}{\setlength{\LTextracouponspace}{\extracouponspace}}{\setlength{\LTextracouponspace}{0pt}}' + if $coupon; $OUT .= '\begin{longtable}{cllllllr}'; $OUT .= '\caption*{ '; $OUT .= ($section->{'description'}) ? $section->{'description'}: 'Charges'; diff --git a/conf/longtable.sty.patch b/conf/longtable.sty.patch new file mode 100644 index 000000000..9d3a57343 --- /dev/null +++ b/conf/longtable.sty.patch @@ -0,0 +1,18 @@ +--- 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@ -- 2.11.0