summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/envbig/envbig.sty
blob: ddd48fb70990a78bbdf91af56ceea889b0c24c8c (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
%% The following copyright and licence notice added by Clea F. Rees
%% on behalf of Bhaskar Manda on 2008/11/11.
%%
%% Copyright 1995 Bhaskar Manda, 1989 Heather Sherman
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `unmaintained'.
%
% This work consists of the file envbig.sty.
%
% Envelopes 
% Latex option file to print addresses onto a 9.5x4.125 envelope fed through 
% the manual paper feed on HP LaserJet 4SIMX.
% 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
% 	dvips -m -t landscape <filename>.dvi
%
%Feed envelope into printer through manual feed rack with printing side up and
%with the RIGHT edge of the envelope the edge with the flap.
%Since the trailing edge of the envelope gets mangled by the printer often,
%this starts printing on the leading edge.
% Bhaskar Manda, July 6, 1995 by modifying envelope.sty written by
% Heather Sherman, March 10, 1989.
\pagestyle{empty}               
\textheight=7in               
\textwidth=7.5in                
\topmargin=-1.9in              
\oddsidemargin=-1.0in           

\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*{2.0in}
		\begin{flushleft}
		\@to
		\end{flushleft}
	}
}