Attachment 'ligodoc.cls'
Download 1 %% LIGODOC.CLS
2 %%
3 %% LIGO Document Class
4 %%
5 %% All options are passed to the underlying article class implementation
6 %%
7 %% The following macros are defined:
8 %%
9 %% \title{title}
10 %% document title
11 %% \author{authors}
12 %% list of authors
13 %% \institution{institution}
14 %% list of author's institutions
15 %% \date{date}
16 %% publication date
17 %% \ligodccnumber{T}{YY}{NNNN}{VV}{G}
18 %% LIGO document control number
19 %% T document type identifier
20 %% YY two digit year
21 %% NNNN four digit serial number
22 %% VV two digit version number
23 %% G working group identifier
24 %% \ligodistribution{group}
25 %% includes ``Distribution of this document: <group>'' on the title page
26 %% \ligonote{note}
27 %% includes the specified note on the title page
28 %% \ligointernal
29 %% sets note to ``This is an internal working note of the LIGO project''
30 %% \ligopublished{journal}
31 %% sets note to ``To be published in <journal>''
32 %% \ligosubmitted{journal}
33 %% sets note to ``Submitted for publication in <journal>''
34 %% \ligodraft
35 %% includes the label ``Draft'' on every page
36 %% \ligorestricted{group}
37 %% includes the label ``Circulation resitricted to <group>'' on every page
38 %% \ligosites
39 %% include LIGO site information on the title page
40 %% \cvsid{$Id: ligodoc.cls,v 1.1 2004/03/24 11:33:26 joe Exp $}
41 %% include the file's CVS ID on the title page
42 %%
43 %% Shourov K. Chatterji
44 %% shourov@ligo.mit.edu
45 %% 2003-Jun-18
46 %%
47 %% edited by Rana, July 2006
48
49 %---------- LATEX VERSION ----------
50 \NeedsTeXFormat{LaTeX2e}
51
52 %---------- CLASS NAME AND REVISION ----------
53 \ProvidesClass{ligodoc}[2006/07/17 LIGO document class]
54
55 %---------- PROCESS OPTIONS ----------
56 \DeclareOption{letterpaper}{\PassOptionsToClass{\CurrentOption}{article}}
57 \DeclareOption{12pt}{\PassOptionsToClass{\CurrentOption}{article}}
58 \DeclareOption{oneside}{\PassOptionsToClass{\CurrentOption}{article}}
59 \DeclareOption{onecolumn}{\PassOptionsToClass{\CurrentOption}{article}}
60 \DeclareOption{final}{\PassOptionsToClass{\CurrentOption}{article}}
61 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
62 \ExecuteOptions{letterpaper,12pt,oneside,onecolumn,final}
63 \ProcessOptions\relax
64
65 %---------- LOAD PARENT CLASS ----------
66 \LoadClass{article}
67
68 %---------- LOAD REQUIRED PACKAGES ----------
69 \RequirePackage{latexsym}
70 \RequirePackage{amsmath}
71 \RequirePackage{amsfonts}
72 \RequirePackage{amssymb}
73 \RequirePackage{graphicx}
74 \RequirePackage[usenames,dvipsnames]{color}
75 \RequirePackage{hyperref}
76 \RequirePackage{ifthen}
77 \RequirePackage{array}
78 \RequirePackage{calc}
79 \RequirePackage{vmargin}
80
81 %---------- SET MARGINS, INDENTATION, AND SPACING ----------
82 \setpapersize[portrait]{USletter}
83 \setmarginsrb{1in}{0.5in}{1in}{0.5in}{0.3in}{0.2in}{0.3pt}{0.2in}
84 \setlength{\parindent}{0pt}
85 \setlength{\parskip}{\baselineskip}
86
87 %---------- SET PAGE COLOR ----------
88 \pagecolor{white}
89
90 %---------- DEFAULT LIGO DOCUMENT PROPERTIES ----------
91 \def\@ligodcctype{\relax}
92 \def\@ligodccyear{\relax}
93 \def\@ligodccserial{\relax}
94 \def\@ligodccversion{\relax}
95 \def\@ligodccgroup{\relax}
96 \def\@ligodccnumber{\relax}
97 \def\@ligodistribution{\relax}
98 \def\@ligodraft{\relax}
99 \def\@ligorestricted{\relax}
100 \def\@ligonote{\relax}
101 \def\@ligosites{\relax}
102 \def\@institution{\relax}
103 \def\@cvsid{\relax}
104
105 %---------- MACRO TO PARSE CVS ID TAG ----------
106 \def\setcvsid#1{\def\next##1#1{\def\@cvsid{\mbox{%
107 CVS ##1 --- Processed with \LaTeX\ on \today}}}\next}
108
109 %---------- COMMANDS TO SET LIGO DOCUMENT PROPERTIES ----------
110 \newcommand{\ligodccnumber}[5]{%
111 \def\@ligodcctype{#1}%
112 \def\@ligodccyear{#2}%
113 \def\@ligodccserial{#3}%
114 \def\@ligodccversion{#4}%
115 \def\@ligodccgroup{#5}%
116 \def\@ligodccnumber{LIGO-#1#2#3-#4-#5}%
117 \ifthenelse{\equal\@ligodcctype{C}}{%
118 \def\@ligodoctype{Contractual Note}%
119 }{%
120 \ifthenelse{\equal\@ligodcctype{D}}{%
121 \def\@ligodoctype{Drawing}%
122 }{%
123 \ifthenelse{\equal\@ligodcctype{E}}{%
124 \def\@ligodoctype{Engineering Note}%
125 }{%
126 \ifthenelse{\equal\@ligodcctype{G}}{%
127 \def\@ligodoctype{Presentation}%
128 }{%
129 \ifthenelse{\equal\@ligodcctype{L}}{%
130 \def\@ligodoctype{Correspondence}%
131 }{%
132 \ifthenelse{\equal\@ligodcctype{M}}{%
133 \def\@ligodoctype{Administrative Note}%
134 }{%
135 \ifthenelse{\equal\@ligodcctype{P}}{%
136 \def\@ligodoctype{Publication}%
137 }{%
138 \ifthenelse{\equal\@ligodcctype{T}}{%
139 \def\@ligodoctype{Technical Note}%
140 }{%
141 \def\@ligodoctype{}%
142 }}}}}}}}%
143 }
144 \newcommand{\ligodraft}{\def\@ligodraft{Draft}}
145 \newcommand{\ligorestricted}[1]{\def\@ligorestricted{%
146 Circulation restricted to #1}}
147 \newcommand{\ligodistribution}[1]{\def\@ligodistribution{%
148 \textit{Distribution of this document:}\vspace{1ex}\\#1}}
149 \newcommand{\ligonote}[1]{\def\@ligonote{#1}}
150 \newcommand{\ligointernal}{\def\@ligonote{%
151 This is an internal working\\note of the LIGO project}}
152 \newcommand{\ligopublished}[1]{\def\@ligonote{%
153 To be published in\\#1}}
154 \newcommand{\ligosubmitted}[1]{\def\@ligonote{%
155 Submitted for publication in\\#1}}
156 \newcommand{\ligosites}{\def\@ligosites{true}}
157 \newcommand{\institution}[1]{\def\@institution{\\#1}}
158 \newcommand{\cvsid}[1]{\setcvsid#1}
159
160 % Colorized Section,subsSection,& subsub
161 \renewcommand\section{\@startsection {section}{1}{\z@}%
162 {-3.5ex \@plus -1ex \@minus -.2ex}%
163 {2.3ex \@plus.2ex}%
164 {\color{red}\normalfont\Large\bfseries}}
165 \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
166 {-3.25ex\@plus -1ex \@minus -.2ex}%
167 {1.5ex \@plus .2ex}%
168 {\color{blue}\normalfont\bfseries}}
169 \renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
170 {-3.25ex\@plus -1ex \@minus -.2ex}%
171 {1.1ex \@plus .2ex}%
172 {\color[named]{OliveGreen}\normalfont\bfseries}}
173
174
175 %---------- REDEFINE DATE FORMAT ----------
176 \renewcommand{\today}{%
177 \number\year/\ifnum\month<10 0\fi\number\month/\ifnum\day<10 0\fi\number\day}
178
179 %---------- ? ----------
180 \newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
181
182 %---------- LABEL LAST PAGE ----------
183 \AtEndDocument{\label{ligodoc-lastpage}}
184
185 %---------- DEFINE FOOTERS AND HEADERS ----------
186 \def\ps@headings{
187 \def\@evenfoot{\vbox to 0in{%
188 \centering\mbox{page \thepage{}}%
189 }}
190 \def\@oddfoot{\vbox to 0in{%
191 \centering\mbox{page \thepage{}}%
192 }}
193 \def\@oddhead{\vbox to 0in{%
194 \vskip -0.3in%
195 \centering\mbox{\@ligodccnumber}\rule{0pt}{0ex}\\
196 \vspace{0.1in}
197 \centering\mbox{\color{red} \@ligodraft%
198 \ifthenelse{\equal\@ligodraft{\relax}}{}{%
199 \ifthenelse{\equal\@ligorestricted{\relax}}{}{:\ }}%
200 \@ligorestricted}%
201 }}
202 \def\@evenhead{\vbox to 0in{%
203 \vskip -0.3in%
204 \centering\mbox{\@ligodccnumber}\rule{0pt}{0ex}\\
205 \vspace{0.1in}
206 \centering\mbox{\color{red} \@ligodraft%
207 \ifthenelse{\equal\@ligodraft{\relax}}{}{%
208 \ifthenelse{\equal\@ligorestricted{\relax}}{}{:\ }}%
209 \@ligorestricted}%
210 }}
211 }
212
213 %---------- ENABLE HEADERS AND FOOTERS ----------
214 \pagestyle{headings}
215
216 %---------- DEFINE TITLEPAGE ----------
217 \renewcommand\maketitle{%
218 \thispagestyle{titleheadings}%
219 \begin{center}
220 \fontsize{12pt}{14pt}\selectfont%
221 \mbox{%
222 LASER INTERFEROMETER GRAVITATIONAL WAVE OBSERVATORY}\\
223 - LIGO -\\
224 CALIFORNIA INSTITUTE OF TECHNOLOGY\\
225 MASSACHUSETTS INSTITUTE OF TECHNOLOGY\\[0.75in]
226 \begin{tabular*}{5.5in}%
227 {|*{1}{>{\PreserveBackslash\centering\hspace{0pt}}%
228 p{1.5in-\tabcolsep*2-\arrayrulewidth*2/3}}%
229 *{1}{>{\PreserveBackslash\centering\hspace{0pt}}%
230 p{2.5in-\tabcolsep*2-\arrayrulewidth*2/3}}%
231 *{1}{>{\PreserveBackslash\centering\hspace{0pt}}%
232 p{1.5in-\tabcolsep*2-\arrayrulewidth*2/3}}|}
233 \hline
234 \textbf{\@ligodoctype} &
235 \textbf{\@ligodccnumber} &
236 \@date\rule[-2ex]{0pt}{5ex}\\
237 \hline
238 \multicolumn{3}{|p{5.5in-\tabcolsep*2-\arrayrulewidth*2}|}%
239 {\rule{0pt}{5ex}\centering\parbox[t]{5in}%
240 {\centering\fontsize{24pt}{18pt}\selectfont%
241 \bfseries\@title\rule[-2ex]{0pt}{0pt}}}\\
242 \hline
243 \multicolumn{3}{|p{5.5in-\tabcolsep*2-\arrayrulewidth*2}|}%
244 {\rule{0pt}{3ex}\centering\@author\textit{\@institution}%
245 \rule[-2ex]{0pt}{0ex}}\\
246 \hline
247 \end{tabular*}\\
248 \vspace{0.5in}
249 \@ligodistribution\rule{0pt}{0ex}\\
250 \vspace{0.25in}
251 {\color{red}\fontsize{14pt}{14pt}\selectfont\@ligodraft\rule{0pt}{0ex}}\\
252 {\color{red}\fontsize{14pt}{14pt}\selectfont\@ligorestricted\rule{0pt}{0ex}}\\
253 \vspace{0.25in}
254 \@ligonote\rule{0pt}{0ex}\\
255 \vfill
256 \begin{tabular}{c@{\qquad}c}
257 \textbf{California Institute of Technology} &
258 \textbf{Massachusetts Institute of Technology} \\
259 \textbf{LIGO Project, MS 18-34} &
260 \textbf{LIGO Project, Room NW17-161} \\
261 \textbf{Pasadena, CA 91125} &
262 \textbf{Cambridge, MA 02139} \\
263 Phone (626) 395-2129 & Phone (617) 253-4824 \\
264 Fax (626) 304-9834 & Fax (617) 253-7014 \\
265 E-mail: info@ligo.caltech.edu & E-mail: info@ligo.mit.edu \\
266 \vspace{0.3in} \\
267 \textbf{LIGO Hanford Observatory} &
268 \textbf{LIGO Livingston Observatory} \\
269 \textbf{Route 10, Mile Marker 2} &
270 \textbf{19100 LIGO Lane} \\
271 \textbf{Richland, WA 99352} &
272 \textbf{Livingston, LA 70754} \\
273 Phone (509) 372-8106 & Phone (225) 686-3100 \\
274 Fax (509) 372-8137 & Fax (225) 686-7189 \\
275 E-mail: info@ligo.caltech.edu & E-mail: info@ligo.caltech.edu \\
276 \vspace{0.3in}
277 \end{tabular}\\[1ex]
278 \href{http://www.ligo.caltech.edu/}{\tt http://www.ligo.caltech.edu/}\\
279 \end{center}
280 \normalsize
281 \newpage
282 }
283 \def\ps@titleheadings{%
284 \let\@evenhead\@empty\let\@oddhead\@empty
285 \def\@oddfoot{\hfil\mbox{\fontsize{9pt}{11pt}\selectfont\@cvsid}\hfil}%
286 \def\@evenfoot{\hfil\mbox{\fontsize{9pt}{11pt}\selectfont\@cvsid}\hfil}%
287 }
288
289 %---------- AUTOMATICALLY GENERATE TITLE PAGE ----------
290 \AtBeginDocument{%
291 \maketitle
292 \setcounter{page}{1}
293 }
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.
