summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/erdc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-07-03 23:28:18 +0000
committerKarl Berry <karl@freefriends.org>2009-07-03 23:28:18 +0000
commitf6dc18658ba063341f5bb039c52e0f67a292b484 (patch)
treeaed7184148242d7907f9f39ab887759f556c8edc /Master/texmf-dist/tex/latex/erdc
parent0e7b2310777075d5431765efc0a1930a5def02a2 (diff)
new latex package erdc (2jul09)
git-svn-id: svn://tug.org/texlive/trunk@14090 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/erdc')
-rw-r--r--Master/texmf-dist/tex/latex/erdc/erdc.cls430
1 files changed, 430 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/erdc/erdc.cls b/Master/texmf-dist/tex/latex/erdc/erdc.cls
new file mode 100644
index 00000000000..c819f5e5c2f
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/erdc/erdc.cls
@@ -0,0 +1,430 @@
+%%
+%% This is file `erdc.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% erdc.dtx (with options: `class')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% For the copyright see the source file.
+%%
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from erdc.cls.
+%%
+%% For distribution of the original source see the terms
+%% for copying and modification in the file erdc.dtx.
+%%
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% \CharacterTable
+%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{erdc}
+[2009/03/20 v0.1 Typesetting Technical Information Reports of
+the Engineer Research and Development Center (ERDC),
+US Army Corps of Engineers]
+\long\def\erdc@size@warning#1{%
+ \ClassWarning{erdc}{Size-changing option #1 will not be
+ honored}}%
+\DeclareOption{8pt}{\erdc@size@warning{\CurrentOption}}%
+\DeclareOption{9pt}{\erdc@size@warning{\CurrentOption}}%
+\DeclareOption{10pt}{\erdc@size@warning{\CurrentOption}}%
+\DeclareOption{11pt}{\erdc@size@warning{\CurrentOption}}%
+\DeclareOption{12pt}{\erdc@size@warning{\CurrentOption}}%
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
+\ProcessOptions\relax
+\LoadClass[12pt,twoside]{report}
+\RequirePackage{graphicx,color,caption,longtable}
+\usepackage{mathptmx}
+\usepackage[scaled]{helvet}
+\usepackage{courier}
+\RequirePackage[letterpaper, top=1in, bottom=1in,
+ left=1.5in, right=1.5in]{geometry}
+\setlength{\parindent}{0pt}
+\setlength{\parskip}{\baselineskip}
+\RequirePackage{fancyhdr}
+\renewcommand{\headrulewidth}{0.1pt}
+\renewcommand{\footrulewidth}{0pt}
+\fancyhfoffset{35pt}
+\pagestyle{fancy}
+\lhead{\textsf{\textbf{\footnotesize\@reportnum}}}
+\rhead{\textsf{\textbf{\footnotesize\thepage}}}
+\chead{}
+\lfoot{}
+\cfoot{}
+\rfoot{}
+\newif\if@frontmatter
+\@frontmatterfalse
+\newif\if@appendix
+\@appendixfalse
+\def\frontmatter{%
+ \pagenumbering{roman}%
+ \@frontmattertrue
+ \@appendixfalse}
+\def\mainmatter{%
+ \cleardoublepage
+ \pagenumbering{arabic}%
+ \@frontmatterfalse
+ \@appendixfalse}
+\def\appendix{%
+ \clearpage
+ \@frontmatterfalse
+ \@appendixtrue
+ \@addtoreset{table}{chapter}%
+ \@addtoreset{equation}{chapter}%
+ \@addtoreset{figure}{chapter}%
+ \@addtoreset{section}{chapter}%
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@Alph\c@chapter}%
+ \gdef\thefigure{\@Alph\c@chapter\@arabic\c@figure}%
+ \gdef\thetable{\@Alph\c@chapter\@arabic\c@table}%
+ \gdef\theequation{\@Alph\c@chapter\@arabic\c@equation}}
+\def\laboratory#1{\gdef\@laboratory{#1}}
+\laboratory{Engineer Research and\\Development Center}
+\def\reportnum#1{\gdef\@reportnum{#1}}
+\reportnum{ERDC TR-01-01}
+\def\program#1{\gdef\@program{#1}}
+\program{}
+\newcommand{\subtitle}[1]{\gdef\@subtitle{#1}}
+\def\@subtitle{}
+\newcommand{\xandlist}[4]{\@andlista{{#1}{#2}{#3}}#4\and\and}
+\def\@andlista#1#2\and#3\and{\@andlistc{#2}\@ifnotempty{#3}{%
+ \@andlistb#1{#3}}}
+\def\@andlistb#1#2#3#4#5\and{%
+ \@ifempty{#5}{%
+ \@andlistc{#2#4}%
+ }{%
+ \@andlistc{#1#4}\@andlistb{#1}{#3}{#3}{#5}%
+ }}
+\let\@andlistc\@iden
+\newcommand{\nxandlist}[4]{%
+ \def\@andlistc##1{\toks@\@xp{\the\toks@##1}}%
+ \toks@{\toks@\@emptytoks \@andlista{{#1}{#2}{#3}}}%
+ \the\@xp\toks@#4\and\and
+ \edef#4{\the\toks@}%
+ \let\@andlistc\@iden}
+\def\@@and{and}
+\newcommand{\andify}{%
+ \nxandlist{\unskip, }{\unskip{} \@@and~}{\unskip, \@@and~}}
+\def\and{\unskip{ }\@@and{ }\ignorespaces}
+\let\@xp\expandafter\relax
+\let\@nx=\noexpand
+\def\@oparg#1[#2]{\@ifnextchar[{#1}{#1[#2]}}
+\long\def\@ifempty#1{\@xifempty#1@@..\@nil}
+\long\def\@xifempty#1#2@#3#4#5\@nil{%
+ \ifx#3#4\@xp\@firstoftwo\else\@xp\@secondoftwo\fi}
+\long\def\@ifnotempty#1{\@ifempty{#1}{}}
+\def\setboxz@h{\setbox\z@\hbox}
+\def\@addpunct#1{%
+ \relax\ifhmode
+ \ifnum\spacefactor>\@m \else#1\fi
+ \fi}
+\newtoks\@emptytoks
+\def\authors{}
+\def\addresses{}
+\def\author#1{%
+ \ifx\@empty\authors\gdef\authors{#1}\else
+ \g@addto@macro{\authors}{\and#1}\fi
+ \ifx\@empty\@addresses\gdef\addresses{\author{#1}}\else
+ \g@addto@macro{\addresses}{\par\author{#1}}\fi}
+\def\affiliation#1{%
+ \ifx\@empty\@addresses\gdef\addresses{#1\par}\else
+ \g@addto@macro{\addresses}{#1\par\vspace{\baselineskip}}\fi}
+\def\today{\ifcase\month\or
+ January\or February\or March\or April\or May\or June\or
+ July\or August\or September\or October\or November\or December\fi
+ \space \number\year}
+\newcommand{\coverart}[2][]{%
+ \def\@tempa{#1}%
+ \ifx\@empty\@tempa
+ \gdef\@coverart{\includegraphics[width=450\p@]{#2}}\else
+ \gdef\@coverart{\includegraphics[#1]{#2}}\fi}
+\def\@coverart{}%
+\def\reporttype#1{\gdef\@reporttype{#1}}
+\reporttype{}
+\def\distribution#1{\gdef\@distribution{#1}}
+\distribution{Approved for public release; distribution is unlimited.}
+\def\preparedfor#1{\gdef\@preparedfor{#1}}
+\preparedfor{U.S. Army Corps of Engineers\\ Washington, DC 20314-1000}
+\def\contractnum#1{\gdef\@contractnum{#1}}
+\contractnum{}
+\def\monitoredby#1{\gdef\@monitoredby{#1}}
+\monitoredby{}
+\def\additionalinfo#1{\gdef\@additionalinfo{#1}}
+\additionalinfo{}
+\newbox\abstractbox
+\renewenvironment{abstract}{%
+ \global\setbox\abstractbox=\vtop \bgroup
+ \normalfont
+ \list{}{\labelwidth\z@
+ \leftmargin\z@ \rightmargin\leftmargin
+ \listparindent\z@ \itemindent\z@
+ \parsep\z@ \topsep\z@
+ \let\fullwidthdisplay\relax
+ }%
+ \item[\hskip\labelsep\bfseries Abstract:]%
+}{%
+ \endlist\egroup}
+\long\def\disclaimer#1{\long\gdef\@disclaimer{#1}}
+\disclaimer{The contents of this report are not to be used for
+advertising, publication, or promotional purposes. Citation of trade
+names does not constitute an official endorsement or approval of the
+use of such commercial products. All product names and trademarks
+cited are the property of their respective owners. The findings of
+this report are not to be construed as an official Department of the
+Army position unless so designated by other authorized documents.
+
+\textbf{DESTROY THIS REPORT WHEN NO LONGER NEEDED. DO NOT RETURN IT
+TO THE ORIGINATOR.}}
+\newenvironment{@coverlist}{\begin{list}{}{%
+ \leftmargin40\p@\rightmargin-100\p@%
+ \topsep\z@\partopsep\z@\labelwidth\z@\labelsep\z@}\item{}}{%
+ \end{list}}
+\newenvironment{@titlelist}{\begin{list}{}{%
+ \leftmargin-20\p@\rightmargin100\p@%
+ \topsep\z@\partopsep\z@\labelwidth\z@\labelsep\z@}\item{}}{%
+ \end{list}}
+\newif\if@titleblock
+\newenvironment{@titleblock}{%
+ \list{}{\labelwidth80\p@\labelsep10\p@ \leftmargin70\p@
+ \rightmargin-150\p@
+ \let\makelabel\@titleblocklabel}}{\endlist}
+\newcommand*{\@titleblocklabel}[1]{\hfill\small#1}
+\def\maketitle{%
+ \thispagestyle{empty}%
+ \enlargethispage{0.54in}%
+ \vspace*{-0.95in}
+ \makebox[0cm][r]{%
+ \raisebox{-720\p@}[\z@][\z@]{%
+ \rotatebox{90}{\makebox[\z@][l]{%
+ \colorbox{red}{\color{white}\parbox{720\p@}{%
+ \rule{0\p@}{85\p@}%
+ \hspace{28\p@}\raisebox{40\p@}{%
+ \parbox[c]{300\p@}{\LARGE\sffamily\@laboratory}%
+ \hspace{60\p@}%
+ \parbox[c]{300\p@}{\hfill\Large\sffamily\@reportnum}}}}}}}%
+ \hspace*{-14\p@}}%
+ \makebox[0cm][r]{\raisebox{-720\p@}[\z@][\z@]{\rule{8\p@}{726\p@}%
+ \hspace{-24\p@}}}%
+ \begin{@coverlist}%
+ \sffamily
+ \hfill\parbox{145\p@}{
+ \includegraphics[width=65\p@]{red_corps_castle2}\\
+ {\bfseries
+ US Army Corps\\
+ of Engineers\raisebox{-1\p@}{\scriptsize\textregistered}}\\
+ Engineering Research and\\
+ Development Center}\par
+ \vspace{0.5cm}%
+ {\sffamily\itshape\@program\par}%
+ \vspace{0.3cm}%
+ {\raggedright\LARGE\bfseries\@title\par
+ \vspace{0.3cm}%
+ \normalsize\bfseries\@subtitle\par}%
+ \vspace{0.3cm}%
+ \begin{minipage}[t]{300\p@}\raggedright
+ \nxandlist{\unskip, }{\unskip{} \@@and~}{\unskip{} \@@and~}\authors
+ \authors\end{minipage}%
+ \begin{minipage}[t]{150\p@}\flushright\@date\end{minipage}\par
+ \vspace{0.3cm}%
+ \@coverart
+ \end{@coverlist}%
+ \vfill
+ \begin{@coverlist}%
+ \sffamily\small\@distribution
+ \end{@coverlist}%
+ \hbox{}\newpage\thispagestyle{empty}\hbox{}\newpage
+ \thispagestyle{empty}%
+ \setcounter{page}{1}%
+ \begin{@titlelist}%
+ \sffamily
+ \begin{minipage}[t]{275\p@}%
+ \bfseries\@program
+ \end{minipage}%
+ \begin{minipage}[t]{175\p@}%
+ \bfseries\flushright\@reportnum\\\@date
+ \end{minipage}\par
+ \vspace*{1cm}%
+ {\bfseries\Large\@title\par}
+ {\bfseries\@subtitle\par}
+ \vspace*{0.3cm}%
+ \def\author##1{%
+ \def\@tempa{##1}%
+ \nxandlist{\unskip, }{\unskip{} \@@and~}{\unskip{} \@@and~}\@tempa
+ {\upshape\@tempa}\par}%
+ \textit{\addresses}\par
+ \vspace{0.3cm}%
+ \@reporttype\par
+ {\small\@distribution\par}%
+ \end{@titlelist}%
+ \vfill
+ \begin{@titlelist}%
+ \sffamily
+ \ifx\@additionalinfo\@empty\else\@additionalinfo\par\fi
+ \@titleblockfalse
+ \ifx\@empty\@preparedfor\relax\else\@titleblocktrue\fi
+ \ifx\@empty\@contractnum\relax\else\@titleblocktrue\fi
+ \ifx\@empty\@monitoredby\relax\else\@titleblocktrue\fi
+ \if@titleblock
+ \begin{@titleblock}%
+ \ifx\@empty\@preparedfor\else
+ \item[Prepared for]\@preparedfor
+ \fi
+ \ifx\@empty\@contractnum\else
+ \item[Under]\@contractnum
+ \fi
+ \ifx\@empty\@monitoredby\else
+ \item[Monitored by]\@monitoredby
+ \fi
+ \end{@titleblock}
+ \fi
+ \end{@titlelist}%
+ \clearpage
+ \ifvoid\abstractbox
+ \else
+ \box\abstractbox
+ \prevdepth\z@
+ \fi
+ \vfill
+ \bgroup
+ \setlength{\fboxsep}{5\p@}%
+ \fbox{\parbox{\textwidth}{\fontsize{8.5\p@}{9.5\p@}\selectfont
+ \parskip\baselineskip
+ \textbf{Disclaimer:} \@disclaimer}}%
+ \egroup
+ \clearpage}
+\def\cl@chapter{}
+\renewcommand\chapter{%
+ \clearpage
+ \global\@topnum\z@
+ \@afterindentfalse
+ \secdef\@chapter\@schapter}
+\def\@chapter[#1]#2{%
+ \if@frontmatter
+ \addcontentsline{toc}{chapter}{#1}%
+ \@makechapterhead{#2}%
+ \else
+ \refstepcounter{chapter}%
+ \typeout{\@chapapp\space\thechapter.}%
+ \if@appendix
+ \addcontentsline{toc}{chapter}%
+ {\@chapapp\space\thechapter: #1}%
+ \@makechapterhead{\@chapapp\space\thechapter: #2}%
+ \else
+ \addcontentsline{toc}{chapter}%
+ {\protect\numberline{\thechapter}#1}%
+ \@makechapterhead{\thechapter\quad#2}%
+ \fi
+ \fi
+ \@afterheading}
+\def\@schapter#1{%
+ \if@appendix
+ \addcontentsline{toc}{chapter}{\@chapapp: #1}%
+ \@makechapterhead{\@chapapp: #1}%
+ \else
+ \addcontentsline{toc}{chapter}{#1}%
+ \@makechapterhead{#1}%
+ \fi
+ \@afterheading}
+\def\@makechapterhead#1{%
+ \vspace*{15\p@}%
+ {\hskip-35\p@\parbox{\textwidth}{%
+ \parindent\z@\raggedright
+ \interlinepenalty\@M
+ \LARGE \bfseries\sffamily #1\par}\par\nobreak
+ \vspace*{10\p@}%
+ }}
+\renewcommand \theequation {\@arabic\c@equation}
+\renewcommand \thesection {\@arabic\c@section}
+\setcounter{secnumdepth}{1}
+\setcounter{tocdepth}{2}
+\renewcommand\section{%
+ \addpenalty\@secpenalty\nobreak
+ \secdef\@section\@ssection}
+\def\@section[#1]#2{%
+ \addcontentsline{toc}{section}{#1}%
+ \hskip-35\p@\parbox{\textwidth}{\noindent\raggedright\interlinepenalty\@M
+ \large\sffamily\bfseries#2}
+ \@afterheading
+ \nobreak\par}
+\def\@ssection#1{\@section[#1]{#1}}
+\renewcommand\subsection{\par
+ \addpenalty\@secpenalty\nobreak
+ \secdef\@subsection\@ssubsection}
+\def\@subsection[#1]#2{%
+ \addcontentsline{toc}{subsection}{\itshape#1}%
+ {\noindent\raggedright\interlinepenalty\@M
+ \normalsize\sffamily\bfseries#2}\nobreak\par}
+\def\@ssubsection#1{\@subsection[#1]{#1}}
+\def\specialchapter#1{%
+ \clearpage
+ \global\@topnum\z@
+ \@afterindentfalse
+ \@makechapterhead{#1}\par
+ \@afterheading}
+\def\@dotsep{0.5}
+\renewcommand\l@chapter[2]{%
+ \addpenalty{-\@highpenalty}%
+ \vskip5\p@
+ \bgroup
+ \parindent\z@\rightskip\@pnumwidth
+ \parfillskip-\@pnumwidth
+ \advance\leftskip2em\relax
+ \leavevmode\bfseries
+ \hskip-\leftskip
+ #1\nobreak\leaders\hbox{$\m@th\mkern\@dotsep
+ mu\hbox{.}\mkern\@dotsep
+ mu$}\hfill\nobreak\hb@xt@\@pnumwidth{\hfill#2}\par
+ \vskip5\p@
+ \penalty\@highpenalty
+ \egroup}
+\renewcommand\tableofcontents{%
+ \specialchapter{\contentsname}%
+ \def\numberline##1{\hb@xt@\@pnumwidth{##1\hfill}}%
+ {\parskip2.5\p@\footnotesize\sffamily\@starttoc{toc}}}
+\renewcommand\listoffigures{%
+ \chapter{\listfigurename}%
+ \def\numberline##1{Figure ##1. }%
+ {\parskip2.5\p@\footnotesize\sffamily\@starttoc{lof}}}
+\renewcommand\listoftables{%
+ \chapter{\listtablename}%
+ \def\numberline##1{Table ##1. }%
+ {\parskip2.5\p@\footnotesize\sffamily\@starttoc{lot}}}
+\def\listfiguretablename{Figures and Tables}
+\newcommand\listoffiguresandtables{%
+ \chapter{\listfiguretablename}
+ {\sffamily\bfseries\normalsize Figures\par}%
+ \def\numberline##1{Figure ##1. }%
+ {\parskip2.5\p@\footnotesize\sffamily\@starttoc{lof}}%
+ {\sffamily\bfseries\normalsize Tables\par}%
+ \def\numberline##1{Table ##1. }%
+ {\parskip2.5\p@\footnotesize\sffamily\@starttoc{lot}}}
+\renewcommand\bibname{References}
+\renewcommand \thefigure {\@arabic\c@figure}
+\renewcommand \thetable {\@arabic\c@table}
+\captionsetup{justification=centering,font={footnotesize,sf,bf},
+labelsep=period}
+\captionsetup[table]{position=top}
+\def\arraystretch{1.3}
+\endinput
+%%
+%% End of file `erdc.cls'.