Index: trunk/doc/latex/panstarrs.cls
===================================================================
--- trunk/doc/latex/panstarrs.cls	(revision 26114)
+++ trunk/doc/latex/panstarrs.cls	(revision 26149)
@@ -11,11 +11,16 @@
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{panstarrs}[2003/06/29 LaTeX class for PanSTARRS]
-\LoadClass[12pt]{article}
-\RequirePackage{tocloft,ifthen,fancyhdr,vmargin}
-\RequirePackage{hyperref,times,amsmath,amssymb}
+\LoadClass[11pt,letterpaper]{article}
+\RequirePackage{tocloft,ifthen,fancyhdr,vmargin,longtable}
+\RequirePackage{html}
+\RequirePackage[colorlinks,ps2pdf,bookmarks=true,bookmarksnumbered=true,plainpages=false]{hyperref} %avoid ``destination with the same identifier'' errors
+\RequirePackage{times,amsmath,amssymb,multirow}
 \RequirePackage{color,fullpage,boxedminipage,acronym,epsfig}
+\RequirePackage{psmisc}
+\RequirePackage{fancyvrb}
 
 % -- panstarrs definitions--
 \DeclareOption{panstarrs}{\input{panstarrs.def}}
+\DeclareOption{spec}{\input{spec.def}}
 
 % -- page layout options --
@@ -29,5 +34,5 @@
 \textheight=9.0in
 \textwidth=7.35in
-\headheight=12pt
+\headheight=15pt
 \headsep = 24pt
 \footskip=30pt
@@ -38,26 +43,57 @@
 \addtolength{\cftfignumwidth}{2em}
 
-% -- section numbering --
-\let\@section=\section \let\@subsection=\subsection
-\let\@subsubsection=\subsubsection
-\def\section{\renewcommand{\thefigure}{\thesection -\arabic{figure}} \setcounter{figure}{0} \@section}
-\def\subsection{\renewcommand{\thefigure}{\thesubsection -\arabic{figure}} \setcounter{figure}{0} \@subsection}
-\def\subsubsection{\renewcommand{\thefigure}{\thesubsubsection -\arabic{figure}} \setcounter{figure}{0} \@subsubsection}
-\def\paragraph{\@startsection{paragraph}{4}{\z@}%
-  {-3.5ex\@plus -1ex \@minus -.2ex}%
-  {1.5ex \@plus .2ex}%
-  {\normalsize\bf}}
-\def\subparagraph{\@startsection{subparagraph}{5}{\z@}%
-  {-3.5ex\@plus -1ex \@minus -.2ex}%
-  {1.5ex \@plus .2ex}%
-  {\normalsize\bf}}
-\def\subsubparagraph{\@startsection{subsubparagraph}{6}{\z@}%
-  {-3.5ex\@plus -1ex \@minus -.2ex}%
-  {1.5ex \@plus .2ex}%
-  {\normalsize\it}}
-\let\subsubsubsection=\paragraph
+%  % -- SRS section numbering / plain enumerate types --
+%  \let\@section=\section 
+%  \let\@subsection=\subsection
+%  \let\@subsubsection=\subsubsection
+%  
+%  \def\section{
+%  %  uncomment these to label figures by section number
+%  %  \renewcommand{\thefigure}{\thesection -\arabic{figure}} 
+%  %  \setcounter{figure}{0} 
+%    \@section
+%  }
+%  
+%  \def\subsection{
+%  %  uncomment these to label figures by section number
+%  %  \renewcommand{\thefigure}{\thesubsection -\arabic{figure}} 
+%  %  \setcounter{figure}{0} 
+%    \@subsection
+%  }
+%  
+%  \def\subsubsection{
+%  %  uncomment these to label figures by section number
+%  %  \renewcommand{\thefigure}{\thesubsubsection -\arabic{figure}} 
+%  %  \setcounter{figure}{0} 
+%    \@subsubsection
+%  }
+%  
+%  \def\paragraph{
+%    \@startsection{paragraph}{4}{\z@}%
+%      {-3.5ex\@plus -1ex \@minus -.2ex}%
+%      {1.5ex \@plus .2ex}%
+%      {\normalsize\bf}
+%  }
+%  
+%  \def\subparagraph{
+%    \@startsection{subparagraph}{5}{\z@}%
+%      {-3.5ex\@plus -1ex \@minus -.2ex}%
+%      {1.5ex \@plus .2ex}%
+%      {\normalsize\bf}
+%  }
+%  
+%  \def\subsubparagraph{
+%    \@startsection{subsubparagraph}{6}{\z@}%
+%      {-3.5ex\@plus -1ex \@minus -.2ex}%
+%      {1.5ex \@plus .2ex}%
+%      {\normalsize\it}
+%  } 
+%  
+%  \let\subsubsubsection=\paragraph
+%  \let\subsubsubsubsection=\subparagraph
+
 
 % -- section display --
