% `pcardsmp.tex' - demonstration of postcard class

%  author: bil kleb <w.l.kleb@larc.nasa.gov>
%    date: 14 aug 1999
% version: 0.1
% license: lppl

% ymmv, but here's what worked for me:

% to compile:
%   latex pcardsmp

% convert to postscript (50 addresses):
%   dvips -t landscape '-l=1' -c 50 -o message.ps pcardsmp
%   dvips -t landscape '-p=51' -o addresses.ps pcardsmp

% to preview (dvi preview typically not correct due to rotations):
%   ghostview pcardsmp.ps

% to print: (insert 3.5'' towards infeed roller)
%   lpr message.ps  (stamp down and nearest the infeed)
%   lpr addresses.ps  (stamp up, furthest from infeed)

\documentclass[11pt]{postcards}

% database containing addresses of the form:
%
%   name
%   street\\town, etc.
%   opening
%   [blank line]

\addressfile{datasmp.txt}

% main body of text:
\mailingtext{% note: opening is one of the address datafields
The main message text goes here.
\closing{Respectfully,}}

% from-address and signature line:
\address{Tree Killers, Inc.\\
         5 Bulldozer Lane\\
         Slash and Burn, RT 99930}
\signature{Marvin the Robot}

\begin{document}
\end{document}
