1\documentclass{scrartcl} 2\usepackage[latin1]{inputenc} 3\usepackage{tabularx} 4\usepackage[letterpaper,top=2cm,bottom=-3cm,left=1.1cm,right=1.5cm]{geometry} 5\usepackage{graphicx} 6 7\begin{document} 8 9\pagestyle{myheadings} 10\thispagestyle{empty} 11 12\fontfamily{cmss}\fontsize{9pt}{9pt}\selectfont 13 14\parbox[t]{12cm}{ 15 <%company%> 16 17 <%address%>} 18\hfill 19\parbox[t]{6cm}{\hfill <%source%>} 20 21\vspace*{0.6cm} 22 23<%text_amount%> \dotfill <%decimal%>/100 \makebox[0.5cm]{\hfill} 24 25\vspace{0.5cm} 26 27\hfill <%datepaid%> \makebox[2cm]{\hfill} <%amount%> 28 29% different date format for datepaid 30% <%DD%><%MM%><%YYYY%> 31 32\vspace{0.5cm} 33 34<%name%> 35 36<%address1%> 37 38<%address2%> 39 40<%city%> 41<%if state%> 42\hspace{-0.1cm}, <%state%> 43<%end state%> 44<%zipcode%> 45 46<%country%> 47 48\vspace{1.8cm} 49 50<%memo%> 51 52\vspace{0.8cm} 53 54<%company%> 55 56\vspace{0.5cm} 57 58<%name%> \hfill <%datepaid%> \hfill <%source%> 59 60\vspace{0.5cm} 61\begin{tabularx}{\textwidth}{lXrr@{}} 62\textbf{Invoice No.} & \textbf{Invoice Date} 63 & \textbf{Due} & \textbf{Applied} \\ 64<%foreach invnumber%> 65<%invnumber%> & <%invdate%> \dotfill 66 & <%due%> & <%paid%> \\ 67<%end invnumber%> 68\end{tabularx} 69 70\vspace{1cm} 71 72<%memo%> 73 74\vfill 75 76\end{document} 77 78