% !TeX program = lualatex
\documentclass[
	english,
	aspectratio=169,
	color={accentcolor=10b},
	logo=true,
	colorframetitle=false,
	]{tudabeamer}
	
% Load packages
\usepackage[main=english]{babel}
\usepackage{multimedia}
\usepackage{amsmath}
\usepackage{physics}
\usepackage{siunitx}
\usepackage[absolute,overlay]{textpos}
\usepackage{tikz}
\usepackage{multicol}
\usepackage{pgfplots}
\usepackage{tikzscale}
\usepackage{tikz-3dplot}
\usepgfplotslibrary{groupplots}
\usetikzlibrary{arrows.meta, shadings, shadows, shapes, arrows}
\pgfplotsset{compat=newest}
\usetikzlibrary{plotmarks}
\usepackage{subcaption}
\usepackage{tabularx}
\usepackage{tikz-3dplot}
\usepgfplotslibrary{groupplots}
\usetikzlibrary{arrows.meta, shadings, shadows, shapes, arrows}
\pgfplotsset{compat=newest}
\usetikzlibrary{plotmarks}
\usepackage{listings}
\usepackage{booktabs}
\usepackage{algorithm}
\usepackage{algorithmicx}
\usepackage{caption}
\usepackage{array, booktabs}
\usepackage{graphicx}
\usepackage{comment}
\usepackage{dsfont}
\usepackage{pifont}
\usepackage[eulergreek]{sansmath}
\usepackage[absolute,overlay]{textpos}
\PassOptionsToPackage{hyphens}{url}

% Define colors
\definecolor{tud0d}{cmyk/RGB/HTML}{0,0,0,.8/83,83,83/535353}
\definecolor{tud0c}{cmyk/RGB/HTML}{0,0,0,.6/137,137,137/898989}
\definecolor{tud0b}{cmyk/RGB/HTML}{0,0,0,.4/181,181,181/B5B5B5}
\definecolor{tud0a}{cmyk/RGB/HTML}{0,0,0,.2/220,220,220/DCDCDC}
\definecolor{tud1a}{cmyk/RGB/HTML}{.7,.4,0,0/93,133,195/5D85C3}
\definecolor{tud2a}{cmyk/RGB/HTML}{0.8,.2,0,0/0,156,218/009CDA}
\definecolor{tud3a}{cmyk/RGB/HTML}{0.7,0,.5,0/80,182,149/50B695}
\definecolor{tud4a}{cmyk/RGB/HTML}{.4,0,.8,0/175,204,80/AFCC50}
\definecolor{tud5a}{cmyk/RGB/HTML}{.2,0,.8,0/221,223,72/DDDF48}
\definecolor{tud6a}{cmyk/RGB/HTML}{0,.1,.7,0/255,224,92/FFE05C}
\definecolor{tud7a}{cmyk/RGB/HTML}{0,.3,.8,0/248,186,60/F8BA3C}
\definecolor{tud8a}{cmyk/RGB/HTML}{0,.6,.8,0 /238,122,52/EE7A34}
\definecolor{tud9a}{cmyk/RGB/HTML}{0,.8,.7,0/233,80,62/E9503E}
\definecolor{tud10a}{cmyk/RGB/HTML}{.2,.9,0,0/201,48,142/C9308E}
\definecolor{tud11a}{cmyk/RGB/HTML}{.6,.8,0,0/128,69,151/804597}
\definecolor{tud1b}{cmyk/RGB/HTML}{1,.6,0,0/0,90,169/005AA9}
\definecolor{tud2b}{cmyk/RGB/HTML}{1,.3,0,0/0,131,204/0083CC}
\definecolor{tud3b}{cmyk/RGB/HTML}{1,0,.6,0/0,157,129/009D81}
\definecolor{tud4b}{cmyk/RGB/HTML}{.5,0,1,0/153,192,0/99C000}
\definecolor{tud5b}{cmyk/RGB/HTML}{.3,0,1,0/201,212,0/C9D400}
\definecolor{tud6b}{cmyk/RGB/HTML}{0,.2,1,0/253,202,0/FDCA00}
\definecolor{tud7b}{cmyk/RGB/HTML}{0,.4,1,0/245,163,0/F5A300}
\definecolor{tud8b}{cmyk/RGB/HTML}{0,.7,1,0/236,101,0/EC6500}
\definecolor{tud9b}{cmyk/RGB/HTML}{0,1,.9,0/230,0,26/E6001A}
\definecolor{tud10b}{cmyk/RGB/HTML}{.4,1,0,0/166,0,132/A60084}
\definecolor{tud11b}{cmyk/RGB/HTML}{.7,1,0,0/114,16,133/721085}
\definecolor{tud1c}{cmyk/RGB/HTML}{1,.7,.2,0/0,78,138/004E8A}
\definecolor{tud2c}{cmyk/RGB/HTML}{1,.5,.2,0/0,104,157/00689D}
\definecolor{tud3c}{cmyk/RGB/HTML}{1,.2,.6,0/0,136,119/008877}
\definecolor{tud4c}{cmyk/RGB/HTML}{.6,.1,1,0/127,171,22/7FAB16}
\definecolor{tud5c}{cmyk/RGB/HTML}{.4,.1,1,0/177,189,0/B1BD00}
\definecolor{tud6c}{cmyk/RGB/HTML}{.2,.3,1,0/215,172,0/D7AC00}
\definecolor{tud7c}{cmyk/RGB/HTML}{.2,.5,1,0/210,135,0/D28700}
\definecolor{tud8c}{cmyk/RGB/HTML}{.2,.8,1,0/204,76,3/CC4C03}
\definecolor{tud9c}{cmyk/RGB/HTML}{.3,1,.9,0/185,15,34/B90F22}
\definecolor{tud10c}{cmyk/RGB/HTML}{.5,1,.3,0/149,17,105/951169}
\definecolor{tud11c}{cmyk/RGB/HTML}{.8,1,.2,0/97,28,115/611C73}
\definecolor{tud1d}{cmyk/RGB/HTML}{1,.9,.3,0/36,53,114/243572}
\definecolor{tud2d}{cmyk/RGB/HTML}{1,.7,.4,0/0,78,115/004E73}
\definecolor{tud3d}{cmyk/RGB/HTML}{1,.4,.7,0/0,113,94/00715E}
\definecolor{tud4d}{cmyk/RGB/HTML}{.7,.3,1,0/106,139,55/6A8B22}
\definecolor{tud5d}{cmyk/RGB/HTML}{.5,.2,1,0/153,166,4/99A604}
\definecolor{tud6d}{cmyk/RGB/HTML}{.4,.4,1,0/174,142,0/AE8E00}
\definecolor{tud7d}{cmyk/RGB/HTML}{.3,.6,1,0/190,111,0/BE6F00}
\definecolor{tud8d}{cmyk/RGB/HTML}{.4,.8,1,0/169,73,19/A94913}
\definecolor{tud9d}{cmyk/RGB/HTML}{.5,1,.9,0/156,28,38/961C26}
\definecolor{tud10d}{cmyk/RGB/HTML}{.7,1,.5,0/115,32,84/732054}
\definecolor{tud11d}{cmyk/RGB/HTML}{.9,1,.3,0/76,34,106/4C226A}

