%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% layout
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\pdfpagewidth=13.3cm
\pdfpageheight=10.2cm
\slidewidth=25cm
\slideheight=18cm

\setlength{\topmargin}{0in}
\addtolength{\topmargin}{-1in}
\addtolength{\textheight}{1.25in}

\sloppy
\pagestyle{empty}
\slideframe{none}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% slides
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\blue}[1]{{\color{blue}#1}}
\newcommand{\red}[1]{{\color{red}#1}}
\newcommand{\black}[1]{{\color{black}#1}}
\newcommand{\white}[1]{{\color{white}#1}}

\newcommand{\slidetitle}[1]{\red{\Large #1}}
\newcommand{\slidesubtitle}[1]{\blue{\large #1}}
\newcommand{\bigblue}[1]{\blue{\large #1}}
\newcommand{\verticalspacer}{\vspace*{0.5in}}

\newenvironment{Slide}[1]
  {\begin{slide}\slidetitle{#1}}
  {\vfill\end{slide}}

\newenvironment{centerslide}
  {\begin{slide}\begin{center}}
  {\end{center}\verticalspacer\end{slide}}

\newcounter{partctr}
%\setcounter{partctr}{-1} % count from zero
\renewcommand{\thepartctr}{\arabic{partctr}} % count in arabic
%\renewcommand{\thepartctr}{\Roman{partctr}} % count in roman

\newcommand{\titleslide}[2]{
\begin{centerslide}%
\huge\color{red}%
#1%
\\[2ex] \Large\color{blue}%
#2%
\end{centerslide}
}

\newcommand{\partslide}[1]{
\begin{centerslide}%
\Large\color{blue}%
\refstepcounter{partctr}%
Part \thepartctr\\[2ex]\LARGE\color{red}%
#1%
\end{centerslide}
}

\newcommand{\imageslide}[3]{
 \begin{Slide}{#1}
 \\
 \begin{center}
 \scalebox{#2}{\includegraphics{#3}}
 \end{center}
 \end{Slide}
}

\newcommand{\imageslidecaptioned}[4]{
 \begin{Slide}{#1}
 \begin{center}
 \scalebox{#2}{\includegraphics{#3}}
 \end{center}
 \begin{center}
 #4
 \end{center}
 \end{Slide}
}

\newcommand{\twoimageslide}[5]{
 \begin{Slide}{#1}
 \begin{center}
 \scalebox{#2}{\includegraphics{#3}}
 \quad
 \scalebox{#4}{\includegraphics{#5}}
 \end{center}
 \end{Slide}
}

\newcommand{\twoimagecenterslide}[5]{
 \begin{centerslide}
 \slidetitle{#1} \\[2ex]
 \scalebox{#2}{\includegraphics{#3}}
 \quad
 \scalebox{#4}{\includegraphics{#5}}
 \end{centerslide}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% itemize

\newcommand{\bitem}{\item[\blue{$\bullet$}]}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
