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
29 \begin{minipage}[t]{0.6\linewidth}
32 \begin{tabular}[t]{p{1.7cm}p{1.7cm}p{2.4cm}p{1.7cm}}\\
33 \centering{Número} & \centering{Número} & \centering{Fecha} & C. Cliente\\
34 \centering{<%ordnumber%>} & \centering{<%invnumber%>} & \centering{<%invdate%>} & \centering{<%customer_id%>}
38 \begin{minipage}[t]{0.4\linewidth}
39 \textbf{A L B A R Á N}
48 <%shiptocity%> <%shiptostate%> <%shiptozipcode%>
56 \renewcommand{\headrulewidth}{0cm}
57 \renewcommand{\footrulewidth}{0cm}
59 %\markboth{\usebox{\hdr}}{\usebox{\hdr}}
60 %\thispagestyle{empty} %use this with letterhead paper
62 <%pagebreak 90 27 37%>
68 %\markboth{\usebox{\hdr}}{\usebox{\hdr}}
69 \begin{tabular*}{\textwidth}{rp{\descrwidth}rr}
70 \textbf{Cant.} & \textbf{Descripción} & \textbf{Precio} & \textbf{Importe} \\ \hline
73 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
78 \begin{tabular*}{\textwidth}{rp{\descrwidth}rr}
79 \textbf{Cant.} & \textbf{Descripción} & \textbf{Precio} & \textbf{Importe} \\ \hline
81 <%qty%> & <%description%> & <%sellprice%> & <%linetotal%> \\
95 \begin{tabularx}{10cm}{Xr@{}}
96 \textbf{Base imponible} & \textbf{<%subtotal%>} \\
98 IVA (<%taxrate%>\%) sobre <%taxbase%> & <%tax%> \\
101 \textbf{Total} & \textbf{<%invtotal%>} \\
105 %\renewcommand{\thefootnote}{\fnsymbol{footnote}}