% pamphlet.sty 29-Apr-1986
\typeout{Document Style 'pamphlet', by RL Aurbach. V1.0 released April 29, 1986}
\def\@ptsize{1}			     \@namedef{ds@10pt}{\def\@ptsize{0}}
\@namedef{ds@11pt}{\def\@ptsize{1}}  \@namedef{ds@12pt}{\def\@ptsize{2}} 
\def\ds@twoside{\@twosidetrue \@mparswitchtrue} \def\ds@draft{\overfullrule
5pt}
\@options
\input pam1\@ptsize.sty\relax
\input crlext.sty\relax

\def\glossaryname{Glossary}
\def\labelenumi{\arabic{enumi}.} 
\def\theenumi{\arabic{enumi}} 
\def\labelenumii{(\alph{enumii})}
\def\theenumii{\alph{enumii}}
\def\p@enumii{\theenumi}
\def\labelenumiii{\roman{enumiii}.} 
\def\theenumiii{\roman{enumiii}}
\def\p@enumiii{\theenumi(\theenumii)} 
\def\labelenumiv{\Alph{enumiv}.}
\def\theenumiv{\Alph{enumiv}} 
\def\p@enumiv{\p@enumiii\theenumiii}

\def\labelitemi{$\bullet$}
\def\labelitemii{\bf --}
\def\labelitemiii{$\ast$}
\def\labelitemiv{$\cdot$}

\def\verse{\let\\=\@centercr 
 \list{}{\itemsep\z@ \itemindent -1.5em\listparindent \itemindent 
 \rightmargin\leftmargin\advance\leftmargin 1.5em}\item[]}
\let\endverse\endlist

\def\quotation{\list{}{\listparindent 1.5em
 \itemindent\listparindent
 \rightmargin\leftmargin \parsep 0pt plus 1pt}\item[]}
\let\endquotation=\endlist

\def\quote{\list{}{\rightmargin\leftmargin}\item[]}
\let\endquote=\endlist

\def\descriptionlabel#1{\hspace\labelsep \bf #1}
\def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
 \let\makelabel\descriptionlabel}}
\let\enddescription\endlist

\def\titlepage{\@restone\colfalse\if@twocolumn\@restonecoltrue\onecolumn
 \else \newpage \fi \thispagestyle{empty}}
\def\endtitlepage{\cleardoublepage \if@restonecol\twocolumn \fi \c@page \@ne}

\arraycolsep 5pt \tabcolsep 6pt \arrayrulewidth .4pt \doublerulesep 2pt 
\tabbingsep \labelsep

\skip\@mpfootins = \skip\footins
\fboxsep = 3pt \fboxrule = .4pt

\newcounter{part}
\newcounter {section}
\newcounter {subsection}[section]
\newcounter {subsubsection}[subsection]
\newcounter {paragraph}[subsubsection]
\newcounter {subparagraph}[paragraph]

\def\thepart{\Roman{part}} \def\thesection {\arabic{section}}
\def\thesubsection {\thesection.\arabic{subsection}}
\def\thesubsubsection {\thesubsection .\arabic{subsubsection}}
\def\theparagraph {\thesubsubsection.\arabic{paragraph}}
\def\thesubparagraph {\theparagraph.\arabic{subparagraph}}

\def\@pnumwidth{1.55em}
\def\@tocrmarg {2.55em}
\def\@dotsep{4.5}
\setcounter{tocdepth}{5}

\def\tableofcontents{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
 \fi\cleardoublepage\thispagestyle{plain}
 \section*{Contents\markboth{Contents}{Contents}}
 \typeout{Table of Contents.}
 \begingroup \parskip \z@ plus 1 pt \@starttoc{toc} \endgroup
 \if@restonecol\twocolumn\fi \cleardoublepage}

\def\l@part#1#2{\addpenalty{\@secpenalty}
 \addvspace{2.25em plus 1pt} \begingroup
 \@tempdima 3em \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth 
 {\Large\bf \leavevmode #1\hfil \normalsize\rm \hbox to\@pnumwidth{\hss #2}}\par
 \nobreak \endgroup}

