summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorjeff <jeff>2008-10-10 21:30:12 +0000
committerjeff <jeff>2008-10-10 21:30:12 +0000
commit177001fe6d444a507e2929c416ef3d4f5f108643 (patch)
treec3b7a8570e370d483cbf5e3b4e05e7953ba3dbb9 /conf
parent2db1910ce6cdc5cc583ba07c0c15661685d98e46 (diff)
avoid overprinting remittance coupons
Diffstat (limited to 'conf')
-rw-r--r--conf/invoice_latex2
-rw-r--r--conf/longtable.sty.patch18
2 files changed, 20 insertions, 0 deletions
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@