<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%============================================================
% Algorithm environment header:
%   This environment is used to "wrap" the algorithmic
%   environment. If we do the typcial thing which is to wrap
%   an algorithmic block inside the "algorithm" environment, 
%   the whole algorithm will not page-break. But not wrapping
%   it loses the header. This environment fakes the algorithm
%   header and leaves the algorithmic block unwrapped so the 
%   net effect is that the algorithm will automatically split
%   across multiple pages.
% To return to a non-page-break version, replace with:
% \begin{algorithm}
% \caption{My caption}
% body
% \end{algorithm}
%============================================================
\newcounter{myalgctr}
\setcounter{myalgctr}{0}

%============================================================
% Begin: the mbalg environment: A wrapper to the algorithmic
%        environment that allows split over page breaks.
%============================================================
\newenvironment{mbalg}[1]{
\noindent 
\rule{\textwidth}{1pt}

\vspace{-0.04in}
\refstepcounter{algorithm}
\noindent
{\bf Algorithm \arabic{algorithm}:} #1

\vspace{-0.125in}
\noindent
\rule{\textwidth}{0.6pt} 

}{\vspace{-0.125in}

\noindent
\rule{\textwidth}{0.6pt}
}
%============================================================


%============================================================
% Begin: Local color definitions
%============================================================
\definecolor{mbeige}{rgb}{0.875,0.859,0.765}
\definecolor{param-blue}{rgb}{0.1,0.1,0.765}
\definecolor{mygrey}{rgb}{0.94,0.94,0.94}
\definecolor{menublue}{rgb}{0.22,0.38,0.71}
\definecolor{menugreen}{rgb}{0,0.6,0}
\definecolor{myorange}{rgb}{1,0.65,0.35}
\definecolor{bhvcolor}{rgb}{0.73,0.35,0.18}
\definecolor{magenta}{rgb}{0.8,0,0.8}
\definecolor{empty}{rgb}{0.5,0.5,0.5} 
\definecolor{invisible}{rgb}{0.5,0.5,0.5} 
\definecolor{yellow}{rgb}{1.000,1.000,0.000} 
\definecolor{purple}{rgb}{0.502,0.000,0.502} 
\definecolor{brown}{rgb}{0.647,0.165,0.165} 
\definecolor{black}{rgb}{0.000,0.000,0.000} 
\definecolor{blue}{rgb}{0.000,0.000,1.000} 
\definecolor{red}{rgb}{1.000,0.000,0.000} 
\definecolor{yellow}{rgb}{1.000,1.000,0.000} 
\definecolor{white}{rgb}{1.000,1.000,1.000} 
\definecolor{darkgreen}{rgb}{0.000,0.392,0.000} 
\definecolor{darkolivegreen}{rgb}{0.333,0.420,0.184} 
\definecolor{darkred}{rgb}{0.545,0.000,0.000} 
\definecolor{green}{rgb}{0.000,0.502,0.000} 
\definecolor{macbeige}{rgb}{0.875,0.859,0.765} 
\definecolor{macpurple}{rgb}{0.286,0.239,0.471} 
\definecolor{antiquewhite}{rgb}{0.980,0.922,0.843} 
\definecolor{aqua}{rgb}{0.000,1.000,1.000} 
\definecolor{aquamarine}{rgb}{0.498,1.000,0.831} 
\definecolor{azure}{rgb}{0.941,1.000,1.000} 
\definecolor{beige}{rgb}{0.961,0.961,0.863} 
\definecolor{bisque}{rgb}{1.000,0.894,0.769} 
\definecolor{blanchedalmond}{rgb}{1.000,0.922,0.804} 
\definecolor{blueviolet}{rgb}{0.541,0.169,0.886} 
\definecolor{brown}{rgb}{0.647,0.165,0.165} 
\definecolor{burlywood}{rgb}{0.871,0.722,0.529} 
\definecolor{cadetblue}{rgb}{0.373,0.620,0.627} 
\definecolor{chartreuse}{rgb}{0.498,1.000,0.000} 
\definecolor{chocolate}{rgb}{0.824,0.412,0.118} 
\definecolor{coral}{rgb}{1.000,0.498,0.314} 
\definecolor{cornsilk}{rgb}{1.000,0.973,0.863} 
\definecolor{cornflowerblue}{rgb}{0.392,0.584,0.929} 
\definecolor{crimson}{rgb}{0.871,0.078,0.235} 
\definecolor{cyan}{rgb}{0.000,1.000,1.000} 
\definecolor{darkblue}{rgb}{0.000,0.000,0.545} 
\definecolor{darkcyan}{rgb}{0.000,0.545,0.545} 
\definecolor{darkgoldenrod}{rgb}{0.722,0.525,0.043} 
\definecolor{darkgray}{rgb}{0.663,0.663,0.663} 
\definecolor{darkkhaki}{rgb}{0.741,0.718,0.420} 
\definecolor{darkmagenta}{rgb}{0.545,0.000,0.545} 
\definecolor{darkorange}{rgb}{1.000,0.549,0.000} 
\definecolor{darkorchid}{rgb}{0.600,0.196,0.800} 
\definecolor{darksalmon}{rgb}{0.914,0.588,0.478} 
\definecolor{darkseagreen}{rgb}{0.561,0.737,0.561} 
\definecolor{darkslateblue}{rgb}{0.282,0.239,0.545} 
\definecolor{darkslategray}{rgb}{0.184,0.310,0.310} 
\definecolor{darkturquoise}{rgb}{0.000,0.808,0.820} 
\definecolor{darkviolet}{rgb}{0.580,0.000,0.827} 
\definecolor{deeppink}{rgb}{1.000,0.078,0.576} 
\definecolor{deepskyblue}{rgb}{0.000,0.749,1.000} 
\definecolor{dimgray}{rgb}{0.412,0.412,0.412} 
\definecolor{dodgerblue}{rgb}{0.118,0.565,1.000} 
\definecolor{firebrick}{rgb}{0.698,0.133,0.133} 
\definecolor{floralwhite}{rgb}{1.000,0.980,0.941} 
\definecolor{forestgreen}{rgb}{0.133,0.545,0.133} 
\definecolor{fuchsia}{rgb}{1.000,0.000,1.000} 
\definecolor{gainsboro}{rgb}{0.863,0.863,0.863} 
\definecolor{ghostwhite}{rgb}{0.973,0.973,1.000} 
\definecolor{gold}{rgb}{1.000,0.843,0.000} 
\definecolor{goldenrod}{rgb}{0.855,0.647,0.125} 
\definecolor{greenyellow}{rgb}{0.678,1.000,0.184} 
\definecolor{honeydew}{rgb}{0.941,1.000,0.941} 
\definecolor{hotpink}{rgb}{1.000,0.412,0.706} 
\definecolor{indianred}{rgb}{0.804,0.361,0.361} 
\definecolor{indigo}{rgb}{0.294,0.000,0.510} 
\definecolor{ivory}{rgb}{1.000,1.000,0.941} 
\definecolor{khaki}{rgb}{0.941,0.902,0.549} 
\definecolor{lavender}{rgb}{0.902,0.902,0.980} 
\definecolor{lavenderblush}{rgb}{1.000,0.941,0.961} 
\definecolor{lawngreen}{rgb}{0.486,0.988,0.000} 
\definecolor{lemonchiffon}{rgb}{1.000,0.980,0.804} 
\definecolor{lightblue}{rgb}{0.678,0.847,0.902} 
\definecolor{lightcoral}{rgb}{0.941,0.502,0.502} 
\definecolor{lightcyan}{rgb}{0.878,1.000,1.000} 
\definecolor{lightgoldenrod}{rgb}{0.980,0.980,0.824} 
\definecolor{lightgray}{rgb}{0.827,0.827,0.827} 
\definecolor{lightgreen}{rgb}{0.565,0.933,0.565} 
\definecolor{lightpink}{rgb}{1.000,0.714,0.757} 
\definecolor{lightsalmon}{rgb}{1.000,0.627,0.478} 
\definecolor{lightseagreen}{rgb}{0.125,0.698,0.667} 
\definecolor{lightskyblue}{rgb}{0.529,0.808,0.980} 
\definecolor{lightslategray}{rgb}{0.467,0.533,0.600} 
\definecolor{lightsteelblue}{rgb}{0.690,0.769,0.871} 
\definecolor{lightyellow}{rgb}{1.000,1.000,0.878} 
\definecolor{lime}{rgb}{0.000,1.000,0.000} 
\definecolor{limegreen}{rgb}{0.196,0.804,0.196} 
\definecolor{linen}{rgb}{0.980,0.941,0.902} 
%\definecolor{magenta}{rgb}{1.000,0.000,1.000} 
\definecolor{maroon}{rgb}{0.502,0.000,0.000} 
\definecolor{mediumblue}{rgb}{0.000,0.000,0.804} 
\definecolor{mediumprchid}{rgb}{0.729,0.333,0.827} 
\definecolor{mediumseagreen}{rgb}{0.235,0.702,0.443} 
\definecolor{mediumslateblue}{rgb}{0.482,0.408,0.933} 
\definecolor{mediumspringgreen}{rgb}{0.000,0.980,0.604} 
\definecolor{mediumturquoise}{rgb}{0.282,0.820,0.800} 
\definecolor{mediumvioletred}{rgb}{0.780,0.082,0.522} 
\definecolor{midnightblue}{rgb}{0.098,0.098,0.439} 
\definecolor{mintcream}{rgb}{0.961,1.000,0.980} 
\definecolor{mistyrose}{rgb}{1.000,0.894,0.882} 
\definecolor{moccasin}{rgb}{1.000,0.894,0.710} 
\definecolor{navajowhite}{rgb}{1.000,0.871,0.678} 
\definecolor{navy}{rgb}{0.000,0.000,0.502} 
\definecolor{oldlace}{rgb}{0.992,0.961,0.902} 
\definecolor{olive}{rgb}{0.502,0.502,0.000} 
\definecolor{olivedrab}{rgb}{0.420,0.557,0.137} 
\definecolor{orange}{rgb}{1.000,0.647,0.000} 
\definecolor{orangered}{rgb}{1.000,0.271,0.000} 
\definecolor{orchid}{rgb}{0.855,0.439,0.839} 
\definecolor{oxfordindigo}{rgb}{0.255,0.341,0.596} 
\definecolor{palegreen}{rgb}{0.596,0.984,0.596} 
\definecolor{paleturquoise}{rgb}{0.686,0.933,0.933} 
\definecolor{palevioletred}{rgb}{0.859,0.439,0.576} 
\definecolor{papayawhip}{rgb}{1.000,0.937,0.835} 
\definecolor{peachpuff}{rgb}{1.000,0.855,0.725} 
\definecolor{pelegoldenrod}{rgb}{0.933,0.910,0.667} 
\definecolor{peru}{rgb}{0.804,0.522,0.247} 
\definecolor{pink}{rgb}{1.000,0.753,0.796} 
\definecolor{plum}{rgb}{0.867,0.627,0.867} 
\definecolor{powderblue}{rgb}{0.690,0.878,0.902} 
\definecolor{purple}{rgb}{0.502,0.000,0.502} 
\definecolor{rosybrown}{rgb}{0.737,0.561,0.561} 
\definecolor{royalblue}{rgb}{0.255,0.412,0.882} 
\definecolor{saddlebrowm}{rgb}{0.545,0.271,0.075} 
\definecolor{salmon}{rgb}{0.980,0.502,0.447} 
\definecolor{sandybrown}{rgb}{0.957,0.643,0.376} 
\definecolor{seagreen}{rgb}{0.180,0.545,0.341} 
\definecolor{seashell}{rgb}{1.000,0.961,0.933} 
\definecolor{sienna}{rgb}{0.627,0.322,0.176} 
\definecolor{silver}{rgb}{0.753,0.753,0.753} 
\definecolor{skyblue}{rgb}{0.529,0.808,0.922} 
\definecolor{slateblue}{rgb}{0.416,0.353,0.804} 
\definecolor{slategray}{rgb}{0.439,0.502,0.565} 
\definecolor{snow}{rgb}{1.000,0.980,0.980} 
\definecolor{springgreen}{rgb}{0.000,1.000,0.498} 
\definecolor{steelblue}{rgb}{0.275,0.510,0.706} 
\definecolor{tan}{rgb}{0.824,0.706,0.549} 
\definecolor{teal}{rgb}{0.000,0.502,0.502} 
\definecolor{thistle}{rgb}{0.847,0.749,0.847} 
\definecolor{tomatao}{rgb}{1.000,0.388,0.278} 
\definecolor{turquoise}{rgb}{0.251,0.878,0.816} 
\definecolor{violet}{rgb}{0.933,0.510,0.933} 
\definecolor{wheat}{rgb}{0.961,0.871,0.702} 
\definecolor{whitesmoke}{rgb}{0.961,0.961,0.961} 
\definecolor{yellowgreen}{rgb}{0.604,0.804,0.196} 
\definecolor{lightmenublue}{rgb}{0.52,0.68,0.91} 
\definecolor{gray99}{rgb}{0.99,0.99,0.99}  
\definecolor{gray98}{rgb}{0.98,0.98,0.98}  
\definecolor{gray97}{rgb}{0.97,0.97,0.97}  
\definecolor{gray96}{rgb}{0.96,0.96,0.96}  
\definecolor{gray94}{rgb}{0.94,0.94,0.94}  
\definecolor{gray93}{rgb}{0.93,0.93,0.93}  
\definecolor{gray92}{rgb}{0.92,0.92,0.92}  
\definecolor{gray91}{rgb}{0.91,0.91,0.91}  
\definecolor{gray05}{rgb}{0.050,0.050,0.050} 
\definecolor{gray10}{rgb}{0.100,0.100,0.100} 
\definecolor{gray15}{rgb}{0.150,0.150,0.150} 
\definecolor{gray20}{rgb}{0.200,0.200,0.200} 
\definecolor{gray25}{rgb}{0.250,0.250,0.250} 
\definecolor{gray30}{rgb}{0.300,0.300,0.300} 
\definecolor{gray35}{rgb}{0.350,0.350,0.350} 
\definecolor{gray40}{rgb}{0.400,0.400,0.400} 
\definecolor{gray45}{rgb}{0.450,0.450,0.450} 
\definecolor{gray50}{rgb}{0.500,0.500,0.500} 
\definecolor{gray55}{rgb}{0.550,0.550,0.550} 
\definecolor{gray60}{rgb}{0.600,0.600,0.600} 
\definecolor{gray65}{rgb}{0.650,0.650,0.650} 
\definecolor{gray70}{rgb}{0.700,0.700,0.700} 
\definecolor{gray75}{rgb}{0.750,0.750,0.750} 
\definecolor{gray80}{rgb}{0.800,0.800,0.800} 
\definecolor{gray85}{rgb}{0.850,0.850,0.850} 
\definecolor{gray90}{rgb}{0.900,0.900,0.900} 
\definecolor{gray95}{rgb}{0.950,0.950,0.950} 