% Set hypersetup
\hypersetup{
	pdftitle={Wettbewerb künstliche Intelligenz in der Medizin Presentation},
	pdfauthor={Christoph Reich},
	pdfsubject={},
	pdfview=FitH,
	pdfstartview=FitV,
	pdflang=la,
	colorlinks,
	linkcolor=tud1a,
    filecolor=tud1a,
    citecolor = tud1a,      
    urlcolor=tud1a
}

% Make bib number
\newcommand{\bibnum}[1]{}

% Define math styles
\newcommand{\Vector}[1]{\boldsymbol{#1}}
\newcommand{\Matrix}[1]{\boldsymbol{\MakeUppercase{#1}}}
\newcommand{\Tensor}[1]{\boldsymbol{\mathrm{\MakeUppercase{#1}}}}
\newcommand{\Set}[1]{\mathbb{#1}}
\newcommand{\Mean}[1]{\mathbb{E}\left[#1\right]}
\newcommand{\Var}[1]{\mathrm{Var}\left[#1\right]}
\newcommand{\Cov}[1]{\mathrm{Cov}\left[#1\right]}
\newcommand{\Gaussian}[1]{\mathcal{N}\left(#1\right)}
\newcommand{\Uniform}[1]{U\left(#1\right)}
\newcommand{\KL}[2]{\operatorname{KL}\left(#1||#2\right)}
\newcommand{\Std}[1]{\mathrm{Std}\left(#1\right)}

% Additional colors
\definecolor{darkviolet}{RGB}{148, 0, 211}
\definecolor{hotpink}{RGB}{255, 105, 180}

% Some custom comments
\newcommand \etal {\textit{et al. }}
\newcommand{\cmark}{\ding{51}}
\newcommand{\xmark}{\ding{55}}

% Set array stretch
\renewcommand{\arraystretch}{1.25}

% Change table of content style
\setbeamertemplate{section in toc}{%
  {\color{black}\inserttocsectionnumber.}~\inserttocsection}
\setbeamercolor{subsection in toc}{bg=white,fg=black}
\setbeamertemplate{subsection in toc}{%
  \hspace{1.0cm}{\color{black}\rule[0.3ex]{3pt}{3pt}}~\inserttocsubsection\par}
  
% Set template info
\title{Wettbewerb künstliche Intelligenz in der Medizin\\ ECG-DualNet}
\subtitle{Attention Is All You Need \\ \textmd{\small{Christoph Reich}}}
\author[C. Reich]{Christoph Reich}
\department{etit}
\institute{KIS*MED}
\logo*{\begin{tikzpicture}\node[] at (0, 0) {KIS*MED};\end{tikzpicture}}
\titlegraphic*{%
\begin{tikzpicture}\draw[white] (-1.35, 0) -- (1.35, 0);\node[opacity=1] at (0, 0) {\includegraphics[height=0.9cm]{artwork/athene.pdf}};\node[scale=0.15, anchor=west] at (-1.3, 0.1) {\textbf{Supervisors}};\node[scale=0.15, anchor=west] at (-1.3, 0.0) { Prof. Dr.-Ing. Christoph Hoog Antink};\node[scale=0.15, anchor=west] at (-1.3, -0.1) {Maurice Rohr, M. Sc.};\end{tikzpicture}%
}

% Set data
\date{\today}

% Make tabels bigger
\renewcommand{\arraystretch}{1.20}

% Make color-indicator
\newcommand\colorindicator[2]{%
#1 \begin{tikzpicture}\draw[#2, fill=#2] (0, 0) rectangle++ (0.4, 0.2);\end{tikzpicture}%
}

% Make color-indicator whiteout name
\newcommand\colorindicatornotext[1]{%
\begin{tikzpicture}\draw[#1, fill=#1] (0, 0) rectangle++ (0.4, 0.2);\end{tikzpicture}%
}

% Default height and width of pgf plots
\newlength\figH
\newlength\figW
\setlength{\figH}{8cm}
\setlength{\figW}{8cm}

\setbeamercolor{block body}{fg=black, bg=white}

% Define variable block to set style of block in the document
\newenvironment{variableblock}[3]{%
\setbeamercolor{block title}{#2}%
\setbeamercolor{block body}{#3}%
\begin{block}{#1}}{\end{block}}

% Set some pgfplots options
\pgfplotsset{every axis/.append style={
	font=\fontsize{10}{10}\sffamily},
	tick label style = {font=\fontsize{10}{10}\sansmath\sffamily},
	% every axis label = {font=\fontsize{10}{10}\sansmath\sffamily},
	legend style = {font=\fontsize{10}{10}\sffamily},
	% label style = {font=\fontsize{10}{10}\sansmath\sffamily}
}

\begin{document}
    
    % Make titel    
    \maketitle
    
    % Show full table of content once
    \begin{frame}
        % Table of content
    	\frametitle{Content}
    	{
        	\hypersetup{linkcolor=black}
        	\tableofcontents
    	}
    \end{frame}
    
    % Show table of content at the start of each new section
    \AtBeginSection{\begin{frame}[noframenumbering]
    	\frametitle{Content}
    	{
        	\hypersetup{linkcolor=black}
    	    \tableofcontents[currentsection]
    	}
    \end{frame}}
    
    % Show table of content at the start of each new subsection
    % \AtBeginSubsection{\begin{frame}[noframenumbering]
    % 	\frametitle{Content}
    % 	{
    % 		\hypersetup{linkcolor=black}
    % 		\tableofcontents[currentsection,currentsubsection]
    % 	}
    % \end{frame}}
    
    % Input content
    \input{content/introduction}
    \input{content/method}
    \input{content/experiments}
    \input{content/end}
    
    % Reference slide
    \begin{frame}[allowframebreaks]{References}
        % Set bib style
        \bibliographystyle{apalike}
        \bibliography{references}
    \end{frame}
    
    % Final slide
    \begin{frame}[c]{Code availability \& Questions}
        \begin{center}
            \begin{large}
                \textbf{Code, weights, and paper are available at:}
                \href{https://github.com/ChristophReich1996/ECG_Classification}{github.com/ChristophReich1996/ECG\_Classification}
            \end{large}
        \end{center}
        \begin{columns}
            \column{0.5\linewidth}
                \centering
                \includegraphics[height=4cm]{artwork/qr-code.png}
            \column{0.5\linewidth}
                \centering
                \includegraphics[height=4cm]{artwork/paper.png}
        \end{columns} 
    \end{frame}
    
    % Include appendix
    \input{content/appendix}

\end{document}
