evletter.cls (4844B)
1 % GNUnet e.V.-Letter-Format 2 % (C) 1997,2000,2009,2014,2018, 2023 by Christian Grothoff 3 % 4 \NeedsTeXFormat{LaTeX2e} 5 \RequirePackage{ifthen} 6 \RequirePackage{graphics} 7 \RequirePackage{adjustbox} 8 \newboolean{aTgerman}\setboolean{aTgerman}{false} 9 \DeclareOption{german}{\setboolean{aTgerman}{true}} 10 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{letter}} 11 \ProcessOptions 12 \LoadClass[a4paper]{letter} 13 % 14 \newcommand{\englishnames}{% 15 \newcommand{\yrefname}{\textsl{Your Ref.}} 16 \newcommand{\ymailname}{\textsl{Your letter from}} 17 \newcommand{\myrefname}{\textsl{Our Ref.}} 18 \newcommand{\subjectname}{\textsl{Subject}} 19 \newcommand{\telephonename}{Telephone} 20 \newcommand{\germanname}{Germany} 21 \newcommand{\stationname}{Train Station} 22 \newcommand{\deliveryname}{Delivery Address} 23 \newcommand{\telcode}{+41-786926894} 24 \newcommand{\postcode}{85748 Garching bei M\"unchen} 25 } 26 \newcommand{\germannames}{% 27 \newcommand{\yrefname}{\textsl{Ihr Zeichen}} 28 \newcommand{\ymailname}{\textsl{Ihr Schreiben vom}} 29 \newcommand{\myrefname}{\textsl{Unser Zeichen}} 30 \newcommand{\subjectname}{\textsl{Betreff}} 31 \newcommand{\telephonename}{Telefon} 32 \newcommand{\germanname}{\vspace{-8pt}} 33 \newcommand{\stationname}{Bahnstation} 34 \newcommand{\deliveryname}{Anschrift} 35 \newcommand{\telcode}{+41-786926894} 36 \newcommand{\postcode}{85748} 37 } 38 \ifthenelse{\boolean{aTgerman}} 39 {\RequirePackage{german}\germannames} 40 {\englishnames} 41 % 42 \newcommand{\aTyref}{} 43 \newcommand{\aTmyref}{} 44 \newcommand{\aTemail}{vorstand} 45 \newcommand{\aTymail}{} 46 \newcommand{\aTsubject}{} 47 % 48 \newcommand{\yref}[1]{\renewcommand{\aTyref}{\yrefname: #1}} 49 \newcommand{\ymail}[1]{\renewcommand{\aTymail}{\ymailname: #1}} 50 \newcommand{\myref}[1]{\renewcommand{\aTmyref}{\myrefname: #1}} 51 \newcommand{\subject}[1]{\renewcommand{\aTsubject}{% 52 \subjectname: #1}} 53 \newcommand{\emailid}[1]{\renewcommand{\aTemail}{#1}} 54 \newcommand{\emailhost}{@gnunet.org} 55 % 56 \setlength{\textheight}{200mm} 57 \setlength{\textwidth}{160.1mm} 58 \setlength{\oddsidemargin}{0mm} 59 \setlength{\topmargin}{-20pt} 60 \setlength{\evensidemargin}{0mm} 61 \setlength{\headheight}{12pt} 62 \setlength{\headsep}{35pt} 63 % 64 \newlength{\leftfield} 65 \setlength{\leftfield}{115.0mm} 66 \newlength{\rightfield} 67 \setlength{\rightfield}{41.0mm} 68 % 69 \DeclareFixedFont{\xviisf}{OT1}{cmss}{m}{n}{17} 70 \DeclareFixedFont{\xsf}{OT1}{cmss}{m}{n}{10} 71 \DeclareFixedFont{\viiisf}{OT1}{cmss}{m}{n}{8} 72 % 73 \newsavebox{\FIRM} 74 \newsavebox{\firm} 75 \newsavebox{\firmhead} 76 \newsavebox{\firmaddress} 77 \newsavebox{\firmreturn} 78 \newsavebox{\firmfoot} 79 80 % % {\xviisf GNUnet e.V.}} 81 \sbox{\FIRM}{\parbox[t]{\leftfield} 82 { \adjustbox{max width=2cm}{\includegraphics{gnunet-logo.pdf} } } 83 } 84 \sbox{\firmaddress}{\parbox[t]{\rightfield} 85 {\viiisf \vspace*{-1cm} %\baselineskip10pt 86 \hspace*{-4mm} Boltzmannstra\ss{}e 3 \\ 87 \hspace*{-4mm} 85748 Garching bei M\"unchen \\ 88 \hspace*{-4mm} Germany}} 89 \sbox{\firm}{\xsf GNUnet e.V.} 90 \sbox{\firmreturn}{\viiisf\underline{GNUnet e.V., Boltzmannstra\ss{}e 3, 85748 Garching bei M\"unchen}} 91 % 92 \sbox{\firmhead}{\parbox{\textwidth}{\usebox{\FIRM}% 93 \raisebox{6pt}{\usebox{\firmaddress}}\\[3pt] 94 \rule{\textwidth}{1pt}}} 95 % 96 \sbox{\firmfoot}{\parbox{\textwidth}{% 97 \rule{\textwidth}{0.6pt}\\[5pt] 98 \viiisf\setlength{\baselineskip}{12pt}% 99 \begin{tabular}[t]{@{}ll} 100 \underline{\telephonename} & +41-786926894 \\ 101 \underline{eMail} & vorstand@gnunet.org \\ 102 \underline{WWW} & https://gnunet.org/en/ev.html \\ 103 \end{tabular}\hfill 104 }} 105 % 106 \renewcommand{\date}[1]{\def\@date{#1}} 107 % 108 \renewcommand{\ps@firstpage} 109 {\setlength{\headheight}{41pt}\setlength{\headsep}{25pt}% 110 \renewcommand{\@oddhead}{\usebox{\firmhead}}% 111 \renewcommand{\@oddfoot}{\raisebox{-10pt}[0pt]{% 112 \usebox{\firmfoot}}} 113 \renewcommand{\@evenhead}{} 114 \renewcommand{\@evenfoot}{}} 115 % 116 \renewcommand{\ps@headings} 117 {\setlength{\headheight}{41pt}% 118 \renewcommand{\@oddhead}{\parbox{\textwidth}{% 119 \usebox{\firm} \\[5pt] 120 \slshape %\headtoname{} 121 %\toname 122 \hfill\@date\hfill 123 \pagename{} \thepage\\ 124 \rule[3pt]{\textwidth}{1pt}}} 125 \renewcommand{\@oddfoot}{} 126 \renewcommand{\@evenhead}{\@oddhead} 127 \renewcommand{\@evenfoot}{\@oddfoot}} 128 % 129 \pagestyle{headings} 130 % 131 \renewcommand{\opening}[1]{ 132 \thispagestyle{firstpage}% 133 \vspace*{24pt} 134 \parbox[t]{\textwidth}{ 135 \parbox[t]{\leftfield}{ 136 \parbox[t]{\leftfield}{\usebox{\firmreturn}} \\ 137 \parbox[b][3.5cm][c]{\leftfield}{\toname \\ \toaddress}} 138 \raisebox{15pt}{ 139 \parbox[t]{\rightfield}{ 140 \@date}} } 141 \par 142 \rule{\textwidth}{0.6pt} 143 % 144 \makebox[\leftfield][l]{\ifthenelse{\equal{\aTyref}{}}{\aTymail}{\aTyref\hfill\aTymail\hfill}} 145 \aTmyref\par 146 \ifthenelse{\equal{\aTsubject}{}}{}{\aTsubject\par} 147 \vspace{2\parskip} 148 % 149 \par #1 \par\nobreak} 150 % 151 % \rclosing! 152 \signature{ 153 \includegraphics{christian_grothoff.jpg} \\ 154 Christian Grothoff (board member)} 155 % 156 \renewcommand{\@texttop}{} 157 %