1\documentclass[twoside]{scrartcl}
2\usepackage[frame]{xy}
3\usepackage{tabularx}
4\usepackage{graphicx}
5\setlength{\voffset}{0.5cm}
6\setlength{\hoffset}{-1.9cm}
7\setlength{\topmargin}{0cm}
8\setlength{\headheight}{0.5cm}
9\setlength{\headsep}{1cm}
10\setlength{\topskip}{0pt}
11\setlength{\oddsidemargin}{1.0cm}
12\setlength{\evensidemargin}{1.0cm}
13\setlength{\textwidth}{19.2cm}
14\setlength{\textheight}{24.7cm}
15\setlength{\footskip}{1cm}
16\setlength{\parindent}{0pt}
17\renewcommand{\baselinestretch}{1}
18\begin{document}
19
20\newlength{\descrwidth}\setlength{\descrwidth}{10cm}
21\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
22
23\pagestyle{myheadings}
24\thispagestyle{empty}
25
26\vspace*{-1.3cm}
27
28\parbox{\textwidth}{
29  \parbox[b]{.42\textwidth}{
30    <%company%>
31
32    <%address%>
33  }
34  \parbox[b]{.2\textwidth}{
35    \includegraphics[scale=0.3]{sql-ledger}
36  }\hfill
37  \begin{tabular}[b]{rr@{}}
38  Telephone & <%tel%>\\
39  Facsimile & <%fax%>
40  \end{tabular}
41
42  \rule[1.5ex]{\textwidth}{0.5pt}
43}
44
45
46<%pagebreak 65 27 48%>
47\end{tabularx}
48
49  \rule{\textwidth}{2pt}
50
51  \hfill
52  \begin{tabularx}{7cm}{Xr@{}}
53  \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
54  \end{tabularx}
55
56\newpage
57
58\markboth{<%company%>\hfill <%ordnumber%>}{<%company%>\hfill <%ordnumber%>}
59
60\vspace*{-12pt}
61
62\begin{tabularx}{\textwidth}{@{}lXrlrr@{}}
63  \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
64    \textbf{Unit} & \textbf{Price} & \textbf{Extended} \\
65  & carried forward from <%lastpage%> & & & & <%sumcarriedforward%> \\
66<%end pagebreak%>
67
68
69\vspace*{0.5cm}
70
71\parbox[t]{1cm}{\hfill}
72\parbox[t]{.45\textwidth}{
73\textbf{To}
74\vspace{0.7cm}
75
76<%name%>
77
78<%address1%>
79
80<%address2%>
81
82<%city%> <%state%> <%zipcode%>
83
84<%country%>
85
86\vspace{0.3cm}
87
88<%if contact%>
89<%contact%>
90\vspace{0.2cm}
91<%end contact%>
92
93<%if vendorphone%>
94Tel: <%vendorphone%>
95<%end vendorphone%>
96
97<%if vendorfax%>
98Fax: <%vendorfax%>
99<%end vendorfax%>
100
101<%email%>
102}
103\parbox[t]{.45\textwidth}{
104\textbf{Ship To}
105\vspace{0.7cm}
106
107<%shiptoname%>
108
109<%shiptoaddress1%>
110
111<%shiptoaddress2%>
112
113<%shiptocity%> <%shiptostate%> <%shiptozipcode%>
114
115<%shiptocountry%>
116
117\vspace{0.3cm}
118
119<%if shiptocontact%>
120<%shiptocontact%>
121\vspace{0.2cm}
122<%end shiptocontact%>
123
124<%if shiptophone%>
125Tel: <%shiptophone%>
126<%end shiptophone%>
127
128<%if shiptofax%>
129Fax: <%shiptofax%>
130<%end shiptofax%>
131
132<%shiptoemail%>
133}
134\hfill
135
136\vspace{1cm}
137
138\textbf{R E Q U E S T for Q U O T A T I O N}
139\hfill
140
141\vspace{1cm}
142
143\begin{tabularx}{\textwidth}{*{6}{|X}|} \hline
144  \textbf{RFQ \#} & \textbf{Date} & \textbf{Required by} & \textbf{Contact} & \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5ex]
145  \hline
146  <%quonumber%> & <%quodate%> & <%reqdate%> & <%employee%> & <%shippingpoint%> & <%shipvia%> \\
147  \hline
148\end{tabularx}
149
150\vspace{1cm}
151
152Please provide price and delivery time for the following items:
153
154\vspace{1cm}
155
156\begin{tabularx}{\textwidth}{@{}lXrllrr@{}}
157  \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & &
158  \textbf{Delivery} & \textbf{Unit Price} & \textbf{Extended} \\
159<%foreach number%>
160  <%number%> & <%description%> & <%qty%> & <%unit%> \\
161<%end number%>
162\end{tabularx}
163
164
165\parbox{\textwidth}{
166\rule{\textwidth}{2pt}
167
168\hfill
169
170<%notes%>
171
172}
173
174\end{document}
175
176