summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/postcards/pcardsmp.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/postcards/pcardsmp.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/postcards/pcardsmp.tex')
-rw-r--r--macros/latex/contrib/postcards/pcardsmp.tex47
1 files changed, 47 insertions, 0 deletions
diff --git a/macros/latex/contrib/postcards/pcardsmp.tex b/macros/latex/contrib/postcards/pcardsmp.tex
new file mode 100644
index 0000000000..54c872ab92
--- /dev/null
+++ b/macros/latex/contrib/postcards/pcardsmp.tex
@@ -0,0 +1,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}