Index: trunk/doc/latex/panstarrs.def
===================================================================
--- trunk/doc/latex/panstarrs.def	(revision 26114)
+++ trunk/doc/latex/panstarrs.def	(revision 26149)
@@ -6,6 +6,4 @@
 % LaTeX variables (cntl sequences) for entities significant to Pan-STARRS.
    \newcommand{\PS}{Pan-STARRS}
-   \newcommand{\pipelinename}{Image Processing Pipeline}
-   \newcommand{\thisdocument}{\PS/ \pipelinename\ Software Design Description}
    \newcommand\Object{\ensuremath{f}}                % an object
    \newcommand\ObjectSet{\ensuremath{\mathbf{f}}}    % a set of objects
@@ -27,4 +25,8 @@
    \newcommand\AngularPitch{\ensuremath{p_{\text{\scriptsize pixel}}}}   % angular pitch of a pixel (e.g. 0.3 arcsec)
 
+   \def\degree{\hbox{$^\circ$}}
+   \def\arcmin{\hbox{$^\prime$}}
+   \def\arcsec{\hbox{$^{\prime\prime}$}}
+
 %
 % Typsetting documentation
@@ -37,4 +39,5 @@
 % \begin{verbatim}...\end{verbatim} for longer blocks
 %
+
 \def\uncatcodespecials{\def\do##1{\catcode`##1=12}\dospecials}%
 {\catcode`\`=\active\gdef`{\relax\lq}}% this line inhibits Spanish 
@@ -44,5 +47,5 @@
      \spaceskip=0pt \xspaceskip=0pt % just in case...
      \catcode`\`=\active
-     \obeylines \uncatcodespecials \obeyspaces
+     \uncatcodespecials \obeyspaces
      \catcode`\{=1\catcode`\}=2
     }%
@@ -51,5 +54,5 @@
      \spaceskip=0pt \xspaceskip=0pt % just in case...
      \catcode`\`=\active
-     \obeylines \uncatcodespecials \obeyspaces
+     \uncatcodespecials \obeyspaces
     }%
 
@@ -60,9 +63,21 @@
 \def\CODE{\begingroup\SETUPC@DE\D@CODE}%
 
-\newcommand\note[1]{{\bf #1}}
-\newcommand\tbd[1]{\textbf{[{\color{red}#1}]}}
+\newcommand\note[1]{\textbf{\color{red}#1}}
+%\newcommand\tbd[1]{\textbf{\color{red}#1 (TBD)}}
+%\newcommand\tbr[1]{\textbf{\color{blue}#1 (TBR)}}
 \newcommand\TBD[1]{\par\tbd{#1}\par}
+\renewcommand\comment[1]{\footnote{{\color{red}#1}}}
 
 \newcommand{\file}[1]{\textit{#1}}%
+
+%
+% embedded software function prototypes and datatypes
+%
+
+\DefineVerbatimEnvironment%
+  {prototype}{Verbatim}{fontsize=\footnotesize}
+
+\DefineVerbatimEnvironment%
+  {datatype}{Verbatim}{fontsize=\footnotesize}
 
 %------------------------------------------------------------------------------
