\RequirePackage{hyperref}
\RequirePackage{url}
\RequirePackage{amsmath}
\RequirePackage{bm}
\newcommand{\Slang}{\textsf{S} language}
\newcommand{\LXX}{\ensuremath{\bL_\mathit{XX}}}
\newcommand{\LXZ}{\ensuremath{\bL_\mathit{XZ}}}
\newcommand{\LZZ}{\ensuremath{\bL_\mathit{ZZ}}}
\newcommand{\RR}{\textsf{R}}
\newcommand{\RXX}{\ensuremath{\bR_\mathit{XX}}}
\newcommand{\RZX}{\ensuremath{\bR_\mathit{ZX}}}
\newcommand{\RZZ}{\ensuremath{\bR_\mathit{ZZ}}}
\newcommand{\TZZ}{\ensuremath{\bT_\mathit{ZZ}}}
\newcommand{\bA}{\ensuremath{\bm{A}}}
\newcommand{\bB}{\ensuremath{\bm{B}}}
\newcommand{\bDelta}{\ensuremath{\bm{\Delta}}}
\newcommand{\bD}{\ensuremath{\bm{D}}}
\newcommand{\bI}{\ensuremath{\bm{I}}}
\newcommand{\bJ}{\ensuremath{\bm{J}}}
\newcommand{\bL}{\ensuremath{\bm{L}}}
\newcommand{\bM}{\ensuremath{\bm{M}}}
\newcommand{\bOmega}{\ensuremath{\bm{\Omega}}}
\newcommand{\bPhi}{\ensuremath{\bm{\Phi}}}
\newcommand{\bR}{\ensuremath{\bm{R}}}
\newcommand{\bT}{\ensuremath{\bm{T}}}
\newcommand{\bX}{\ensuremath{\bm{X}}}
\newcommand{\bY}{\ensuremath{\bm{Y}}}
\newcommand{\bZ}{\ensuremath{\bm{Z}}}
\newcommand{\balpha}{\ensuremath{\bm{\alpha}}}
\newcommand{\ba}{\ensuremath{\bm{a}}}
\newcommand{\bbeta}{\ensuremath{\bm{\beta}}}
\newcommand{\bb}{\ensuremath{\bm{b}}}
\newcommand{\bc}{\ensuremath{\bm{c}}}
\newcommand{\bd}{\ensuremath{\bm{d}}}
\newcommand{\bdelta}{\ensuremath{\bm{\delta}}}
\newcommand{\bbe}{\ensuremath{\bm{e}}}
\newcommand{\beps}{\ensuremath{\bm{\epsilon}}}
\newcommand{\be}{\ensuremath{\bm{e}}}
\newcommand{\bff}{\ensuremath{\bm{f}}}
\newcommand{\bg}{\ensuremath{\bm{g}}}
\newcommand{\blambda}{\ensuremath{\bm{\lambda}}}
\newcommand{\bmu}{\ensuremath{\bm{\mu}}}
\newcommand{\boeta}{\ensuremath{\bm{\eta}}}
\newcommand{\bomega}{\ensuremath{\bm{\omega}}}
\newcommand{\bphi}{\ensuremath{\bm{\phi}}}
\newcommand{\br}{\ensuremath{\bm{r}}}
\newcommand{\btheta}{\ensuremath{\bm{\theta}}}
\newcommand{\bt}{\ensuremath{\bm{t}}}
\newcommand{\bu}{\ensuremath{\bm{u}}}
\newcommand{\bv}{\ensuremath{\bm{v}}}
\newcommand{\bw}{\ensuremath{\bm{w}}}
\newcommand{\bx}{\ensuremath{\bm{x}}}
\newcommand{\by}{\ensuremath{\bm{y}}}
\newcommand{\bzer}{\ensuremath{\bm{0}}}
\newcommand{\dX}{\ensuremath{\bm{d}_{\mathit{X}}}}
\newcommand{\dZ}{\ensuremath{\bm{d}_{\mathit{Z}}}}
\newcommand{\deri}{{\der_i}}
\newcommand{\derj}{{\der_j}}
\newcommand{\der}{\operatorname{\mathsf{D}}}
\newcommand{\dy}{\ensuremath{d_{\mathit{y}}}}
\newcommand{\email}[1]{\href{mailto:#1}{\normalfont\texttt{#1}}}
\newcommand{\invtrans}{\ensuremath{^{-\mathsf{T}}}}
\newcommand{\inv}{\ensuremath{^{-1}}}
\newcommand{\ovec}{\operatorname{\mathrm{vec}}}
\newcommand{\pperp}{{P^{\perp}}}
\newcommand{\pplus}{\ensuremath{\bPhi^{+}}}
\newcommand{\ptpi}{\ensuremath{\left(\bPhi\trans\bPhi\right)^{-1}}}
\newcommand{\rXy}{\ensuremath{\br_\mathit{Xy}}}
\newcommand{\rZy}{\ensuremath{\br_\mathit{Zy}}}
\newcommand{\ryy}{\ensuremath{r_\mathit{yy}}}
\newcommand{\tL}{\ensuremath{\tilde{\bL}}}
\newcommand{\tRXX}{\ensuremath{\tilde{\bR}_\mathit{XX}}}
\newcommand{\tRZX}{\ensuremath{\tilde{\bR}_\mathit{ZX}}}
\newcommand{\tildy}{\ensuremath{\tilde{\by}}}
\newcommand{\trans}{\ensuremath{^\mathsf{T}}}
\newcommand{\tr}{\operatorname{tr}}
\newcommand{\vb}{\ensuremath{\bm{V}_{\bm{b}}}}
\newcommand\code{\bgroup\@codex}
\def\@codex#1{{\normalfont\ttfamily\hyphenchar\font=-1 #1}\egroup}
\newcommand{\kbd}[1]{{\normalfont\texttt{#1}}}
\newcommand{\key}[1]{{\normalfont\texttt{\uppercase{#1}}}}
\newcommand\samp{`\bgroup\@noligs\@sampx}
\def\@sampx#1{{\normalfont\texttt{#1}}\egroup'}
\newcommand{\var}[1]{{\normalfont\textsl{#1}}}
\let\env=\code
\newcommand{\file}[1]{{`\normalfont\textsf{#1}'}}
\let\command=\code
\let\option=\samp
\newcommand{\dfn}[1]{{\normalfont\textsl{#1}}}
\newcommand{\acronym}[1]{{\normalfont\textsc{\lowercase{#1}}}}
\newcommand{\strong}[1]{{\normalfont\fontseries{b}\selectfont #1}}
\let\pkg=\strong
\RequirePackage{alltt}
\newenvironment{example}{\begin{alltt}}{\end{alltt}}
\newenvironment{smallexample}{\begin{alltt}\small}{\end{alltt}}
\newenvironment{display}{\list{}{}\item\relax}{\endlist}
\newenvironment{smallverbatim}{\small\verbatim}{\endverbatim}
\RequirePackage{fancyvrb}
\DefineVerbatimEnvironment{Sinput}{Verbatim}{fontsize=\small,fontshape=sl}
\DefineVerbatimEnvironment{Soutput}{Verbatim}{fontsize=\small}
\DefineVerbatimEnvironment{Scode}{Verbatim}{fontsize=\small,fontshape=sl}
