% Turns out, this package is not needed...
% \usepackage{import}
% if anything DOES go wrong, perhaps try re-adding it?

% MINTED (un-uncomment only if you have the prerecs installed and know what you're doing)
% Very powerful package for code sytax highlighting
\usepackage{minted}         % for much better looking code blocks
  \usemintedstyle{perldoc}      % theme for syntax highlighting
  \definecolor{lightgray}{HTML}{F2F2F2} % define color for code background
  \setminted{ bgcolor=lightgray,    % set background color globally
        obeytabs=true,
        tabsize   = 4,
        framesep  = 1em,
        frame     = leftline,
        % autogobble=true     % removes whitespace at beginning
        %, baselinestretch=1 % optimize later
        }
  \setmintedinline{bgcolor={}}    % remove background color for inline code
  \setminted{fontsize=\footnotesize}
  \setmintedinline{fontsize=\normalsize}
\usepackage{pdfpages}       % for adding pdfs to pdf
\usepackage{multicol}       % for multiple columns
\usepackage{fontawesome}      % for nice icons
% For inline c++ code
\newcommand{\inlinecpp}[1]{%
  \mintinline{cpp}{#1}%
}

% Newcommands

% the code expert logo color
\definecolor{codeexpertcolor}{RGB}{178, 80, 134}

% the code expert logo
\newcommand{\codeexpert}{%
  % old logo
  % \texttt{[code]{\fontfamily{cmr}\selectfont{expert}}}
  % new logo
  {\color{codeexpertcolor}\fontfamily{phv}\selectfont{\color{codeexpertcolor}\textbf{code} expert}}
}

% This neat little hack enables much smoother translations!
% \trans{German}{English}
\ifdefined\englishSlides
\newcommand\trans[2]{#2}
\else
\newcommand\trans[2]{#1}
\fi

% inserts a slide titled "Fragen/Unklarheiten?"
\newcommand{\fragen}{%
  \trans{\begin{frame}\frametitle{Fragen/Unklarheiten?}
  \end{frame}}{\begin{frame}\frametitle{Questions?}
  \end{frame}}
}

% inserts a slide titled "Questions?"
\newcommand{\questions}{%
  \fragen
}

% new item marker for checklist-like things
\newcommand{\checkbox}{%
  \item[$\square$]
}

% for inserting pictures
\newcommand{\pic}[2]{%
  \begin{center}
    \includegraphics[width=#1\textwidth]{#2}
  \end{center}
}

% for inserting PDFs
\newcommand{\pdf}[1]{%
    \setbeamercolor{background canvas}{bg=}
    \includepdf[pages=-]{#1}
  }

\setbeamercolor{button}{bg=ETHblue,fg=white}
\def\insertgotosymbol{%
  \faExternalLinkSquare\quad
}

\newcommand{\link}[2]{%
  \href{#1}{\beamergotobutton{#2}}
}

\newcommand{\tip}[1]{%
  {\color{ETHblue}{\faLightbulbO}\, #1}%
}

\newcommand{\bloc}[2]{%
  \begin{block}{#1} %titel
    #2 %stuff
    \end{block}
}

\graphicspath{{../figs/}}