%% LaTeX-Beamer template for KIT design
%%
%% Base template
%%
%% by Erik Burger, Christian Hammer
%% title picture by Klaus Krogmann
%%
%% version 2.1
%%
%% mostly compatible to KIT corporate design v2.0
%% http://intranet.kit.edu/gestaltungsrichtlinien.php
%%
%% Problems, bugs and comments to
%% burger@kit.edu

\usepackage[english,ngerman]{babel}
\usepackage[utf8]{inputenc} % UTF-8-Encoding
\usepackage{ifthen} %For choosing the language, see below
\usepackage{amsmath, amsfonts, amssymb} % Mathesymbole usw.
\usepackage{hyperref}
\usepackage[absolute,overlay]{textpos}
\usepackage{templates/semirounded}
\usepackage[abs]{overpic}
\setcounter{tocdepth}{2} % Anzeigetiefe für Inhaltsverzeichnis: 2 Stufen

\usepackage[scaled=.92]{helvet}

\setbeamercovered{invisible}
\setbeamersize{text margin left=6mm,text margin right=6mm} 

\useinnertheme{rounded}
\usepackage{templates/beamercolorthemekit}

% Navigationsleiste ausblenden
\beamertemplatenavigationsymbolsempty 

%save space in the footer
\beamer@compresstrue

%title image and logo
\def\titleimage#1{\def\@titleimage{#1}}
\def\titlelogoa#1{\def\@titlelogoa{#1}}
\def\titlelogob#1{\def\@titlelogob{#1}}
\def\titlelogoc#1{\def\@titlelogoc{#1}}

\titleimage{bauplan}
\titlelogoa{sdq_logo}
\titlelogob{sdq_logo}
\titlelogoc{sdq_logo}

%CH: KIT-point
\setbeamertemplate{itemize items}{
\begin{pgfpicture}{0mm}{0mm}{1ex}{1ex}
{\pgfsetcornersarced{\pgfpoint{.3ex}{.3ex}} 
\pgfpathmoveto{\pgfpoint{0cm}{1ex}} 
\pgfpathlineto{\pgfpoint{1ex}{1ex}}
\pgfpathlineto{\pgfpoint{1ex}{0cm}}}
{\pgfsetcornersarced{\pgfpoint{.3ex}{.3ex}}
\pgfpathmoveto{\pgfpoint{1ex}{0cm}}
\pgfpathlineto{\pgfpointorigin}
\pgfpathlineto{\pgfpoint{0cm}{1ex}}}
\color{brown} %couleur des items comprises dedans
\pgfusepath{fill}
\end{pgfpicture}%
}

\setbeamertemplate{section in toc}{
	\begin{pgfpicture}{0mm}{0mm}{1ex}{1ex}
		{\pgfsetcornersarced{\pgfpoint{.3ex}{.3ex}} 
			\pgfpathmoveto{\pgfpoint{0cm}{1ex}} 
			\pgfpathlineto{\pgfpoint{1ex}{1ex}}
			\pgfpathlineto{\pgfpoint{1ex}{0cm}}}
		{\pgfsetcornersarced{\pgfpoint{.3ex}{.3ex}}
			\pgfpathmoveto{\pgfpoint{1ex}{0cm}}
			\pgfpathlineto{\pgfpointorigin}
			\pgfpathlineto{\pgfpoint{0cm}{1ex}}}
		\color{brown} %couleur des items comprises dedans
		\pgfusepath{fill}
	\end{pgfpicture}
	\kern1.5ex\inserttocsection\par%
}

\setbeamertemplate{subsection in toc}{
	\begin{pgfpicture}{-8mm}{0mm}{1ex}{1ex}
		{\pgfsetcornersarced{\pgfpoint{.3ex}{.3ex}} 
			\pgfpathmoveto{\pgfpoint{0cm}{.5ex}} 
			\pgfpathlineto{\pgfpoint{.5ex}{.5ex}}
			\pgfpathlineto{\pgfpoint{.5ex}{0cm}}}
		{\pgfsetcornersarced{\pgfpoint{.3ex}{.3ex}}
			\pgfpathmoveto{\pgfpoint{.5ex}{0cm}}
			\pgfpathlineto{\pgfpointorigin}
			\pgfpathlineto{\pgfpoint{0cm}{.5ex}}}
		\color{brown} %couleur des items comprises dedans
		\pgfusepath{fill}
	\end{pgfpicture}
	\kern1.5ex\inserttocsubsection\par% 
}

\setbeamertemplate{caption}{\raggedright\insertcaption\par}




%%% use this for setting the total page number
%\newcommand{\beginbackup}{
%   \newcounter{framenumbervorappendix}
%   \setcounter{framenumbervorappendix}{\value{framenumber}}
%}
%\newcommand{\backupend}{
%   \addtocounter{framenumbervorappendix}{-\value{framenumber}}
%   \addtocounter{framenumber}{\value{framenumbervorappendix}} 
%}
