% Here we showcase how you can use the CEL-KIT template in the case where the main .tex file is not inside the template directory
% The location of the main .tex file is arbitrary, it can also be "outside" the template directory
% Necessary/possible changes are indicated with %% CHANGE


%%%%%%%%%%% CEL beamer class %%%%%%%%%%%%%%%
\documentclass[overviewatsection, showsubsectionsatfirstoverview]{../CELbeamer}	%% CHANGE
%% default options: en, helvet, bigfoot (12pt)
%% other options: de, franklin, smallfoot (11pt), navbaron, kitgrid, handout, 
%% spaceforface, overviewatsection, showsubsectionsatfirstoverview

%%%%%%%%%%% Load packages (from previous CEL template %%%%%%%%%%%%%%%
\newcommand{\templates}{..}	%% CHANGE
\input{\templates/preambles/packages.tex}

\input{\templates/preambles/macros.tex}

%%%%%%%%%%% Provide path for graphics inside template folder 
% The directory of the main .tex is always searched; this line also tells to search inside the template directory (e.g. \templates/logos/ etc.)
% Include custom directories by doing \graphicspath{{./images1/}{./images2/}}
\graphicspath{{\templates}}	%% CHANGE

% \showallatfirstoverviewfalse % uncomment to not show all sections at the first section

%%%%%%%%%%% Group info: logo must be in the directory logos/ %%%%%%%%%%%%%%%
%% If no group logo is desired, please call \grouplogo{} 
\grouplogo{CEL_logo.pdf} 

%% Group name and width (default: 89 mm) 
\groupname{Communications Engineering Lab (CEL)}
% \groupname{}
\groupnamewidth{100mm} % addjust this to change the distance between the group name and the group logo in the footer

%%%%%%%%%%%% Funding logos: logos must be in logos/Funding-logos %%%%%%%%%%%%%%
%% If no funding logos are desired, please call \fundinglogos{}
% \fundinglogos{}
\fundinglogos{bmbf_logo_en, dfg_logo} % add funding logos here
% erc_logo, bmbf_logo_en, BMFTR_en_crop, bmwk_logo, logo_jupyter

%%%%%%%%%%%% Presentation Meta Data %%%%%%%%%%%%%%%%%%%%
\title[short title]{Title: Presentation with \emph{CEL} template}
\subtitle{Subtitle: An Introduction to CELbeamer.cls} 
\author[Doe, Liu \& Schmalen]{\underline{Jone Doe}, Hedongliang Liu and Laurent Schmalen}
\date[]{\today}

% Reference .bib file
\addbibresource{presentation.bib}

\usepackage{lipsum}

\begin{document}

% Start of the presentation
% Title page

% KA palace north
\begin{frame}[title white vertical, picture=images/castle_1]
	\titlepage
\end{frame}
\begin{frame}[title white vertical, picture=images/castle_2]
	\titlepage
\end{frame}

\section{Basic Usage}
\subsection{Options}
\begin{frame}{Usages Options}
	The following options can be used by putting the \texttt{<option>} in the \texttt{\textbackslash documentclass[<option>]\{CELbeamer.cls\}} command:
\begin{itemize}
	\item \texttt{en} \textit{(default)} for English, \texttt{de} for German
	\item \texttt{helvet} \textit{(default)} for Helvetica font, \texttt{franklin} for Franklin Gothic font
	\item \texttt{bigfoot} \textit{(default)} sets the footer font size as 12pt; \texttt{smallfoot} sets the footer font size as 11pt.
	\item \texttt{navbaron} to show the navigation bar
	\item \texttt{kitgrid} to show the grid of rows and columns
	\item<2-> \texttt{handout} to create a handout version of the slides
	\item<2-> \texttt{spaceforface} to leave space for face in recording 
	\item<2-> \texttt{overviewatsection} to show the table of contents at each section
	\item<2-> \texttt{showsubsectionsatfirstoverview} to show all subsections at the first overview
\end{itemize}
\end{frame}
\begin{frame}{Font Size Examples}
	\tiny Tiny text

	\scriptsize Scriptsize text

	\footnotesize Footnotesize text

	\small Small text

	\normalsize Normal text

	\large large text

	\Large Large text

	\LARGE LARGE text

	\huge huge text

	\Huge Huge text
\end{frame}
\begin{frame}{Some math symbols}
	$$\sum_{i=1}^n i = \frac{n(n+1)}{2}$$	
	Inline sum: $\sum_{i=1}^n i = \frac{n(n+1)}{2}$
\end{frame}
\subsection{Color Boxes}
\begin{frame}{Color Blocks}{in the KIT Color Scheme}
	\begin{columns}
		\column{\kittwocolumns}
		\begin{greenblock}{Greenblock}
			Standard (\texttt{block})
        \end{greenblock}
		\column{\kittwocolumns}
		\begin{royalblueblock}{Royalblueblock}
			= \texttt{exampleblock}
        \end{royalblueblock}
		\column{\kittwocolumns}
		\begin{redblock}{Redblock}
			= \texttt{alertblock}
        \end{redblock}
	\end{columns}
	\begin{columns}
		\column{\kittwocolumns}
		\begin{grayblock}{Grayblock}
			Text
        \end{grayblock}
		\column{\kittwocolumns}
		\begin{lightgrayblock}{Lightgrayblock}
			Text
        \end{lightgrayblock}
		\column{\kittwocolumns}
		\begin{blueblock}{Blueblock}
			Text
        \end{blueblock}
	\end{columns}
	\begin{columns}
		\column{\kittwocolumns}
        \begin{brownblock}{Brownblock}
			Text
        \end{brownblock}
		\column{\kittwocolumns}
        \begin{purpleblock}{Purpleblock}
			Text
        \end{purpleblock}
		\column{\kittwocolumns}
        \begin{cyanblock}{Cyanblock}
			Text
        \end{cyanblock}
	\end{columns}
	\begin{columns}
		\column{\kittwocolumns}
        \begin{yellowblock}{Yellowblock}
			Text
        \end{yellowblock}
		\column{\kittwocolumns}
        \begin{lightgreenblock}{Lightgreenblock}
			Text
        \end{lightgreenblock}
		\column{\kittwocolumns}
        \begin{orangeblock}{Orangeblock}
			Text
        \end{orangeblock}
	\end{columns}
	\begin{columns}
		\column{\kittwocolumns}
		\begin{contentblock}{Contentblock}
			This is a content block without color.
		\end{contentblock}
		\column{\kittwocolumns}
		\column{\kittwocolumns}
	\end{columns}
	% For more colors, see \ref{frame:kit-colors}.
\end{frame}
\begin{frame}{Color Boxes}{with Filled Background}
	\begin{columns}
		\column{\kitthreecolumns}
		\begin{standardbox}
			Standard box
		\end{standardbox}
		\column{\kitthreecolumns}
		\begin{highlightbox}
			Highlight box
		\end{highlightbox}
	\end{columns}
	\vspace{\kitrowsep}
	\begin{columns}
		\column{\kittwocolumns}
		\begin{grayhighlightbox}
			Gray highlight box
		\end{grayhighlightbox}
		\column{\kittwocolumns}
		\begin{lightgrayhighlightbox}
			Light gray highlight box
		\end{lightgrayhighlightbox}
	\end{columns}
\end{frame}
\begin{frame}{Slide Layout via Column Split}
	The pre-defined lengths \texttt{$\backslash$kitcolumn, $\backslash$kittwocolumns}, ..., \texttt{ $\backslash$kitsixcolumns} can be used to create columns of different widths.
	\vspace{\kitrowsep}
	\begin{columns}
		\column{\kitthreecolumns}	
		This is a three-column layout. \\
		\lipsum[1][1-4]
		\column{\kitthreecolumns}
		This is another three-column layout. \\
		\lipsum[1][1-4]
	\end{columns}
	\vspace{\kitrowsep}
	\begin{columns}
		\column{\kittwocolumns}	
		\begin{standardbox}
			Two column box
		\end{standardbox}
		\column{\kittwocolumns}	
		\begin{highlightbox}
			Two column box
		\end{highlightbox}
		\column{\kittwocolumns}	
		\begin{grayhighlightbox}
			Two column box
		\end{grayhighlightbox}
	\end{columns}
\end{frame}

\section{Frames}
\subsection{Title and Footer}
\begin{frame}[t]{Title}{Subtitle}
    % Bei Frames mit Option \texttt{[t]} werden die Inhalte nicht vertikal zentriert, sondern an der Oberkante begonnen.
	With frames with the option \texttt{[t]}, the content is not vertically centered but started at the top edge.
\end{frame}

\begin{frame}
	With frames without a title, the free space for title can be used for content.
\end{frame}

\begin{frame}[plain]
    % Bei Frames mit Option \texttt{[plain]} werden weder Kopf- noch Fußzeile angezeigt.
	With frames with the option \texttt{[plain]}, neither header nor footer are displayed.
\end{frame}

\subsection{Grid Page for Hand-written Notes}
\begin{frame}{Notes Page with Grid Lines}
	The command \texttt{$\backslash$pagesNotes\{<label>\}\{<subtitle of the note page>\}} can be used to create a page with grid lines for notes, shown on the next slide. \\
	\texttt{$\backslash$refnotes{<label>}} creates a symbol linked to the page with notes. \\
	Let's learn more about entropy! \refnotes{note1}\\
	Let's learn more about divergence! \refnotes{note2}
\end{frame}
\pagesNotes{note1}{Entropy}
\pagesNotes{note2}{Divengence}

\subsection{Footnotes}
\begin{frame}{Footnotes}
	\begin{itemize}
		\item This is a normal footnote\footnote{This is a normal footnote.}.
		\item \texttt{$\backslash$nomarkfootnote} creates a footnote without a mark in the text\nomarkfootnote{This is a footnote without a mark.}.
		\item This is another normal footnote\footnote{This is another normal footnote.}.
	\end{itemize}
\end{frame}

\section{Other Tips}
\subsection{Citations}
\begin{frame}{Citations in Footnote using BibLaTeX}
  Citations in beamer were often dealed bypasting the full text. \\
  The biblatex package enables citing from your .bib file. \\
  Here are several examples of usage:\\[-.5em]
  \begin{itemize}
	\item Cite full text in footnote \footfullcite{Rode23ECOC} by \texttt{$\backslash$footfullcite}.
	\item If the mark is not wanted, combine \texttt{$\backslash$nomarkfootnote} and \texttt{$\backslash$fullcite}. \nomarkfootnote{\fullcite{Rode23JLT}}
 	\item Cite author and year in text \citeauthor{Rode23JLT}, \citeyear{Rode23JLT}.
  	\item Cite title in text \citetitle{Karanov18JLT}.
	\item Use \texttt{$\backslash$supercite} to cite the alphabetic bibkey \supercite{li2018achievable,Karanov18JLT}.
\end{itemize}
\textit{\footnotesize For more usage please refer to \href{http://tug.ctan.org/info/biblatex-cheatsheet/biblatex-cheatsheet.pdf}{\textcolor{kit-blue}{Biblatex Cheat Sheet}}.}
%   \vspace{-1em}
%   You can print all references that are cited at the end of presentation, as shown in the next slide.
\end{frame}

\begin{frame}{Cite in \emph{CEL} Style}
% 	% Cite the reference in text by 
	Cite the in text by \texttt{$\backslash$citereference\{\textcolor{kit-green}{<bibkey>}\}}. 
E.g., 
 	\begin{itemize}
 		\item End-to-end learning applied to optimize multidimensional constellations for IM/DD links~\citereference{Karanov18JLT}
 		\item End-to-end learning of transceivers for the nonlinear Fourier transform~\citereference{gaiarin2020end}
 		\item Constellation optimization for the zero-dispersion channel~\citereference{li2018achievable}
 	\end{itemize}


	Then add the references at the bottom of the page by \texttt{$\backslash$addreference\{<bibid>\}} for single reference, or \texttt{$\backslash$addreferences\{<bibid><bibid>...<bibid>$\backslash$stoppreferences\}} for multiple references.
	\bigskip
	\vfill

	% \addreference{Karanov18JLT}
	\addreferences{Karanov18JLT}{gaiarin2020end}{li2018achievable}\stopreferences
% \addreferences{GJD${}^+$20}{\fullcite{gaiarin2020end}}{LHG${}^+$18}{\fullcite{li2018achievable}}{KCT${}^+$18}{\fullcite{Karanov18JLT}}\stopreferences
\end{frame}

% \begin{frame}{Citations in \emph{CEL} Style (Cont'd)}
% 	Or use \texttt{$\backslash$citereferencewhite\{<Ref id shown>\}} if the background is dark.
% 	% \begin{blueblock}{Theorem \citereferencewhite{GJD${}^+$20}}
% 	% 	Let $a\in\bbN$ be ...	\\
% 	% 	\lipsum[2][1-2]
% 	% \end{blueblock}
% 	\addreference{GJD${}^+$20}{\fullcite{gaiarin2020end}}%
% 	\addreference{KCT${}^+$18}{\fullcite{Karanov18JLT}}%
% % \textbf{\textcolor{kit-red}{Current bug:} If the last reference in \texttt{$\backslash$addreference} has two lines, the slide will be split into two, one only has the title and one only has the content.}
% \end{frame}

\subsection{Handout Mode}
\begin{frame}{Handout Mode}
	Handout mode is activated by the option \texttt{handout} in the document class.\\
	A frame with multiple animated slides will be shown on one slide in the handout version.\\
	One can still control the number of slides of one frame in the handout version, e.g.,
	\begin{itemize}
        \only<1|handout:0>{\item One: This will not be shown in the handout version.}
        \only<2-|handout:1->{\item \textcolor{red}{One:} This is shown on the first slide of this frame in the handout version.}
        \only<1|handout:0>{\item Two: This will not be shown in the handout version.}
        \only<2-|handout:1->{\item \textcolor{blue}{Two:} This is also shown on the first slide in the handout version.}
		\item<only@3|handout:2>{Three: This is shown on the second slide in the handout version.}
		\item<only@4|handout:2>{Four: This is also shown on the second slide in the handout version.}
    \end{itemize}
\end{frame}

\subsection{Macros}
\begin{frame}{Predefined Macros}
	\begin{itemize}
		\item \schlagwort{Schlagwort} for highlighting keywords
		\item An important thing \mind for pointing out important things
		% \item \endofproof for a colored small box representing the end of a proof
	\end{itemize}
	Math macros
	\begin{itemize}
		\item \texttt{$\backslash$coloneq} $\coloneq$ for defining a new variable, e.g., $a \coloneq b + c$
		\item \texttt{$\backslash$myspan$\{\cdot\}$} for span notation, e.g. $\myspan{\ba,\bb,\bc}$
		\item \texttt{$\backslash$ceil$\{\cdot\}$} $\ceil{x}$ for ceiling function, e.g., $\ceil{3.14} = 4$
		\item \texttt{$\backslash$floor$\{\cdot\}$} $\floor{x}$ for floor function, e.g., $\floor{3.14} = 3$
		\item \texttt{$\backslash$dd} for differential operator, e.g., $\int f(x) \dd x$, $\frac{\dd f(x)}{\dd x}$
		\item \texttt{$\backslash$real} $\real$ for real part, e.g., $\real(z)$
		\item \texttt{$\backslash$imag} $\imag$ for imaginary part, e.g., $\imag(z)$ 
	\end{itemize}
\end{frame}

\begin{frame}{Math Macros (Cont'd)}
	\begin{itemize}
		\item \texttt{$\backslash$sinc} $\sinc(x)$ for sinc function, e.g., $\sinc(x) = \frac{\sin(\pi x)}{\pi x}$
		\item \texttt{$\backslash$rect} $\rect(x)$ for rectangular function, e.g., $\rect(x) = \begin{cases} 1 & |x| \leq \frac{1}{2} \\ 0 & \text{otherwise} \end{cases}$
	\end{itemize}
	Math symbols:
	\begin{itemize}
		\item \texttt{$\backslash$cA, $\cdots$} $\cA, \cB, \cC, \cdots$ for calligraphic letters
		\item $\0, \bm{n}, \bm{\alpha}, \bm{M}, \bm{\cM}$ for bold math symbols
		\item $\bbN, \bbR, \bbZ$ blackboard bold symbols for the sets of natural numbers, real numbers, and integers, respectively
		\item $\F, \Fq, \Fqm$ for finite field
		\item $\sfA, \sfB, \sfC, \cdots$ sans-serif math letters, usually for naming instead of parameters in notations
	\end{itemize}
	
\end{frame}
\appendix
\beginbackup


\begin{frame}{Backup Parts}
\begin{exampleblock}{Backup Parts}
    % Folien, die nach \texttt{\textbackslash beginbackup} eingefügt werden, zählen nicht in die Gesamtzahl der Folien.
	Slides that are inserted after \texttt{\textbackslash beginbackup} do not count towards the total number of slides.
\end{exampleblock}
\end{frame}

\begin{frame}{KIT Color Palette}\label{frame:kit-colors}

\newcommand{\csq}{\strut\hskip1.2em}
\begin{tabular}{rccccccccccccc}
	& 100 & 90 & 80 & 70 & 60 & 50 & 40 & 30 & 25 & 20 & 15 & 10 & 5\\
% GREEN
	kit-green
	& \colorbox{kit-green100}{\csq}
	& \colorbox{kit-green90}{\csq}
	& \colorbox{kit-green80}{\csq}
	& \colorbox{kit-green70}{\csq}
	& \colorbox{kit-green60}{\csq}
	& \colorbox{kit-green50}{\csq}
	& \colorbox{kit-green40}{\csq}
	& \colorbox{kit-green30}{\csq}
	& \colorbox{kit-green25}{\csq}
	& \colorbox{kit-green20}{\csq}
	& \colorbox{kit-green15}{\csq}
	& \colorbox{kit-green10}{\csq}
	& \colorbox{kit-green5}{\csq}\\[.5em]
% BLUE
	kit-royalblue
	& \colorbox{kit-royalblue100}{\csq}
	& \colorbox{kit-royalblue90}{\csq}
	& \colorbox{kit-royalblue80}{\csq}
	& \colorbox{kit-royalblue70}{\csq}
	& \colorbox{kit-royalblue60}{\csq}
	& \colorbox{kit-royalblue50}{\csq}
	& \colorbox{kit-royalblue40}{\csq}
	& \colorbox{kit-royalblue30}{\csq}
	& \colorbox{kit-royalblue25}{\csq}
	& \colorbox{kit-royalblue20}{\csq}
	& \colorbox{kit-royalblue15}{\csq}
	& \colorbox{kit-royalblue10}{\csq}
	& \colorbox{kit-royalblue5}{\csq}\\[.5em]
% BLUE
	kit-blue
	& \colorbox{kit-blue100}{\csq}
	& \colorbox{kit-blue90}{\csq}
	& \colorbox{kit-blue80}{\csq}
	& \colorbox{kit-blue70}{\csq}
	& \colorbox{kit-blue60}{\csq}
	& \colorbox{kit-blue50}{\csq}
	& \colorbox{kit-blue40}{\csq}
	& \colorbox{kit-blue30}{\csq}
	& \colorbox{kit-blue25}{\csq}
	& \colorbox{kit-blue20}{\csq}
	& \colorbox{kit-blue15}{\csq}
	& \colorbox{kit-blue10}{\csq}
	& \colorbox{kit-blue5}{\csq}\\[.5em]
% RED
	kit-red
	& \colorbox{kit-red100}{\csq}
	& \colorbox{kit-red90}{\csq}
	& \colorbox{kit-red80}{\csq}
	& \colorbox{kit-red70}{\csq}
	& \colorbox{kit-red60}{\csq}
	& \colorbox{kit-red50}{\csq}
	& \colorbox{kit-red40}{\csq}
	& \colorbox{kit-red30}{\csq}
	& \colorbox{kit-red25}{\csq}
	& \colorbox{kit-red20}{\csq}
	& \colorbox{kit-red15}{\csq}
	& \colorbox{kit-red10}{\csq}
	& \colorbox{kit-red5}{\csq}\\[.5em]
% GREY
	kit-gray	
	& \colorbox{kit-gray100}{\csq}
	& \colorbox{kit-gray90}{\csq}
	& \colorbox{kit-gray80}{\csq}
	& \colorbox{kit-gray70}{\csq}
	& \colorbox{kit-gray60}{\csq}
	& \colorbox{kit-gray50}{\csq}
	& \colorbox{kit-gray40}{\csq}
	& \colorbox{kit-gray30}{\csq}
	& \colorbox{kit-gray25}{\csq}
	& \colorbox{kit-gray20}{\csq}
	& \colorbox{kit-gray15}{\csq}
	& \colorbox{kit-gray10}{\csq}
	& \colorbox{kit-gray5}{\csq}\\[.5em]
% Orange
	kit-orange
	& \colorbox{kit-orange100}{\csq}
	& \colorbox{kit-orange90}{\csq}
	& \colorbox{kit-orange80}{\csq}
	& \colorbox{kit-orange70}{\csq}
	& \colorbox{kit-orange60}{\csq}
	& \colorbox{kit-orange50}{\csq}
	& \colorbox{kit-orange40}{\csq}
	& \colorbox{kit-orange30}{\csq}
	& \colorbox{kit-orange25}{\csq}
	& \colorbox{kit-orange20}{\csq}
	& \colorbox{kit-orange15}{\csq}
	& \colorbox{kit-orange10}{\csq}
	& \colorbox{kit-orange5}{\csq}\\[.5em]
% lightgreen
	kit-lightgreen
	& \colorbox{kit-lightgreen100}{\csq}
	& \colorbox{kit-lightgreen90}{\csq}
	& \colorbox{kit-lightgreen80}{\csq}
	& \colorbox{kit-lightgreen70}{\csq}
	& \colorbox{kit-lightgreen60}{\csq}
	& \colorbox{kit-lightgreen50}{\csq}
	& \colorbox{kit-lightgreen40}{\csq}
	& \colorbox{kit-lightgreen30}{\csq}
	& \colorbox{kit-lightgreen25}{\csq}
	& \colorbox{kit-lightgreen20}{\csq}
	& \colorbox{kit-lightgreen15}{\csq}
	& \colorbox{kit-lightgreen10}{\csq}
	& \colorbox{kit-lightgreen5}{\csq}\\[.5em]
% Brown
	kit-brown
	& \colorbox{kit-brown100}{\csq}
	& \colorbox{kit-brown90}{\csq}
	& \colorbox{kit-brown80}{\csq}
	& \colorbox{kit-brown70}{\csq}
	& \colorbox{kit-brown60}{\csq}
	& \colorbox{kit-brown50}{\csq}
	& \colorbox{kit-brown40}{\csq}
	& \colorbox{kit-brown30}{\csq}
	& \colorbox{kit-brown25}{\csq}
	& \colorbox{kit-brown20}{\csq}
	& \colorbox{kit-brown15}{\csq}
	& \colorbox{kit-brown10}{\csq}
	& \colorbox{kit-brown5}{\csq}\\[.5em]
% Purple
	kit-purple
	& \colorbox{kit-purple100}{\csq}
	& \colorbox{kit-purple90}{\csq}
	& \colorbox{kit-purple80}{\csq}
	& \colorbox{kit-purple70}{\csq}
	& \colorbox{kit-purple60}{\csq}
	& \colorbox{kit-purple50}{\csq}
	& \colorbox{kit-purple40}{\csq}
	& \colorbox{kit-purple30}{\csq}
	& \colorbox{kit-purple25}{\csq}
	& \colorbox{kit-purple20}{\csq}
	& \colorbox{kit-purple15}{\csq}
	& \colorbox{kit-purple10}{\csq}
	& \colorbox{kit-purple5}{\csq}\\[.5em]
% Cyan
	kit-cyan
	& \colorbox{kit-cyan100}{\csq}
	& \colorbox{kit-cyan90}{\csq}
	& \colorbox{kit-cyan80}{\csq}
	& \colorbox{kit-cyan70}{\csq}
	& \colorbox{kit-cyan60}{\csq}
	& \colorbox{kit-cyan50}{\csq}
	& \colorbox{kit-cyan40}{\csq}
	& \colorbox{kit-cyan30}{\csq}
	& \colorbox{kit-cyan25}{\csq}
	& \colorbox{kit-cyan20}{\csq}
	& \colorbox{kit-cyan15}{\csq}
	& \colorbox{kit-cyan10}{\csq}
	& \colorbox{kit-cyan5}{\csq}\\[.5em]
\end{tabular}
\end{frame}

\backupend

\end{document}