\def\l@section#1#2{\addpenalty{\@secpenalty} \addvspace{1.0em plus 1pt}
 \@tempdima 1.5em \begingroup
 \parindent \z@ \rightskip \@pnumwidth 
 \parfillskip -\@pnumwidth 
 \large\bf \leavevmode #1\hfil \normalsize\rm \hbox to\@pnumwidth{\hss #2}\par
 \endgroup}

\def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}

\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}

\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}

\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}

\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn\fi
 \cleardoublepage\thispagestyle{plain}
 \section*{List of Figures\markboth
 {List of Figures}{List of Figures}} \typeout{List of Figures.}
 \begingroup \parskip \z@ plus 1pt \@starttoc{lof} \endgroup
 \if@restonecol\twocolumn \fi \cleardoublepage}

\def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}

\def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn\fi
 \cleardoublepage\thispagestyle{plain}
 \section*{List of Tables\markboth
 {List of Tables}{List of Tables}} \typeout{List of Tables.}
 \begingroup \parskip \z@ plus 1pt \@starttoc{lot} \endgroup
 \if@restonecol\twocolumn \fi \cleardoublepage}

\let\l@table\l@figure

\def\thebibliography#1{\section{References} \list

 {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus -.07em}
 \sloppy
 \sfcode`\.=1000\relax}

\let\endthebibliography=\endlist

\newif\if@restonecol
\def\theindex{\cleardoublepage\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
 \columnseprule \z@
 \columnsep 35pt\twocolumn[\section*{\indexname}]
 \addcontentsline{toc}{section}{\indexname}  \typeout{Index.}
 \markboth{\indexname}{\indexname}\thispagestyle{plain}\parindent\z@
 \parskip\z@ plus .3pt\relax\let\item\@idxitem}
\def\@idxitem{\par\hangindent 40pt}
\def\subitem{\par\hangindent 40pt \hspace*{20pt}}
\def\subsubitem{\par\hangindent 40pt \hspace*{30pt}}
\def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi}
\def\indexspace{\par \vskip 10pt plus 5pt minus 3pt\relax}

\def\theglossary{\section{\glossaryname} \typeout{Glossary.} \begin{infomap}}
\def\endtheglossary{\end{infomap}}

\def\footnoterule{\kern-3\p@ 
 \hrule width .4\columnwidth 
 \kern 2.6\p@}

\long\def\@makefntext#1{\parindent 1em\noindent 
 \hbox to 1.8em{\hss$^{\@thefnmark}$}#1}

\setcounter{topnumber}{2}
\def\topfraction{.7}
\setcounter{bottomnumber}{1}
\def\bottomfraction{.3}
\setcounter{totalnumber}{3}
\def\textfraction{.2}
\def\floatpagefraction{.5}
\setcounter{dbltopnumber}{2}
\def\dbltopfraction{.7}
\def\dblfloatpagefraction{.5}

\long\def\@makecaption#1#2{
 \vskip 10pt 
 \setbox\@tempboxa\hbox{#1: #2}
 \ifdim \wd\@tempboxa >\hsize \unhbox\@tempboxa\par \else \hbox
to\hsize{\hfil\box\@tempboxa\hfil} 
 \fi}

\newcounter{figure}
\def\thefigure{\@arabic\c@figure}
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\ext@figure{lof}
\def\fnum@figure{Figure \thefigure}
\def\figure{\@float{figure}}
\let\endfigure\end@float
\@namedef{figure*}{\@dblfloat{figure}}
\@namedef{endfigure*}{\end@dblfloat}
\newcounter{table}
\def\thetable{\@arabic\c@table}
\def\fps@table{tbp}
\def\ftype@table{2}
\def\ext@table{lot} 
\def\fnum@table{Table \thetable}
\def\table{\@float{table}}
\let\endtable\end@float
\@namedef{table*}{\@dblfloat{table}}
\@namedef{endtable*}{\end@dblfloat}

\mark{{}{}}

\def\ps@headings{
  \def\@oddfoot{\rm \@pagedate \hfil {\small \@confidentiality}
    \hfil {\large\bf \thepage}}
  \def\@evenfoot{{\large\bf \thepage} \hfil {\small \@confidentiality}
    \hfil \rm \@pagedate}
  \def\@oddhead{\hbox{} \hfil \Large\bf \rightmark}
  \def\@evenhead{\Large\bf \leftmark \hfil}
  \def\sectionmark##1{\markboth {##1}{##1}}
  \def\subsectionmark##1{}}

\def\ps@myheadings{
  \def\@oddfoot{\rm \@pagedate \hfil {\small \@confidentiality}
    \hfil {\large\bf \thepage}}
  \def\@evenfoot{{\large\bf \thepage} \hfil {\small \@confidentiality}
    \hfil \rm \@pagedate}
  \def\@oddhead{\hbox{} \hfil \rightmark}  \def\@evenhead{\leftmark \hfil}
  \def\sectionmark##1{}  \def\subsectionmark##1{}}

\def\ps@plain{
  \def\@oddfoot{\rm \@pagedate \hfil {\small \@confidentiality}
    \hfil {\large\bf \thepage}}
  \def\@evenfoot{{\large\bf \thepage} \hfil {\small \@confidentiality}
    \hfil \rm \@pagedate}
  \def\@oddhead{}  \def\@evenhead{}
  \def\sectionmark##1{}  \def\subsectionmark##1{}}

\def\ps@empty{
  \def\@oddfoot{\hbox{} \hfil {\small \@confidentiality} \hfil}
  \def\@evenfoot{\hbox{} \hfil {\small \@confidentiality} \hfil}
  \def\@oddhead{}  \def\@evenhead{}
  \def\sectionmark##1{}  \def\subsectionmark##1{}}

\def\today{\@ifstar%
 {\number\day-\ifcase\month\or Jan\or Feb\or Mar \or Apr\or May\or Jun\or
 Jul\or Aug\or Sep\or Oct\or Nov\or Dec\fi-\number\year}
 {\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\day, \number\year}}

\def\@pagedate{\hbox{}}   \def\@confidentiality{\hbox{}}
\def\pagedate#1{\def\@pagedate{\hbox{#1}}}
\def\confidentiality#1{\def\@confidentiality{\hbox{#1}}}

\def\theequation{\arabic{equation}}

\ps@plain \pagenumbering{arabic} \onecolumn \raggedbottom
\def\title#1{\def\@title{#1}}			\def\@title{}
\def\author#1{\def\@author{#1}}			\def\@author{}
\def\authorfacts#1{\def\@authorfacts{#1}}	\def\@authorfacts{}
\def\version#1{\def\@version{#1}}		\def\@version{}
\def\date#1{\def\@date{#1}}			\def\@date{\today}
\def\file#1{\def\@file{#1}}			\def\@file{}

\def\thetitle{\thispagestyle{empty}\begin{center}
    \relax \vspace*{.5in}
    \huge \bf
    \begin{tabular}[t]{c}
    User's Guide \\ 
    to the \\
    \end{tabular} \\
    \Huge \bf
    \begin{tabular}{c} \@title \end{tabular} \\
    \vspace{2em}
    {\Large \bf \@version}\\
    \end{center}}

\def\abstract{\vspace{2em} \begin{center} \large\bf Abstract \end{center} \par
    \list{}{\leftmargin 4em \rightmargin\leftmargin}\item[]}
\let\endabstract=\endlist

\def\endthetitle{
    \vspace{2em}
    \begin{center}
    \begin{tabular}[t]{c}
    \bf \@author \\
    \@authorfacts \\
    \end{tabular} \\
    \vspace{1em}
    \@date
    \vfill
    [ File: \@file.QMS ]
    \end{center}
    \cleardoublepage}

\def\makeheading{\pagenumbering{arabic} \thispagestyle{plain}
    \begin{center}
    \LARGE \bf
    \begin{tabular}[t]{c}
    User's Guide \\
    to the \\
    \end{tabular} \\
    \huge \bf
    \begin{tabular}{c} \@title \end{tabular} \\
    \end{center}
    \vspace{4em}}
%