-\setcounter{secnumdepth}{4} % lowest level at which counters are displayed
+\setcounter{secnumdepth}{5} % lowest level at which counters are displayed
 \setcounter{tocdepth}{3} % lowest level to be included in toc
 
@@ -71,4 +107,5 @@
 \newcommand\thesubtitle{} 
 \newcommand\thedistribution{Approved for Public Release -- Distribution is Unlimited}
+\newcommand\theaudience{panstarrs team} 
 
 \newcommand{\docnumber}[1]{\renewcommand\thedocnumber{#1} }
@@ -80,4 +117,28 @@
 \newcommand{\subtitle}[1]{ \renewcommand\thesubtitle{#1} }
 \newcommand{\distribution}[1]{ \renewcommand\thedistribution{#1} }
+\newcommand{\audience}[1]{ \renewcommand\theaudience{#1} }
+
+%%%%%%%%%%%%%%%%%%%% start of time code %%%%%%%%%%%%%%%%%%%% 
+%
+% Code for printing the time by Michael Doob <mdoob@cc.umanitoba.ca>
+%
+\newcount\hour \newcount\minute
+\hour=\time  \divide \hour by 60
+\minute=\time
+\loop \ifnum \minute > 59 \advance \minute by -60 \repeat
+\def\nowtwelve{\ifnum \hour<13 \number\hour:% 		% supresses leading 0's
+                      \ifnum \minute<10 0\fi%		% so add it it
+                      \number\minute
+                      \ifnum \hour<12 \ A.M.\else \ P.M.\fi
+	 \else \advance \hour by -12 \number\hour:% 	% supresses leading 0's
+                      \ifnum \minute<10 0\fi%		% add it in
+                      \number\minute \ P.M.\fi}
+\def\nowtwentyfour{\ifnum \hour<10 0\fi% 		% need a leading 0 
+		\number\hour:% 				% supresses leading 0's
+         	\ifnum \minute<10 0\fi% 		% add it in
+         	\number\minute}
+\def\now{\nowtwelve}
+%%%%%%%%%%%%%%%%%%%% end of time code %%%%%%%%%%%%%%%%%%%%
+
 
 % -- MAKETITLE --
@@ -101,64 +162,64 @@
 
 \def\@maketitle{
-  \pagenumbering{roman} 
-  \thispagestyle{empty} 
-  \unitlength 1.0in
-  \begin{picture}(0.0,0.0)(0.0,9.375)
-  \small
-
-  \put (7.50, 9.85){\makebox(0,0)[br]{\small      {\bf Pan-STARRS Document Control}}}
-  \put (7.50, 9.70){\makebox(0,0)[br]{\small      {\bf \thedocnumber-\theversion}}}
-
-  \put (4.006, 8.30){\line(1,0){0.1}} % put the macron on Manoa
-  \put (0.50, 8.10){\makebox(0,0)[bl]{\fontA UNIVERSITY OF HAWAII AT MANOA}}
-  \put (0.50, 7.88){\makebox(0,0)[bl]{\fontB Institute for Astrononmy}}
-
-  \put (0.50, 7.83){\line(1,0){6.5}}
-  \put (0.50, 7.63){\makebox(0,0)[bl]{\small      {\bf Pan-STARRS Project Management System}}}
-
-  \put (3.75, 5.25){\makebox(0,0)[bc]{\large {\bf \@title}}}
-  \put (3.75, 5.00){\makebox(0,0)[bc]{\large {\bf \thesubtitle}}}
-
-  \put (2.15, 4.75){\makebox(0,0)[l]{{\bf Grant Award No. }}}
-  \put (2.15, 4.57){\makebox(0,0)[l]{{\bf Prepared For    }}}
-  \put (2.15, 4.39){\makebox(0,0)[l]{{\bf Prepared By     }}}
-  \put (2.15, 4.21){\makebox(0,0)[l]{{\bf Document No.    }}}
-  \put (2.15, 4.03){\makebox(0,0)[l]{{\bf Document Date   }}}
-  \put (2.15, 3.85){\makebox(0,0)[l]{{\bf Revision        }}}
-
-  \put (3.75, 4.75){\makebox(0,0)[l]{{\bf : F29601-02-1-0268}}}
-  \put (3.75, 4.57){\makebox(0,0)[l]{{\bf : Pan-STARRS Team}}}
-  \put (3.75, 4.39){\makebox(0,0)[l]{{\bf : \@author}}}
-  \put (3.75, 4.21){\makebox(0,0)[l]{{\bf : \thedocnumber-\theversion}}}
-  \put (3.75, 4.03){\makebox(0,0)[l]{{\bf : \today}}}
-  \put (3.75, 3.85){\makebox(0,0)[l]{{\bf : \theversion}}}
-
-  \put (3.75, 2.50){\makebox(0,0)[c]{{\bf DISTRIBUTION STATEMENT}}}
-  \put (3.75, 2.30){\makebox(0,0)[c]{{\bf \thedistribution}}}
-
-  \put (3.75, 1.30){\makebox(0,0)[bc]{\scriptsize {\bf \copyright Institute for Astronomy, University of Hawaii}}}
-  \put (3.75, 1.15){\makebox(0,0)[bc]{\scriptsize {\bf 2680 Woodlawn Drive, Honolulu, Hawaii 96822}}}
-  \put (3.75, 1.00){\makebox(0,0)[bc]{\scriptsize {\bf An Equal Opportunity/Affirmative Action Institution}}}
-  \end{picture}
-
-  \pagebreak 
-  \unitlength 1.0in
-  \begin{picture}(0.0,0.0)(0.5,9.375)
-  \small
-
-  \put (1.00, 8.50){\makebox(0,0)[l]{Submitted By:}}
-  \put (1.00, 8.00){\line(1,0){5.5}}
-  \put (6.70, 8.00){\line(1,0){0.8}}
-  \put (1.00, 7.90){\makebox(0,0)[l]{[Insert Signature Block of Authorized Developer Representative]}}
-  \put (6.70, 7.90){\makebox(0,0)[l]{Date}}
-
-  \put (1.00, 7.00){\makebox(0,0)[l]{Approved By:}}
-  \put (1.00, 6.50){\line(1,0){5.5}}
-  \put (6.70, 6.50){\line(1,0){0.8}}
-  \put (1.00, 6.40){\makebox(0,0)[l]{[Insert Signature Block of Customer Developer Representative]}}
-  \put (6.70, 6.40){\makebox(0,0)[l]{Date}}
-
-  \end{picture}
-  \pagebreak 
+      \pagenumbering{roman} 
+      \thispagestyle{empty} 
+      \unitlength 1.0in
+      \begin{picture}(0.0,0.0)(0.0,9.375)
+      \small
+    
+      \put (7.50, 9.85){\makebox(0,0)[br]{\small      {\bf Pan-STARRS Document Control}}}
+      \put (7.50, 9.70){\makebox(0,0)[br]{\small      {\bf \thedocnumber-\theversion}}}
+    
+      \put (4.006, 8.30){\line(1,0){0.1}} % put the macron on Manoa
+      \put (0.50, 8.10){\makebox(0,0)[bl]{\fontA UNIVERSITY OF HAWAII AT MANOA}}
+      \put (0.50, 7.88){\makebox(0,0)[bl]{\fontB Institute for Astrononmy}}
+    
+      \put (0.50, 7.83){\line(1,0){6.5}}
+      \put (0.50, 7.63){\makebox(0,0)[bl]{\small      {\bf Pan-STARRS Project Management System}}}
+    
+      \put (3.75, 5.25){\makebox(0,0)[bc]{\large {\bf \@title}}}
+      \put (3.75, 5.00){\makebox(0,0)[bc]{\large {\bf \thesubtitle}}}
+    
+      \put (2.15, 4.75){\makebox(0,0)[l]{{\bf Coop. Agreement No. }}}
+      \put (2.15, 4.57){\makebox(0,0)[l]{{\bf Prepared For    }}}
+      \put (2.15, 4.39){\makebox(0,0)[l]{{\bf Prepared By     }}}
+      \put (2.15, 4.21){\makebox(0,0)[l]{{\bf Document No.    }}}
+      \put (2.15, 4.03){\makebox(0,0)[l]{{\bf Document Date   }}}
+      \put (2.15, 3.85){\makebox(0,0)[l]{{\bf Revision        }}}
+    
+      \put (3.75, 4.75){\makebox(0,0)[l]{{\bf : FA9451-06-2-0338}}}
+      \put (3.75, 4.57){\makebox(0,0)[l]{{\bf : \theaudience}}}
+      \put (3.75, 4.39){\makebox(0,0)[l]{{\bf : \@author}}}
+      \put (3.75, 4.21){\makebox(0,0)[l]{{\bf : \thedocnumber-\theversion}}}
+      \put (3.75, 4.03){\makebox(0,0)[l]{{\bf : \today}}}
+      \put (3.75, 3.85){\makebox(0,0)[l]{{\bf : \theversion}}}
+    
+      \put (3.75, 2.50){\makebox(0,0)[c]{{\bf DISTRIBUTION STATEMENT}}}
+      \put (3.75, 2.30){\makebox(0,0)[c]{{\bf \thedistribution}}}
+    
+      \put (3.75, 1.30){\makebox(0,0)[bc]{\footnotesize {\copyright Institute for Astronomy, University of Hawaii}}}
+      \put (3.75, 1.15){\makebox(0,0)[bc]{\footnotesize {2680 Woodlawn Drive, Honolulu, Hawaii 96822}}}
+      \put (3.75, 1.00){\makebox(0,0)[bc]{\footnotesize {An Equal Opportunity/Affirmative Action Institution}}}
+      \end{picture}
+    
+      \pagebreak 
+      \unitlength 1.0in
+      \begin{picture}(0.0,0.0)(0.5,9.375)
+      \small
+    
+      \put (1.00, 8.50){\makebox(0,0)[l]{Submitted By:}}
+      \put (1.00, 8.00){\line(1,0){5.5}}
+      \put (6.70, 8.00){\line(1,0){0.8}}
+      \put (1.00, 7.90){\makebox(0,0)[l]{[Insert Signature Block of Authorized Developer Representative]}}
+      \put (6.70, 7.90){\makebox(0,0)[l]{Date}}
+    
+      \put (1.00, 7.00){\makebox(0,0)[l]{Approved By:}}
+      \put (1.00, 6.50){\line(1,0){5.5}}
+      \put (6.70, 6.50){\line(1,0){0.8}}
+      \put (1.00, 6.40){\makebox(0,0)[l]{[Insert Signature Block of Customer Developer Representative]}}
+      \put (6.70, 6.40){\makebox(0,0)[l]{Date}}
+    
+      \end{picture}
+      \pagebreak 
 }               
 
@@ -174,5 +235,5 @@
 % Make verbatim use a \footnotesize font (to allow 110-character lines)
 \let\oldverbatim@font=\verbatim@font
-\def\verbatim@font{\oldverbatim@font\footnotesize}
+\def\verbatim@font{\oldverbatim@font\scriptsize}
 
 \def\RevisionsStart{
