%% TACC theme for beamer

\newif\ifTACCheadernav
\DeclareOption{headernav}{\global\TACCheadernavtrue}

\newif\ifTACCheadertree
\DeclareOption{headertree}{\global\TACCheadertreetrue}
\ProcessOptions

\mode<presentation>

\makeatletter
  \def\beamer@calltheme#1#2#3{%
    \def\beamer@themelist{#2}
    \@for\beamer@themename:=\beamer@themelist\do
    {\usepackage[{#1}]{\beamer@themelocation/#3\beamer@themename}}}

  \def\usefolder#1{
    \def\beamer@themelocation{#1}
  }
  \def\beamer@themelocation{}

\usefolder{themes}
\usefonttheme{TACC16}
\useinnertheme{TACC16}
\useoutertheme{TACC16-169}
\usecolortheme{TACC16}

\mode
<all>

\newcommand{\event}[1]{%
  \makeatletter%
  \def\TACC@eventname{#1}%
  \makeatother}

\newcommand{\sectionframe}[1]{\section{#1}\frame{\Large\textbf{#1}}}
\newcommand{\subsectionframe}[1]{\subsection{#1}\frame{\large\textbf{#1}}}
