[% USE Latex -%] [% FILTER latex("pdf") -%] % $AFresh1: invoice.tex.tt,v 1.1 2011/03/19 22:27:16 andrew Exp $ \documentclass[oneside]{report} \usepackage[top=1in, bottom=1in, left=.75in, right=.75in]{geometry} \usepackage{multicol} \usepackage{fancyhdr} \usepackage{invoice} \pagestyle{fancy} \lhead{[% from.name %]} \chead{Invoice \#\textbf{[% id | format('%06d') %]}} \rhead{Page {\thepage}} \lfoot{[% info1 %]} \cfoot{} \rfoot{[% info2 %]} \begin{document} \thispagestyle{empty} \begin{multicols}{2} {\large [% from.name %] [% IF from.attn -%] [% from.attn %] [% END -%] [% from.addr1 %] [% IF from.addr2 -%] [% from.addr2 %] [% END -%] [% from.city %], [% from.state %] \ [% from.zip %] } \vspace{.75in} {\Large [% to.name %] [% IF to.attn -%] [% to.attn %] [% END -%] [% to.addr1 %] [% IF to.addr2 -%] [% to.addr2 %] [% END -%] [% to.city %], [% to.state %] \ [% to.zip %] } \columnbreak \begin{flushright} \begin{tabular}{ | p{3in} | } \hline LOGO \\ \hline \end{tabular} \hfill \vfill \begin{tabular}{ | r l | } \hline Invoice No. & \textbf{[% id | format('%06d') %]} \\ Invoice Date & \today \\ Page & {\thepage} \\ \hline \multicolumn{2}{|c|}{[% info1 %]} \\ \multicolumn{2}{|c|}{[% info2 %]} \\ \hline \end{tabular} \end{flushright} \end{multicols} \begin{invoice}{USD}{0} [%- FOR p IN projects %] \ProjectTitle{[% p.title %]} [%- FOR f IN p.fees %] \Fee{[% f.contents %]}{[% f.rate %]}{[% f.count %]} [%- END -%] [%- FOR e IN p.expenses %] \EBC{[% e.contents %]}{[% e.amount %]} [%- END -%] [%- FOR d IN p.discounts %] \Discount{[% d.contents %]}{[% d.amount %]} [%- END -%] [%- END %] \end{invoice} \end{document} [% END -%]