From: Jeff R. <je...@jr...> - 2007-03-14 00:29:27
|
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 /* */ |