source: Documentation/WARP LaTeX Template/WARPdoc.cls

Last change on this file was 233, checked in by murphpo, 18 years ago

updated WARPdoc.cls and tex example

File size: 20.8 KB
Line 
1%% WARPdoc Documentation class file
2
3\NeedsTeXFormat{LaTeX2e}[1995/12/01]
4\ProvidesClass{WARPdoc}
5
6% gbmidd adding the following:
7\usepackage{color}
8\usepackage{graphicx}
9\definecolor{WARPBlue}{rgb}{0.004,0.29,0.57}
10
11\usepackage[pdftex,
12                        pdfpagelayout = useoutlines,
13                        bookmarks,
14                        bookmarksopen = true,
15                        bookmarksnumbered = true,
16                        breaklinks = true,
17                        linktocpage,
18                        backref,
19                        colorlinks = true,
20                        linkcolor = black,
21                        urlcolor = blue,
22                        citecolor = black,
23                        anchorcolor = green,
24                        hyperindex = true,
25                        hyperfigures]{hyperref}
26
27
28% end gbmidd additions
29
30
31% Define commands relevant to the titling
32\renewcommand{\rmdefault}{phv} % Switch to Helvetica !
33\newcommand\@ptsize{}
34\newcommand{\footruleskip}{\normalbaselineskip}
35
36\newcommand\@version{\relax}
37\newcommand\@tversion{\relax}
38\newcommand\version[1]{\renewcommand\@version{\textnormal{#1}}%
39                       \renewcommand\@tversion{\par\textnormal{#1}}}
40\newcommand\@organization{\relax}
41\newcommand\@torganization{\relax}
42\newcommand\organization[1]{\renewcommand\@organization{\textnormal{#1}}%
43                       \renewcommand\@torganization{\par\textnormal{#1}}}
44\newcommand\@confidential{\relax}
45\newcommand\@tconfidential{\relax}
46\newcommand\confidential[1]{\renewcommand\@confidential{\textnormal{#1}}
47                            \renewcommand\@tconfidential{\par\textbf{#1}}}
48\newcommand\fullcenter[1]{\hbox to\linewidth{\hss\hbox to\fullwidth{\parbox[c]{\fullwidth}{\begin{center}#1\end{center}}}}}
49
50\newif\if@restonecol
51\newif\if@titlepage
52\@titlepagefalse
53
54\if@compatibility\else
55\DeclareOption{a4paper}
56   {\setlength\paperheight {297mm}%
57    \setlength\paperwidth  {210mm}}
58\DeclareOption{a5paper}
59   {\setlength\paperheight {210mm}%
60    \setlength\paperwidth  {148mm}}
61\DeclareOption{b5paper}
62   {\setlength\paperheight {250mm}%
63    \setlength\paperwidth  {176mm}}
64\DeclareOption{letterpaper}
65   {\setlength\paperheight {11in}%
66    \setlength\paperwidth  {8.5in}}
67\DeclareOption{legalpaper}
68   {\setlength\paperheight {14in}%
69    \setlength\paperwidth  {8.5in}}
70\DeclareOption{executivepaper}
71   {\setlength\paperheight {10.5in}%
72    \setlength\paperwidth  {7.25in}}
73\DeclareOption{landscape}
74   {\setlength\@tempdima   {\paperheight}%
75    \setlength\paperheight {\paperwidth}%
76    \setlength\paperwidth  {\@tempdima}}
77\fi
78
79
80\if@compatibility
81  \renewcommand\@ptsize{0}
82\else
83\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
84\fi
85
86\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
87\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
88
89\if@compatibility\else
90\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
91\fi
92
93\DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
94\DeclareOption{draft}{\setlength\overfullrule{5pt}}
95
96\if@compatibility\else
97\DeclareOption{final}{\setlength\overfullrule{0pt}}
98\fi
99
100\DeclareOption{titlepage}{\@titlepagetrue}
101
102\if@compatibility\else
103\DeclareOption{notitlepage}{\@titlepagefalse}
104\fi
105
106\if@compatibility\else
107\DeclareOption{onecolumn}{\@twocolumnfalse}
108\fi
109
110\DeclareOption{twocolumn}{\@twocolumntrue}
111\DeclareOption{leqno}{\input{leqno.clo}}
112\DeclareOption{fleqn}{\input{fleqn.clo}}
113\DeclareOption{openbib}{%
114  \AtEndOfPackage{%
115   \renewcommand\@openbib@code{%
116      \advance\leftmargin\bibindent
117      \itemindent -\bibindent
118      \listparindent \itemindent
119      \parsep \z@
120      }%
121   \renewcommand\newblock{\par}}%
122}
123\DeclareOption{twocolumn}{%
124    \ClassError{WARPdoc2a}
125    {There is no twocolumn layout in this class}
126    {Please remove the 'twocolumn' attribute in the document class declaration}
127    \@twocolumnfalse}
128
129\ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final}
130\ProcessOptions
131\input{size1\@ptsize.clo}
132
133\setlength\lineskip{1\p@}
134\setlength\normallineskip{1\p@}
135\setlength\headsep {.5in}  %{\baselineskip}
136\setlength\parskip{0\p@ \@plus \p@}
137\renewcommand\baselinestretch{}
138
139\@lowpenalty   51
140\@medpenalty  151
141\@highpenalty 301
142
143\setlength\oddsidemargin{.75in}
144\setlength\textwidth{6in}
145\setlength\textheight{9in}
146\setlength\headsep{.5in}
147\setlength\topmargin{-.6in}
148
149\newdimen\fullwidth
150\setlength\fullwidth\textwidth
151\addtolength\fullwidth{1in}
152\newdimen\leftmarginwidth
153\setlength\leftmarginwidth\oddsidemargin
154
155\setlength{\pdfpagewidth}{\paperwidth}
156\setlength{\pdfpageheight}{\paperheight}
157
158\renewcommand\topfraction{.7}
159\setcounter{bottomnumber}{1}
160
161\renewcommand\bottomfraction{.3}
162\setcounter{totalnumber}{3}
163
164\renewcommand\textfraction{.2}
165\renewcommand\floatpagefraction{.5}
166
167\setcounter{dbltopnumber}{2}
168\renewcommand\dbltopfraction{.7}
169\renewcommand\dblfloatpagefraction{.5}
170
171
172%\def\ps@headings{%
173%    \let\@oddfoot\@empty
174%    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
175%    \let\@mkboth\markboth
176%    \def\sectionmark##1{%
177%      \markright {\MakeUppercase{%
178%        \ifnum \c@secnumdepth >\m@ne
179%          \thesection\quad
180%        \fi
181%        ##1}}}}
182%
183%
184%
185%\def\ps@myheadings{%
186%    \let\@oddfoot\@empty\let\@evenfoot\@empty
187%    \def\@evenhead{\thepage\hfil\slshape\leftmark}%
188%    \def\@oddhead{\vspace{-1in}{\slshape\rightmark}\hfil\thepage}%
189%    \let\@mkboth\@gobbletwo
190%    \let\sectionmark\@gobble
191%    \let\subsectionmark\@gobble
192%    }
193
194% Make the titlepage if required
195\if@titlepage
196  \renewcommand\maketitle{\begin{titlepage}%
197  \let\footnotesize\small
198  \let\footnoterule\relax
199  \null\vskip 70\p@
200  \begin{centering}
201    \hskip -30\p@
202    \includegraphics[scale=1.5]{warplogo}
203  \end{centering}
204  \vskip 70\p@
205  \longthickrule\vskip1.5em%
206   
207  \fullcenter{\LARGE \textbf \@title}%
208  \vskip1.5em\longthickrule%   
209  \vskip 3em%
210  \fullcenter{\large
211   \lineskip .75em%
212    \begin{tabular}[t]{c}%
213      \@author
214    \end{tabular}%
215    \vskip 1.5em
216    \@torganization\@tconfidential
217    \vskip 1.5em
218    Document Revision \@version
219    \par}%
220    \vskip 1.5em%
221  \fullcenter{\large \@date \par}%       % Set date in \large size.
222  \par
223  \fullcenter{\@thanks}
224  \vfil\null
225  \end{titlepage}%
226  \setcounter{footnote}{0}%
227  \global\let\thanks\relax
228  \global\let\maketitle\relax
229  \global\let\@thanks\@empty
230  \global\let\@date\@empty
231  \global\let\title\relax
232  \global\let\author\relax
233  \global\let\date\relax
234  \global\let\and\relax
235}
236\else
237  \renewcommand\maketitle{\par
238  \begingroup
239    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
240    \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
241    \long\def\@makefntext##1{\parindent 1em\noindent
242            \hb@xt@1.8em{%
243                \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
244      \newpage
245      \global\@topnum\z@   % Prevents figures from going at top of page.
246      \@maketitle
247   \thispagestyle{empty}\@thanks
248  \endgroup
249
250  \setcounter{footnote}{0}%
251  \global\let\thanks\relax
252  \global\let\maketitle\relax
253  \global\let\@maketitle\relax
254  \global\let\@thanks\@empty
255  \global\let\@date\@empty
256  \global\let\title\relax
257  \global\let\author\relax
258  \global\let\date\relax
259  \global\let\and\relax
260}
261
262
263\def\@maketitle{%
264    \newpage
265    %\null
266    \flushright{\includegraphics[scale=1]{warplogo}}
267    \hbox to\linewidth{\hss\hbox to\fullwidth{\makebox[\fullwidth][c]{\@tconfidential}}}
268    \longthickrule\vskip1.5em%
269    {\secshape \parskip\z@ \parindent\z@
270    \Large\bfseries \@title \par}%
271    \vskip1.5em\longthickrule\vskip1.5em%
272    {\normalsize
273      \lineskip .5em%
274      \begin{flushright}%
275        {\slshape\@author\@torganization\par}
276        \vskip 1em%
277        {\@date}%
278      \end{flushright}\par}%
279    \vskip 1.5em}
280
281\fi
282
283\setcounter{secnumdepth}{3}
284
285\newcounter {part}
286\newcounter {section}
287\newcounter {subsection}[section]
288\newcounter {subsubsection}[subsection]
289\newcounter {paragraph}[subsubsection]
290\newcounter {subparagraph}[paragraph]
291
292\renewcommand \thepart {\@Roman\c@part}
293\renewcommand \thesection {\@arabic\c@section}
294\renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
295\renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
296\renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
297\renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
298
299\newcommand\part{%
300   \if@noskipsec \leavevmode \fi
301   \par
302   \addvspace{4ex}%
303   \@afterindentfalse
304   \secdef\@part\@spart}
305
306\def\@part[#1]#2{%
307    \ifnum \c@secnumdepth >\m@ne
308      \refstepcounter{part}%
309      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
310    \else
311      \addcontentsline{toc}{part}{#1}%
312    \fi
313    {\parindent \z@ \raggedright
314     \interlinepenalty \@M
315     \normalfont
316     \ifnum \c@secnumdepth >\m@ne
317       \Large\bfseries \partname~\thepart
318       \par\nobreak
319     \fi
320     \huge \bfseries #2%
321     \markboth{}{}\par}%
322    \nobreak
323    \vskip 3ex
324    \@afterheading}
325
326\def\@spart#1{%
327    {\parindent \z@ \raggedright
328     \interlinepenalty \@M
329     \normalfont
330     \huge \bfseries #1\par}%
331     \nobreak
332     \vskip 3ex
333     \@afterheading}
334
335\newcommand\secshape{\leftskip=-\leftmarginwidth%
336                     \rightskip=\@flushglue%
337                     \hyphenpenalty=2000}
338\newcommand\section{\@startsection {section}{1}{\z@}%
339                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
340                                   {2.3ex \@plus.2ex}%
341                                   {\secshape\normalfont\Large\bfseries}}
342
343\newcommand\subsection{\@startsection{subsection}{2}{\z@}%
344                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
345                                     {1.5ex \@plus .2ex}%
346                                     {\secshape\normalfont\large\bfseries}}
347
348\newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
349                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
350                                     {1.5ex \@plus .2ex}%
351                                     {\secshape\normalfont\normalsize\bfseries}}
352
353\newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
354                                    {3.25ex \@plus1ex \@minus.2ex}%
355                                    {-1em}%
356                                    {\normalfont\normalsize\bfseries}}
357
358\newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
359                                       {3.25ex \@plus1ex \@minus .2ex}%
360                                       {-1em}%
361                                      {\normalfont\normalsize\bfseries}}
362
363\setlength\leftmargini  {2.5em}
364
365\leftmargin  \leftmargini
366\setlength\leftmarginii  {2.2em}
367\setlength\leftmarginiii {1.87em}
368\setlength\leftmarginiv  {1.7em}
369\setlength\leftmarginv  {1em}
370\setlength\leftmarginvi {1em}
371\setlength  \labelsep  {.5em}
372\setlength  \labelwidth{\leftmargini}
373\addtolength\labelwidth{-\labelsep}
374
375\@beginparpenalty -\@lowpenalty
376\@endparpenalty   -\@lowpenalty
377\@itempenalty     -\@lowpenalty
378
379\renewcommand\theenumi{\@arabic\c@enumi}
380\renewcommand\theenumii{\@alph\c@enumii}
381\renewcommand\theenumiii{\@roman\c@enumiii}
382\renewcommand\theenumiv{\@Alph\c@enumiv}
383
384\newcommand\labelenumi{\theenumi.}
385\newcommand\labelenumii{(\theenumii)}
386\newcommand\labelenumiii{\theenumiii.}
387\newcommand\labelenumiv{\theenumiv.}
388
389\renewcommand\p@enumii{\theenumi}
390\renewcommand\p@enumiii{\theenumi(\theenumii)}
391\renewcommand\p@enumiv{\p@enumiii\theenumiii}
392
393\newcommand\labelitemi{\textbullet}
394\newcommand\labelitemii{\normalfont\bfseries \textendash}
395\newcommand\labelitemiii{\textasteriskcentered}
396\newcommand\labelitemiv{\textperiodcentered}
397
398\newenvironment{description}
399               {\list{}{\labelwidth\z@ \itemindent-\leftmargin
400                        \let\makelabel\descriptionlabel}}
401               {\endlist}
402
403\newcommand*\descriptionlabel[1]{\hspace\labelsep
404                                \normalfont\bfseries #1}
405\newenvironment{abstract}{%
406  \small
407    \begin{center}%
408      {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
409    \end{center}%
410    \quotation
411     }
412    \endquotation
413
414\newenvironment{verse}
415               {\let\\\@centercr
416                \list{}{\itemsep      \z@
417                        \itemindent   -1.5em%
418                        \listparindent\itemindent
419                        \rightmargin  \leftmargin
420                        \advance\leftmargin 1.5em}%
421                \item\relax}
422               {\endlist}
423
424\newenvironment{quotation}
425               {\list{}{\listparindent 1.5em%
426                        \itemindent    \listparindent
427                        \rightmargin   \leftmargin
428                        \parsep        \z@ \@plus\p@}%
429                \item\relax}
430               {\endlist}
431
432\newenvironment{quote}
433               {\list{}{\rightmargin\leftmargin}%
434                \item\relax}
435               {\endlist}
436
437
438\if@compatibility
439\newenvironment{titlepage}
440    {%
441      \@restonecolfalse\newpage
442      \thispagestyle{empty}%
443      \setcounter{page}\z@
444    }%
445    {\if@restonecol\twocolumn \else \newpage \fi
446    }
447\else
448\newenvironment{titlepage}
449    {%
450      \@restonecolfalse\newpage
451      \thispagestyle{empty}%
452      \setcounter{page}\@ne
453    }%
454    {\if@restonecol\twocolumn \else \newpage \fi
455     \if@twoside\else
456        \setcounter{page}\@ne
457     \fi
458    }
459\fi
460
461\renewcommand\appendix{\par
462  \setcounter{section}{0}%
463  \setcounter{subsection}{0}%
464  \gdef\thesection{\@Alph\c@section}}
465 
466\setlength\arraycolsep{5\p@}
467\setlength\tabcolsep{6\p@}
468\setlength\arrayrulewidth{.4\p@}
469\setlength\doublerulesep{2\p@}
470\setlength\tabbingsep{\labelsep}
471\skip\@mpfootins = \skip\footins
472\setlength\fboxsep{3\p@}
473\setlength\fboxrule{.4\p@}
474
475\renewcommand \theequation {\@arabic\c@equation}
476
477\newcounter{figure}
478\renewcommand \thefigure {\@arabic\c@figure}
479\def\fps@figure{tbp}
480\def\ftype@figure{1}
481\def\ext@figure{lof}
482\def\fnum@figure{\figurename~\thefigure}
483
484\newenvironment{figure}
485               {\@float{figure}}
486               {\end@float}
487
488\newenvironment{figure*}
489               {\@dblfloat{figure}}
490               {\end@dblfloat}
491\newcounter{table}
492\renewcommand\thetable{\@arabic\c@table}
493
494\def\fps@table{tbp}
495\def\ftype@table{2}
496\def\ext@table{lot}
497\def\fnum@table{\tablename~\thetable}
498
499\newenvironment{table}
500               {\@float{table}}
501               {\end@float}
502
503\newenvironment{table*}
504               {\@dblfloat{table}}
505               {\end@dblfloat}
506
507\newlength\abovecaptionskip
508\newlength\belowcaptionskip
509\setlength\abovecaptionskip{10\p@}
510\setlength\belowcaptionskip{0\p@}
511\long\def\@makecaption#1#2{%
512  \vskip\abovecaptionskip
513  \sbox\@tempboxa{#1: #2}%
514  \ifdim \wd\@tempboxa >\hsize
515    #1: #2\par
516  \else
517    \global \@minipagefalse
518    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
519  \fi
520  \vskip\belowcaptionskip}
521
522\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
523\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
524\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
525\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
526\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
527\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
528\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
529
530\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
531\DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
532
533\newcommand\@pnumwidth{1.55em}
534\newcommand\@tocrmarg{2.55em}
535\newcommand\@dotsep{4.5}
536\setcounter{tocdepth}{3}
537\newcommand\tableofcontents{%
538    \section*{\contentsname
539        \@mkboth{%
540           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
541    \@starttoc{toc}%
542    \if@titlepage
543        \pagebreak
544    \fi
545    }
546
547\newcommand*\l@part[2]{%
548  \ifnum \c@tocdepth >-2\relax
549    \addpenalty\@secpenalty
550    \addvspace{2.25em \@plus\p@}%
551    \begingroup
552      \parindent \z@ \rightskip \@pnumwidth
553      \parfillskip -\@pnumwidth
554      {\leavevmode
555       \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
556       \nobreak
557       \if@compatibility
558         \global\@nobreaktrue
559         \everypar{\global\@nobreakfalse\everypar{}}%
560      \fi
561    \endgroup
562  \fi}
563\newcommand*\l@section[2]{%
564  \ifnum \c@tocdepth >\z@
565    \addpenalty\@secpenalty
566    \addvspace{1.0em \@plus\p@}%
567    \setlength\@tempdima{1.5em}%
568    \begingroup
569      \parindent \z@ \rightskip \@pnumwidth
570      \parfillskip -\@pnumwidth
571      \leavevmode \bfseries
572      \advance\leftskip\@tempdima
573      \hskip -\leftskip
574      #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
575    \endgroup
576  \fi}
577
578\newcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
579\newcommand*\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
580\newcommand*\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
581\newcommand*\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
582\newcommand\listoffigures{%
583    \section*{\listfigurename
584      \@mkboth{\MakeUppercase\listfigurename}%
585              {\MakeUppercase\listfigurename}}%
586    \@starttoc{lof}%
587    }
588\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
589\newcommand\listoftables{%
590    \section*{\listtablename
591      \@mkboth{%
592          \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}%
593    \@starttoc{lot}%
594    }
595\let\l@table\l@figure
596\newdimen\bibindent
597\setlength\bibindent{1.5em}
598
599\newenvironment{thebibliography}[1]
600     {\section*{\refname
601        \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
602      \list{\@biblabel{\@arabic\c@enumiv}}%
603           {\settowidth\labelwidth{\@biblabel{#1}}%
604            \leftmargin\labelwidth
605            \advance\leftmargin\labelsep
606            \@openbib@code
607            \usecounter{enumiv}%
608            \let\p@enumiv\@empty
609            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
610      \sloppy
611      \clubpenalty4000
612      \@clubpenalty \clubpenalty
613      \widowpenalty4000%
614      \sfcode`\.\@m}
615     {\def\@noitemerr
616       {\@latex@warning{Empty `thebibliography' environment}}%
617      \endlist}
618\renewcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
619\let\@openbib@code\@empty
620\newenvironment{theindex}
621               {\if@twocolumn
622                  \@restonecolfalse
623                \else
624                  \@restonecoltrue
625                \fi
626                \columnseprule \z@
627                \columnsep 35\p@
628                \twocolumn[\section*{\indexname}]%
629                \@mkboth{\MakeUppercase\indexname}%
630                        {\MakeUppercase\indexname}%
631                \thispagestyle{plain}\parindent\z@
632                \parskip\z@ \@plus .3\p@\relax
633                \let\item\@idxitem}
634               {\if@restonecol\onecolumn\else\clearpage\fi}
635
636\def\longrule{\color{WARPBlue} \hbox to \linewidth{\hss
637              \vrule width \fullwidth height 1.0\p@ depth \z@} \color{black}}
638\def\longthickrule{\par \color{WARPBlue} \hbox to \linewidth{\hss
639              \vrule width \fullwidth height 3.0\p@ depth \z@}\color{black}\par}
640
641\newcommand\@idxitem{\par\hangindent 40\p@}
642\newcommand\subitem{\@idxitem \hspace*{20\p@}}
643\newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
644\newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
645\renewcommand\footnoterule{%
646  \kern-3\p@
647  \hrule\@width.4\columnwidth
648  \kern2.6\p@}
649\newcommand\@makefntext[1]{%
650    \parindent 1em%
651    \noindent
652    \hb@xt@1.8em{\hss\@makefnmark}#1}
653\newcommand\contentsname{Contents}
654\newcommand\listfigurename{List of Figures}
655\newcommand\listtablename{List of Tables}
656\newcommand\refname{References}
657\newcommand\indexname{Index}
658\newcommand\figurename{Figure}
659\newcommand\tablename{Table}
660\newcommand\partname{Part}
661\newcommand\appendixname{Appendix}
662\newcommand\abstractname{Abstract}
663
664\def\today{\ifcase\month\or
665  January\or February\or March\or April\or May\or June\or
666  July\or August\or September\or October\or November\or December\fi
667  \space\number\day, \number\year}
668
669\def\shortday{\number\day-\ifcase\month\or Jan\or Feb\or Mar\or Apr\or May\or Jun\or
670  Jul\or Aug\or Sep\or Oct\or Nov\or Dec\fi
671  -\number\year}
672
673\setlength\columnsep{10\p@}
674\setlength\columnseprule{0\p@}
675
676\pagestyle{plain}
677\pagenumbering{arabic}
678
679\def\@oddhead{\vbox{\hbox to\linewidth{\hss\hbox to\fullwidth{
680      {\rlap{\parbox[b]{\textwidth}{\raggedright{\bf{\@title}}}}\hfill%
681      \parbox[b]{\textwidth}{\centering{\@confidential}}\hfill%
682      \llap{\parbox[b]{\textwidth}{\raggedleft{\includegraphics[scale=.5]{warplogo}}}}}}}%
683      \vskip  1.0\p@ \longrule }}
684
685\def\@oddfoot{\vbox{\vskip-\footruleskip%
686      \longrule%\vskip-1in%1.0\p@%
687      \vskip-.25in%
688      \hbox to\linewidth{\hss\hbox to\fullwidth{%
689      {\rlap{\parbox[t]{\textwidth{\raggedright{\footnotesize{ver. \@version : \shortday}}}}}\hfill%
690      \parbox[t]{1\fullwidth}{\centering{\footnotesize{\href{http://warp.rice.edu}{http://warp.rice.edu}}}}\hfill%
691      \llap{\parbox[t]{\textwidth}{\raggedleft{\thepage}}}}}}}}
692
693\def\@evenfoot{\@oddfoot}
694\def\@evenhead{\@oddhead}
695
696
697\raggedbottom
698
699\onecolumn
700\endinput
Note: See TracBrowser for help on using the repository browser.