[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[3666] trunk/templates/demo/invoice.tex
- Subject: SF.net SVN: ledger-smb:[3666] trunk/templates/demo/invoice.tex
- From: ..hidden..
- Date: Thu, 18 Aug 2011 00:03:56 +0000
Revision: 3666
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3666&view=rev
Author: einhverfr
Date: 2011-08-18 00:03:56 +0000 (Thu, 18 Aug 2011)
Log Message:
-----------
Changing to longtable from tabularx for multi-page templates
Modified Paths:
--------------
trunk/templates/demo/invoice.tex
Modified: trunk/templates/demo/invoice.tex
===================================================================
--- trunk/templates/demo/invoice.tex 2011-08-17 23:14:29 UTC (rev 3665)
+++ trunk/templates/demo/invoice.tex 2011-08-18 00:03:56 UTC (rev 3666)
@@ -2,9 +2,11 @@
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
+\usepackage{longtable}
\usepackage[letterpaper,top=2cm,bottom=1.5cm,left=1.1cm,right=1.5cm]{geometry}
\usepackage{graphicx}
-
+\setlength\LTleft{0pt}
+\setlength\LTright{0pt}
\begin{document}
\pagestyle{myheadings}
@@ -25,30 +27,8 @@
<?lsmb INCLUDE letterhead.tex ?>
-% Disable old pagebreak handling
-%<?xlsmb pagebreak 65 27 37 ?>
-%\end{tabularx}
-%
-% \rule{\textwidth}{2pt}
-%
-% \vspace{0.2cm}
-%
-% \hfill
-% ..hidden..@{}}
-% & Subtotal & <?xlsmb sumcarriedforward ?> \\
-% \end{tabularx}
-%
-%\newpage
-%
-%\markboth{<?xlsmb company ?>\hfill <?xlsmb invnumber ?>}{<?xlsmb company ?>\hfill <?xlsmb invnumber ?>}
-%
..hidden..@{}}
-% \textbf{Pos} & \textbf{Number} & \textbf{Description} & & \textbf{Qt'y} &
-% \textbf{Unit} & \textbf{Price} & \textbf{Disc \%} & \textbf{Amount} \\ [0.5em]
-% & carried forward from page <?xlsmb lastpage ?> & & & & & & & <?xlsmb sumcarriedforward ?> \\ [0.5em]
-%<?xlsmb end pagebreak ?>
+\markboth{<?lsmb company ?>\hfill <?lsmb invnumber ?>}{<?lsmb company ?>\hfill <?lsmb invnumber ?>}
-
\vspace*{0.5cm}
\parbox[t]{.5\textwidth}{
@@ -144,12 +124,18 @@
\vspace{1cm}
..hidden..@{}}
- \textbf{<?lsmb text('Item') ?>} & \textbf{<?lsmb text('Number') ?>}
- & \textbf{<?lsmb text('Description') ?>} & & \textbf{<?lsmb text('Qty') ?>} &
- \textbf{<?lsmb text('Unit') ?>} & \textbf{<?lsmb text('Price') ?>} &
- \textbf{<?lsmb text('Disc %') ?>}
- & \textbf{<?lsmb text('Amount') ?>} \\ [0.5em]
..hidden..|llcrlrr|r}
+
+ \textbf{<?lsmb text('Item') ?>}
+ & \textbf{<?lsmb text('Number') ?>}
+ & \textbf{<?lsmb text('Description') ?>}
+ & \textbf{<?lsmb text('Delivery') ?>}
+ & \textbf{<?lsmb text('Qty') ?>}
+ & \textbf{<?lsmb text('Unit') ?>}
+ & \textbf{<?lsmb text('Price') ?>}
+ & \textbf{<?lsmb text('Disc %') ?>}
+ & \textbf{<?lsmb text('Amount') ?>}
+\endhead
<?lsmb FOREACH number ?>
<?lsmb lc = loop.count - 1 ?>
<?lsmb runningnumber.${lc} ?> &
@@ -162,7 +148,7 @@
<?lsmb discountrate.${lc} ?> &
<?lsmb linetotal.${lc} ?> \\
<?lsmb END ?>
-\end{tabularx}
+\end{longtable}
\parbox{\textwidth}{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.