|
From: C. D. H. <Du...@Du...> - 2007-03-14 03:02:58
|
Jeff Roberts wrote:
> Hi Everyone
>
> I modified my latex file to print cheques in the new format required
> starting this spring in Canada. Everything seems to work as long as I am
> only paying one invoice. If I pay two or three invoices the extra lines
> printed in the top third of the page push the information down in the
> cheque body. If I pay one invoice everything lines up, if i pay two then
> the cheque body is down a line, by the time i try to pay three cheques
> all at once the cheque information is totally out of place.
>
> I tried to find out how to correct this by reading my copy of "The not
> so short introduction to Latex" but couldn't figure it out. I think it
> may have to do with boxes?
>
> Here is my cheque code:
>
> /*\documentclass{scrartcl}
> \usepackage[latin1]{inputenc}
> \usepackage{tabularx}
> \usepackage[letterpaper,top=2cm,bottom=-3cm,left=2.25cm,right=2cm]{geometry}
> \usepackage{graphicx}
>
> \begin{document}
>
> \pagestyle{myheadings}
> \thispagestyle{empty}
>
> \fontfamily{cmss}\fontsize{12pt}{12pt}\selectfont
>
> <%company%>
>
> \vspace{0.5cm}
>
> <%name%> \hfill <%datepaid%> \hfill <%source%>
>
> \vspace{0.5cm}
> \begin{tabularx}{\textwidth}{lXrr@{}}
> \textbf{Invoice \#} & \textbf{Invoice Date}
> & \textbf{Amount Due} & \textbf{Applied} \\
> <%foreach invnumber%>
> <%invnumber%> & <%invdate%> \dotfill
> & <%due%> & <%paid%> \\
> <%end invnumber%>
> \end{tabularx}
>
> \vspace{1cm}
>
> \text{Memo: } \
> <%memo%>
>
> \vspace*{3.5cm}
>
> \hfill <%source%>
>
> \vspace*{.75cm}
>
> \hfill <%datepaid%>
>
> \vspace*{1.75cm}
>
> <%text_amount%> \dotfill <%decimal%>/100 \makebox[4cm]{\hfill}
>
> % \hfill <%datepaid%> \makebox[2cm]{\hfill} <%amount%>
>
> \hfill <%amount%> \makebox[1cm]{\hfill}
>
> % different date format for datepaid
> % <%DD%><%MM%><%YYYY%>
>
> %\vspace{0.25cm}
>
> <%name%>
>
> <%address1%>
> <%address2%>
>
> <%city%>
> <%if state%>
> \hspace{-0.1cm}, <%state%>
> <%end state%>
> <%zipcode%>
>
> <%country%>
>
> \vspace{0.25cm}
>
> <%memo%>
>
> \vfill
>
> \end{document}
> */
> Thanks in advance
>
> Jeff Roberts
>
Jeff - There's always a million ways to skin a cat, but we found the
easiest way to handle this specific problem was with the Latex tabularx
package. We use 3 part checks, with the actual check in the middle.
We're limited to 20 invoices / check, but other then that it works like
a charm. Drop me a line off list if you'd like to take a look at what
we did.
Dunc
|