\usepackage{graphicx}
\usepackage{color}
\usepackage{listings}
\usepackage{hyperref}

\newcommand{\cmd}[1]{\texttt{\bf #1}}

\newcommand{\crap}[3]{\fbox{\texttt{\textcolor{Gray}{#1} \textbf{#2}}\\#3}}

\definecolor{CmdLineBG}{cmyk}{0,0,0,0.25}
\definecolor{PromptFG}{named}{DarkOrchid}
\definecolor{CmdFG}{named}{blue}
\definecolor{Brown}{cmyk}{0,0.81,1,0.60}
\definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}
\definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}

\newlength{\DefCmdLineLength}
\setlength{\DefCmdLineLength}{\textwidth}
\newlength{\CmdLineLength}
\setlength{\CmdLineLength}{\textwidth}
\newsavebox{\CmdLineBox}
\newenvironment{cmdline}[2]
{\begin{lrbox}{\CmdLineBox}
    \begin{minipage}{\CmdLineLength}
      \texttt{\textcolor{PromptFG}{#1} \textcolor{CmdFG}{#2}}\tt}
{\end{minipage}\end{lrbox}{\fcolorbox{blue}{CmdLineBG}{\usebox{\CmdLineBox}}}}

\newcommand{\cmdlinesize}[1][\DefCmdLineLength]{\setlength{\CmdLineLength}{#1}}

\newcommand{\prompt}[2]{\fcolorbox{blue}{CmdLineBG}{\parbox{\CmdLineLength}{\texttt{\textcolor{PromptFG}{#1} \textcolor{CmdFG}{#2}}}}}


%args: width1, width2, figure, body
\newcommand{\figplustext}[4]{%
  \vspace{-8mm}\hspace{-8mm}  
  \includegraphics[width=#1]{#3}~%
  \raisebox{0.5\textwidth}{%
  \begin{minipage}[t]{#2}%
    #4%
  \end{minipage}}}%

\newcommand{\figplusfig}[4]{%
  \includegraphics*[width=#1]{#3}~%
  \includegraphics*[width=#2]{#4}}%



\mode<presentation>
{
  \usetheme[secheader]{Boadilla}
  \usecolortheme[named=RoyalPurple]{structure}
}

\pgfdeclareimage[height=0.75cm]{bnl-logo}{bnl-logo}
\pgfdeclareimage[height=0.75cm]{dyb_logo}{dyb_logo}
\pgfdeclareimage[height=0.75cm]{dyw_logo}{dyw_logo}

\author{David Jaffe \& Brett Viren}

% - Give the names in the same order as the appear in the paper.
% - Use the \inst{?} command only if the authors have different
%   affiliation.

\institute[BNL] % (optional, but mostly needed)
{
  Physics Department

  \includegraphics[height=1.5cm]{dyb_logo}
  \includegraphics[height=1.5cm]{bnl-logo} %Brookhaven National Laboratory
  \includegraphics[height=1.5cm]{dyw_logo}
}
\date[Daya Bay Sim]{Daya Bay Simulation Workshop}

