1\documentclass[twoside]{scrartcl}
2\usepackage[frame]{xy}
3\usepackage[frenchb]{babel}
4\usepackage[latin1]{inputenc}
5\usepackage{tabularx}
6\setlength{\voffset}{0.5cm}
7\setlength{\hoffset}{-2.0cm}
8\setlength{\topmargin}{0cm}
9\setlength{\headheight}{0.5cm}
10\setlength{\headsep}{1cm}
11\setlength{\topskip}{0pt}
12\setlength{\oddsidemargin}{1.0cm}
13\setlength{\evensidemargin}{1.0cm}
14\setlength{\textwidth}{19.2cm}
15\setlength{\textheight}{24.5cm}
16\setlength{\footskip}{1cm}
17\setlength{\parindent}{0pt}
18\renewcommand{\baselinestretch}{1}
19\begin{document}
20
21\newlength{\descrwidth}\setlength{\descrwidth}{10cm}
22
23\newsavebox{\hdr}
24\sbox{\hdr}{
25  \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
26
27  \parbox{\textwidth}{
28    \parbox[b]{12cm}{
29      <%company%>
30
31      <%address%>}\hfill
32    \begin{tabular}[b]{rr@{}}
33    T�l�phone & <%tel%>\\
34    T�l�copieur & <%fax%>
35    \end{tabular}
36
37    \rule[1.5ex]{\textwidth}{0.5pt}
38  }
39}
40
41\fontfamily{cmss}\fontshape{n}\selectfont
42
43\markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
44
45\pagestyle{myheadings}
46%\thispagestyle{empty}     use this with letterhead paper
47
48<%pagebreak 65 27 37%>
49\end{tabular*}
50
51\newpage
52
53\markright{<%company%>\hfill <%invnumber%>}
54
55\vspace*{-12pt}
56
57\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rll@{}}
58  \textbf{Num�ro} & \textbf{Description} & \textbf{Qt�} &
59    \textbf{Unit�} & \textbf{Bin} \\
60<%end pagebreak%>
61
62
63\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
64
65\vspace*{2cm}
66
67<%shiptoname%>
68
69<%shiptoaddr1%>
70
71<%shiptoaddr2%>
72
73<%shiptoaddr3%>
74
75<%shiptoaddr4%>
76
77\vspace{3.5cm}
78
79\textbf{L I S T E} \parbox{0.3cm}{\hfill} \textbf{D E}
80\parbox{0.3cm}{\hfill} \textbf{P A Q U E T A G E}
81
82\hfill
83\begin{tabular}[t]{l@{\hspace{0.3cm}}l}
84  \textbf{Date de facture} & <%invdate%> \\
85  \textbf{Num�ro de facture} & <%invnumber%> \\
86  \textbf{Num�ro de client} & <%customer_id%>
87\end{tabular}
88
89\vspace{1cm}
90
91\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rll@{}}
92  \textbf{Num�ro} & \textbf{Description} & \textbf{Qt�} &
93    \textbf{Unit�} & \textbf{Bin} \\
94<%foreach number%>
95  <%number%> & <%description%> & <%qty%> &
96    <%unit%> & <%bin%> \\
97<%end number%>
98\end{tabular*}
99
100
101\parbox{\textwidth}{
102\rule{\textwidth}{2pt}
103
104\vspace{12pt}
105
106<%if notes%>
107  <%notes%>
108<%end if%>
109
110}
111
112\vfill
113\centerline{\textbf{Merci de faire affaire avec nous!}}
114
115\renewcommand{\thefootnote}{\fnsymbol{footnote}}
116
117\footnotetext[1]{\tiny
118Les �l�ments retourn�s seront sujets � un suppl�ment de remmagasinnage de
11910\%. Une autorisation de renvoi doit �tre obtenue au pr�alable aupr�s de
120<%company%>. Les frais de transports et d'assurance sur les �l�ments
121retourn�s devront �tre couvert par le client de fa�on appropri�e.
122<%company%> ne peut �tre tenue responsable des dommages survenus pendant
123le transit.}
124
125\end{document}
126