summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/postcards/pcardsmp.tex
blob: 11599ea76fd99af4d9c9b312b35c69887010a331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
% `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}