| 1 |
% `pcardsmp.tex' - demonstration of postcard class |
| 2 |
|
| 3 |
% author: bil kleb <[email protected]> |
| 4 |
% date: 14 aug 1999 |
| 5 |
% version: 0.1 |
| 6 |
% license: lppl |
| 7 |
|
| 8 |
% ymmv, but here's what worked for me: |
| 9 |
|
| 10 |
% to compile: |
| 11 |
% latex pcardsmp |
| 12 |
|
| 13 |
% convert to postscript (50 addresses): |
| 14 |
% dvips -t landscape '-l=1' -c 50 -o message.ps pcardsmp |
| 15 |
% dvips -t landscape '-p=51' -o addresses.ps pcardsmp |
| 16 |
|
| 17 |
% to preview (dvi preview typically not correct due to rotations): |
| 18 |
% ghostview pcardsmp.ps |
| 19 |
|
| 20 |
% to print: (insert 3.5'' towards infeed roller) |
| 21 |
% lpr message.ps (stamp down and nearest the infeed) |
| 22 |
% lpr addresses.ps (stamp up, furthest from infeed) |
| 23 |
|
| 24 |
\documentclass[11pt]{postcards} |
| 25 |
|
| 26 |
% database containing addresses of the form: |
| 27 |
% |
| 28 |
% name |
| 29 |
% street\\town, etc. |
| 30 |
% opening |
| 31 |
% [blank line] |
| 32 |
|
| 33 |
\addressfile{datasmp.txt} |
| 34 |
|
| 35 |
% main body of text: |
| 36 |
\mailingtext{% note: opening is one of the address datafields |
| 37 |
The main message text goes here. |
| 38 |
\closing{Respectfully,}} |
| 39 |
|
| 40 |
% from-address and signature line: |
| 41 |
\address{Tree Killers, Inc.\\ |
| 42 |
5 Bulldozer Lane\\ |
| 43 |
Slash and Burn, RT 99930} |
| 44 |
\signature{Marvin the Robot} |
| 45 |
|
| 46 |
\begin{document} |
| 47 |
\end{document} |