1 \NeedsTeXFormat{LaTeX2e}
2 \ProvidesClass{mitletter2}
4 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{letter}}
7 \usepackage[dvips]{graphics}
8 \usepackage[businessenvelope]{envlab}
11 \setlength{\topmargin}{-.80in}
12 \setlength{\oddsidemargin}{-.25in}
13 \setlength{\evensidemargin}{-.25in}
14 \setlength{\textwidth}{7in}
15 \setlength{\textheight}{8in}
16 \setlength{\headsep}{1in}
17 \setlength{\footskip}{1.625in}
21 \DeclareFixedFont{\boldfont}{OT1}{cmss}{bx}{n}{8}
22 \DeclareFixedFont{\regularfont}{OT1}{cmr}{m}{n}{8}
23 \DeclareFixedFont{\italicfont}{OT1}{cmr}{m}{it}{10}
24 \DeclareFixedFont{\IDfont}{OT1}{cmr}{m}{it}{8}
27 \newcommand{\officename}{Your Office Name}
28 \newcommand{\roomnumber}{X00-000}
29 \newcommand{\phonenum}{617.000.0000}
30 \newcommand{\faxnum}{617.000.0000}
31 \newcommand{\website}{web.mit.edu/abcdefghijk}
32 \newcommand{\email}{user@mit.edu}
33 \newcommand{\person}{Your name}
34 \newcommand{\ID}{Your title}
36 \renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
37 \thispagestyle{firstpage}%
38 {\raggedleft\@date\par}%
40 \thispagestyle{empty}%
41 {\raggedleft\begin{tabular}{l@{}}\ignorespaces
42 \fromaddress \\*[2\parskip]%
43 \@date \end{tabular}\par}%
46 {\raggedright \toname \\ \toaddress \par}%
48 #1\marginpar[\hfill test]\par\nobreak}
49 \renewcommand{\ps@headings}{%
50 \let\@oddfoot\@empty\let\@evenfoot\@empty
51 \def\@oddhead{\slshape\headtoname{} \ignorespaces\toname
53 \hfil \pagename{} \thepage}%
54 \let\@evenhead\@oddhead}
55 \renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
56 \thispagestyle{firstpage}%
59 \thispagestyle{empty}%
60 {\raggedleft\begin{tabular}{l@{}}\ignorespaces
61 \fromaddress \\*[2\parskip]%
62 \@date \end{tabular}\par}%
65 {\raggedright \toname \\ \toaddress \par}%
68 \renewcommand*{\signature}[1]{\def\fromsig{\italicfont #1}}
71 \newsavebox{\MassInstTech}
73 \newsavebox{\mainaddress}
74 \newsavebox{\contactinfo}
78 {\setlength{\baselineskip}{9.2pt}\begin{center}\scalebox{.4}{\includegraphics*{mitlogo.eps}}\\[9.2pt]\boldfont{Massachusetts Institute of Technology}\\\vspace{9.2pt}\regularfont{\person}\\\IDfont{\ID}\end{center}}}
82 {\setlength{\baselineskip}{9.2pt}{\boldfont Office name} \\ {\regularfont Building X00-000}}}
86 {\setlength{\baselineskip}{9.2pt}\regularfont{Phone\hspace{4mm} \phonenum\\
87 Fax\hspace{7.5mm} \faxnum\\
88 Email \hspace{3.6mm} \email\\
93 {\setlength{\baselineskip}{9.2pt}\regularfont{77 Massachusetts Avenue\\
94 Cambridge, Massachusetts\\
101 {\raisebox{1cm}{\parbox[t]{16.51cm}
102 {\hspace{.25in}\usebox{\place} \usebox{\mainaddress} \usebox{\contactinfo}}}}
104 \newsavebox{\envelope}
106 {\parbox[t]{6cm}{\setlength{\baselineskip}{9.2pt}\boldfont{\officename}\\\\\\\hspace*{.5in}\scalebox{.25}{\includegraphics*{mitlogo.eps}}\\\\\boldfont{Massachusetts Institute of Technology}\\\regularfont{77 Massachusetts Avenue, Building \roomnumber}\\\regularfont{Cambridge, MA 02139-4307}}}
108 \renewcommand{\returnaddress}{\protect\usebox{\envelope}}
110 %make sure the header goes on the first page
111 \renewcommand{\ps@firstpage}
112 {\setlength{\headheight}{3cm}\setlength{\headsep}{1cm}%
113 \renewcommand{\@oddhead}{\usebox{\MassInstTech}}%
114 \renewcommand{\@oddfoot}{\raisebox{55pt}[0pt]{\usebox{\footer}}}}
116 \providecommand{\@evenhead}{}\providecommand{\@oddhead}{}
117 \providecommand{\@evenfoot}{}\providecommand{\@oddfoot}{}