On 9 Nov 2006, at 04:21, Dr Eberhard Lisse wrote:
> on 11/8/06 2:07 PM Dr Eberhard W Lisse said the following:
>>>> I indeed use longtable and leave the page breaks to LaTeX.
>
> ...
> \begin{longtable}{lllrlrrr}
>    ...
>     \textbf{Code}&
>     \textbf{Description}&
>     \ifthenelse{\lengthtest{<%subtotal%>pt<0pt}}{}{\textbf{Date}}&
>     \textbf{Qt'y}&
>     \textbf{Unit}&
>     \textbf{Price}&
>     \textbf{Disc}&
>     \textbf{Amount}\tabularnewline
> \endhead
> ...
> \multicolumn{3}{l}{} &
> \multicolumn{4}{l}{\textbf{Subtotal}}&\textbf{<%subtotal%>} 
> \tabularnewline
> <%foreach tax%>
> \multicolumn{3}{l}{}&\multicolumn{4}{l}{<%taxdescription%> on
> <%taxbase%> } & <%tax%>\tabularnewline
> <%end tax%>
> <%if paid%>
> \multicolumn{3}{l}{} &
> \multicolumn{4}{l}{\textbf{Paid}}&<%paid%>\tabularnewline
> <%end paid%>
> <%if total%>
>     \multicolumn{3}{l}{} &
> \multicolumn{4}{l}{\textbf{Total}}&\textbf{<%total%>}\tabularnewline
> <%end total%>
> <%if not total%>
>     \multicolumn{3}{l}{} &
> \multicolumn{4}{l}{\textbf{Total}}&0.00\tabularnewline
> <%end total%>
> &&&&&&&\tabularnewline
> \multicolumn{8}{r}{All prices in \textbf{<%currency%>}
> funds.}\tabularnewline
> \multicolumn{8}{l}{\ifthenelse{\lengthtest{<%subtotal%>pt<0pt}}{}{Due
> Date: \textbf{<%duedate%>}, Terms: Net \textbf{<%terms%>}
> days}}\tabularnewline
> \endlastfoot
> ...
> <%foreach number%>
>    <%number%> &
>    <%description%> &
>    \ifthenelse{\lengthtest{<%subtotal%>pt<0pt}}{}{<%deliverydate%>} &
>    <%qty%> &
>    <%unit%> &
>    \nprounddigits{2}\numprint{<%sellprice%>} &
>    \nprounddigits{2}\numprint{<%discount%>} &
>    <%linetotal%>\tabularnewline
> <%end number%>
> \end{longtable}

If the last item comes at the very foot of the page, and the page  
breaks with only the lastfoot to display, is there any logic to  
prevent the head being shown at the top of the next page?

I have not used your template verbatim - although it is quite  
beautiful, it is not quite my style of formatting, so I started again  
from scratch and have used yours only for reference.

I have found one of my invoices has two pages.
On the first is:

   Part Description Price Quantity Amount
   101  Fangle      £1    3        £3
   237  Wonkle      £2    1        £2
   ...
   093  Chocolate   £0.5  3        £1.5

and on the second is only:

   Part Description Price Quantity Amount
                          Total    £6.5

(I have laid out these examples so they make sense if viewed in a  
fixed-width font).

I have been so impressed by your responses to my recent questions  
that I cannot believe that you have missed this, yet I cannot quickly  
see how you have solved this problem regarding invoices of a certain  
length.

Stroller.
  
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sql-ledger-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sql-ledger-users

Reply via email to