%==================================================
\newlength{\pin}
\setlength{\pin}{0.2in}

\newenvironment{hangpar}[1]{\list{}{
    \setlength{\listparindent}{1.5em}       \setlength{\itemindent}{0pt}
    \setlength{\itemsep}{0pt}               \setlength{\parindent}{0pt}
    \setlength{\rightmargin}{0pt}           \setlength{\leftmargin}{#1}
               \parsep                                 \medskipamount}%
    \item\hspace{-\leftmargin}\noindent\ignorespaces}
    {\endlist}


%==================================================
% Name the current release
\newcommand{\release}{15.5.1}

%==================================================
% Name the current release
\newcommand{\moosivp}{MOOS-IvP}
\newcommand{\moosdb}{MOOSDB}
\newcommand{\moos}{MOOS}
\newcommand{\helm}{Helm}

%==================================================
% A few of our own counters defined
\newcounter{alisting}
\newcounter{exercise}
\newcounter{slisting}
\newcounter{listing}
\newcounter{tip}
\newcounter{expnum}
\newcounter{exnum}

%==================================================
% Hazard Search Macros
\newcommand{\pd}{{P_{_D}}}
\newcommand{\pc}{{P_{_C}}}
\newcommand{\pfa}{P_{_{FA}}}

%==================================================
% IvPBuild Toolbox Macros 
\newcommand{\summit}{\var{summit}}
\newcommand{\sdelta}{\var{summitdelta}}
\newcommand{\pwid}{\var{peakwidth}}
\newcommand{\bwid}{\var{basewidth}}
\newcommand{\minu}{\var{minutil}}
\newcommand{\maxu}{\var{maxutil}}
\newcommand{\sumi}{\var{summitinsist}}
\newcommand{\vwrap}{\var{valuewrap}}
\newcommand{\zpeak}{\var{ZAIC\_PEAK}}
\newcommand{\zvec}{\var{ZAIC\_Vector}}
\newcommand{\zleq}{\var{ZAIC\_LEQ}}
\newcommand{\zheq}{\var{ZAIC\_HEQ}}

\newcommand{\blankpage}{\clearpage \hspace{0.1in} \newpage}
\newcommand{\pskip}{\vspace{4pt}}
\newcommand{\prevblue}[1][0.07in]{\vspace{#1}  \small \color{menublue}}
\newcommand{\prevgreen}[1][0.07in]{\vspace{#1} \small \color{menugreen}}
\newcommand{\prevbhv}[1][0.07in]{\vspace{#1}   \small \color{bhvcolor}}
\newcommand{\postverb}[1][0.07in]{\vspace{#1} \normalsize \color{black}}

\newcommand{\myurl}[1]{\textcolor{menublue}{\url{#1}}}
\newcommand{\urlx}[1]{\textcolor{menublue}{\url{#1}}}

\newcommand{\noop}[1]{}
\newcommand{\fullcite}[1]{\bibentry{#1}.}
\newcommand{\doc}[1]{}
%\newcommand{\urlxx}[2]{\noindent \textcolor{menublue}{\url{#1}} \noop{#2}}
\newcommand{\urlxx}[2]{\noindent \textcolor{menublue}{\url{#1}}}


%\newcommand{\urlxx}[2]{\vspace{0.12in} \noindent 
%\textcolor{menublue}{\url{#1}} \noop{#2}\vspace{0.12in}}

%=======================================================
% special formatting for MOOS parameters
%=======================================================
% default size
\newcommand{\pvar}[1]{\textcolor{menublue}{\small \bf \tt #1}%
\index[params]{\textcolor{menublue}{\small \tt #1}}}
\newcommand{\pivar}[1]{\index[params]{\textcolor{menublue}{\small \tt #1}}}
\newcommand{\psvar}[1]{\textcolor{menublue}{\small \tt #1}}
% bit bigger
\newcommand{\psvvar}[1]{\textcolor{menublue}{\footnotesize \tt #1}}
\newcommand{\pvvar}[1]{\textcolor{menublue}{\footnotesize \tt #1}%
\index[params]{\textcolor{menublue}{\tt #1}}}
% bit bigger
\newcommand{\psvarr}[1]{\textcolor{menublue}{\tt #1}}
\newcommand{\pvarr}[1]{\textcolor{menublue}{\tt #1}%
\index[params]{\textcolor{menublue}{\tt #1}}}

%=======================================================
% special formatting for Behavior parameters
%=======================================================
% default size
\newcommand{\bvar}[1]{\textcolor{bhvcolor}{\small \bf \tt #1}%
\index[behaviors]{\textcolor{bhvcolor}{\small \tt #1}}}
\newcommand{\bivar}[1]{\index[behaviors]{\textcolor{bhvcolor}{\small \tt #1}}}
\newcommand{\bsvar}[1]{\textcolor{bhvcolor}{\small \tt #1}}
% bit bigger
\newcommand{\bsvvar}[1]{\textcolor{bhvcolor}{\footnotesize \tt #1}}
\newcommand{\bvvar}[1]{\textcolor{bhvcolor}{\footnotesize \tt #1}%
\index[behaviors]{\textcolor{bhvcolor}{\tt #1}}}
% bit bigger
\newcommand{\bsvarr}[1]{\textcolor{bhvcolor}{\tt #1}}
\newcommand{\bvarr}[1]{\textcolor{bhvcolor}{\tt #1}%
\index[behaviors]{\textcolor{bhvcolor}{\tt #1}}}

%=======================================================
% special formatting for MOOS variables
%=======================================================
\newcommand{\wvar}[1]{\textcolor{white}{\small \tt #1}}

\newcommand{\mvar}[1]{\textcolor{menugreen}{\small \tt #1}}

\newcommand{\mivar}[1]{\index[vars]{\textcolor{menugreen}{\small \tt #1}}}

\newcommand{\msvar}[1]{\textcolor{menugreen}{\small \tt #1}}

% bit smaller
\newcommand{\mvvar}[1]{\textcolor{menugreen}{\footnotesize \tt #1}%
\index[vars]{\textcolor{menugreen}{\small \tt #1}}}
\newcommand{\msvvar}[1]{\textcolor{menugreen}{\footnotesize \tt #1}}

% bit bigger
\newcommand{\mvarr}[1]{\textcolor{menugreen}{\tt #1}%
\index[vars]{\textcolor{menugreen}{\small \tt #1}}}
\newcommand{\msvarr}[1]{\textcolor{menugreen}{\tt #1}}


%=======================================================
% special formatting for command-line commands
%=======================================================
\newcommand{\cmd}[1]{{\textcolor{magenta}{\small \tt #1}}}

%=======================================================
% special formatting for MOOS applications
%=======================================================
\newcommand{\app}[1]{{\textcolor{magenta}{\small \tt #1}}}
\newcommand{\aapp}[1]{{\textcolor{magenta}{\footnotesize \tt #1}}}
%\newcommand{\app}[1]{{\small \tt #1}\index{#1}}
%\newcommand{\aapp}[1]{{\footnotesize \tt #1}}

%=======================================================
% special formatting for variables in general
%=======================================================
\newcommand{\var}[1]{{\small \tt #1}}
\newcommand{\varr}[1]{{\tt #1}}
\newcommand{\vvar}[1]{{\footnotesize \tt #1}}

%=======================================================
% special formatting for functions
%=======================================================
\newcommand{\func}[1] {\textcolor{myorange}{\small \tt #1}\index{#1}}
\newcommand{\funcc}[1]{{\tt #1}\index{#1}}
\newcommand{\ffunc}[1]{{\footnotesize \tt #1}\index{#1}}

%=======================================================
% special formatting for verbatim inside math
%=======================================================
\newcommand{\hvar}[1]{\mbox{{\small \tt #1}}}
\newcommand{\hvvar}[1]{\mbox{{\footnotesize \tt #1}}}
\newcommand{\hvvvar}[1]{\mbox{{\tiny \tt #1}}}

%=======================================================
% Purposeful no-ops used only by latex-to-wiki translation
%=======================================================
\newcommand{\wikilink}[1]{}
\newcommand{\wikidoc}[1]{}
\newcommand{\wikisec}[1]{\setcounter{listing}{0}}
\newcommand{\wikihint}[1]{}
\newcommand{\wikitablehint}[1]{}
\newcommand{\wikiMathLarge}{}
\newcommand{\wikispace}{}
\newcommand{\wikiMathLARGE}{}
\newcommand{\wikiMathlarge}{}
\newcommand{\wikisub}{}
\newcommand{\wikinoref}{}
\newcommand{\helplevelsec}{}
\newcommand{\helplevelsubsec}{}
\newcommand{\helpsection}{\section*}
\newcommand{\helpsubsection}{\subsection*}

%\newcommand{\urlyoutube}[1]{\raggedright \url{#1}}
\newcommand{\urlvideo}[2]{\raggedright {\textcolor{menublue} {\tt video:(#2):}} \url{#1}}

%=======================================================
% Support for lab cover pages
\newcommand{\labtitle}[1]{ \huge #1 \normalsize \\}
\newcommand{\labsubtitle}[1]{#1 \\}
\newcommand{\labcourse}[1]{ \large #1 \normalsize \\}
\newcommand{\labdate}[1]{ \large {\bf #1} \normalsize \\}
\newcommand{\labauth}[1]{ #1 \\}
\newcommand{\labsrc}[1]{ \var{#1} \\}
\newcommand{\labtocdepth}[1]{}
\newcommand{\labpng}[2]{\includegraphics[width=#1\textwidth]{#2} \\}
\newcommand{\labline}{\noindent \textcolor{gray70}{\rule{1.0\textwidth}{0.1pt}}}

\newcommand{\labtoc}[1]{
   \renewcommand\contentsname{}
   \labline
   \vspace{-0.7in}
   \begin{#1}
   \tableofcontents
   \end{#1}
   \labline}

\newenvironment{labcover}{\begin{center}}{\end{center}} 
\newenvironment{labinfo}{}{} 

\newcommand{\labinfoheader}[1]{\noindent #1}

\newcommand{\styletip}[1]{\subsubsection*{\refstepcounter{tip}\textcolor{menublue}
{Style Tip \#\arabic{tip} #1}}}%


%=======================================================
\newenvironment{packed_itemize}[1][1]{
\begin{itemize}
  \setlength{\itemsep}{#1pt}
  \setlength{\parskip}{0pt}
  \setlength{\parsep}{0pt}
}{\end{itemize}}

\newenvironment{packed_enumerate}[1][1]{
\begin{enumerate}
  \setlength{\itemsep}{#1pt}
  \setlength{\parskip}{0pt}
  \setlength{\parsep}{0pt}
}{\end{enumerate}}

% Basic listing environment, includes section number
\newenvironment{bentry}[1]{
\begin{itemize}
\item  \textcolor{menublue}{\bibentry{#1}.} \newline
\noindent
}{\end{itemize}}

% Basic listing environment, includes section number
\newenvironment{listing}[1]{
  \refstepcounter{listing}
  \noindent
  {\em Listing \thesection.\arabic{listing}: #1.} \noindent}

% Same listing environment but does not include section number
\newenvironment{listingx}[1]{
  \refstepcounter{listing}
  \noindent
  {\em Listing \arabic{listing}: #1.} \noindent}

\newenvironment{consoleverb}{\SaveVerbatim{SVerbEnv}}
  {\endSaveVerbatim%
  \vspace{0.1in}%
  \noindent% 
  \fcolorbox{black}{mygrey}{\makebox[0.95\textwidth][l]
  {\footnotesize\BUseVerbatim{SVerbEnv}}% 
  \normalsize}%
  \vspace{0.1in}}

\newenvironment{cstyle}[1]{
  \vspace{0.1in}%
  \noindent% 
  \fcolorbox{black}{mygrey}{\makebox[0.95\textwidth][l]
  {#1}}%
  \vspace{0.1in}}

\newenvironment{fileverb}{\SaveVerbatim{SVerbEnv}}
  {\endSaveVerbatim%
  \vspace{0.1in}%
  \noindent%
  \fcolorbox{black}{mbeige}{\makebox[0.95\textwidth][l]
  {\footnotesize\BUseVerbatim{SVerbEnv}}%
  \normalsize}%
  \vspace{0.1in}}

\newenvironment{fileverbs}{\SaveVerbatim{SVerbEnv}}
  {\endSaveVerbatim%
  \vspace{0.1in}%
  \noindent%
  \fcolorbox{black}{mbeige}{\makebox[0.95\textwidth][l]
  {\scriptsize\BUseVerbatim{SVerbEnv}}%
  \normalsize}%
  \vspace{0.1in}}

\newenvironment{moosfileverb}{\SaveVerbatim{SVerbEnv}}
  {\endSaveVerbatim%
  \vspace{0.1in}%
  \noindent%
  \fcolorbox{black}{mbeige}{\makebox[0.95\textwidth][l]
  {\footnotesize \textcolor{menublue}{\BUseVerbatim{SVerbEnv}}}%
  \normalsize}%
  \vspace{0.1in}}



</pre></body></html>