summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/envelope
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/latex209/contrib/envelope
Initial commit
Diffstat (limited to 'macros/latex209/contrib/envelope')
-rw-r--r--macros/latex209/contrib/envelope/env-sample.tex33
-rw-r--r--macros/latex209/contrib/envelope/envelope.sty44
2 files changed, 77 insertions, 0 deletions
diff --git a/macros/latex209/contrib/envelope/env-sample.tex b/macros/latex209/contrib/envelope/env-sample.tex
new file mode 100644
index 0000000000..d32808fe7e
--- /dev/null
+++ b/macros/latex209/contrib/envelope/env-sample.tex
@@ -0,0 +1,33 @@
+% This is used to print one or more envelopes on the laser printer.
+
+%\begin{envelope}
+%Prof. Blah\\
+%Department of Mathematics\\
+%City, State Zip
+%\ZipBar{Zip-Zip}
+%\end{envelope}
+
+\documentstyle[env]{article}
+\nofiles
+
+\textwidth9.5in
+\textheight4.125in
+\pagestyle{empty}
+
+\begin{document}
+
+\from{Dimitri Vulis}
+
+\begin{envelope}
+\envaddress{
+Dimitri Vulis\\
+Department of Mathematics/Box 330\\
+Graduate School \& University Center\\
+City University of New York\\
+33 West 42 Street\\
+New York, New York 10036
+}
+\ZipBar{10036-8099}
+\end{envelope}
+\end{document}
+
diff --git a/macros/latex209/contrib/envelope/envelope.sty b/macros/latex209/contrib/envelope/envelope.sty
new file mode 100644
index 0000000000..d5dda5df2e
--- /dev/null
+++ b/macros/latex209/contrib/envelope/envelope.sty
@@ -0,0 +1,44 @@
+% Envelopes
+% Latex option file to print addresses onto a business envelope fed through the
+% manual paper feed on an Apple LaserWriter II NT
+% SAMPLE FILE :
+%
+%\documentstyle[12pt,envelope]{article}
+%\begin{document}
+%\from{name\\ address\\ city/state} %define return address
+%\to{name\\ address\\ city/state} %define destination address
+%\envelope %actually create envelope
+%\end{document}
+%
+%Create postscript file with DVIOUT/LANDSCAPE {\it filename}}.
+%
+%Feed envelope into printer through manual feed rack with printing side up and
+%with the left edge of the envelope the edge with the flap.
+%
+% Heather Sherman, March 10, 1989
+\pagestyle{empty}
+\textheight=7.0in
+\textwidth=7.5in
+\topmargin=-1.5in
+\oddsidemargin=0.75in
+
+\def\from#1{\def\@from{#1}}
+\def\to#1{\def\@to{#1}}
+\def\@from{\mbox{}}
+\def\@to{\mbox{}}
+
+\def\envelope{
+ \clearpage
+ \vspace*{2.1in}
+ \parbox[t]{3.5in}{
+ \begin{flushleft}
+ \@from
+ \end{flushleft}
+ }
+ \parbox[t]{3.5in}{
+ \vspace*{1.5in}
+ \begin{flushleft}
+ \@to
+ \end{flushleft}
+ }
+}