1 \documentclass[a4paper,oneside]{article}
4 \usepackage[latin1]{inputenc}
5 \usepackage{marvosym} % Euro \EUR
7 \setlength{\topmargin}{0cm}
8 \setlength{\topskip}{0cm}
9 \setlength{\headheight}{0cm}
10 \setlength{\headsep}{0.5cm}
11 \setlength{\textheight}{24.2cm}
12 \setlength{\textwidth}{19cm}
13 \setlength{\oddsidemargin}{-1.4cm}
14 \setlength{\evensidemargin}{-1.4cm}
15 \setlength{\footskip}{1cm}
17 \setlength{\parindent}{0pt}
18 \renewcommand{\baselinestretch}{1}
21 \newlength{\descrwidth}\setlength{\descrwidth}{13.0cm}
25 \fontfamily{cmss}\fontshape{n}\selectfont
28 \begin{minipage}[t]{0.6\linewidth}
31 \begin{tabular}[t]{p{1.7cm}p{2.4cm}p{1.7cm}}\\
32 \centering{Número} & \centering{Fecha} & C. Cliente\\
33 \centering{<%ordnumber%>} & \centering{<%orddate%>} & \centering{<%vendor_id%>}
37 \begin{minipage}[t]{0.4\linewidth}
49 <%city%> <%state%> <%zipcode%>
59 \renewcommand{\headrulewidth}{0cm}
60 \renewcommand{\footrulewidth}{0cm}
62 %\markboth{\usebox{\hdr}}{\usebox{\hdr}}
63 %\thispagestyle{empty} %use this with letterhead paper
65 <%pagebreak 90 27 37%>
69 %\markboth{\usebox{\hdr}}{\usebox{\hdr}}
72 \begin{tabular*}{\textwidth}{rp{\descrwidth}rr}
73 \textbf{Cant.} & \textbf{Descripción} & \textbf{Precio} & \textbf{Importe} \\ \hline
76 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
81 \begin{tabular*}{\textwidth}{rp{\descrwidth}rr}
82 \textbf{Cant.} & \textbf{Descripción} & \textbf{Precio} & \textbf{Importe} \\ \hline
84 <%qty%> & <%description%> & <%sellprice%> & <%linetotal%> \\
98 \begin{tabularx}{10cm}{Xr@{}}
99 \textbf{Base imponible} & \textbf{<%subtotal%>} \EUR \\
101 IVA (<%taxrate%>\%) sobre <%taxbase%> & <%tax%> \EUR\\
104 \textbf{Total} & \textbf{<%ordtotal%>} \EUR\\
108 %\renewcommand{\thefootnote}{\fnsymbol{footnote}}