\documentclass[
	aspectratio=169, % default is 43
	8pt, % font size, default is 11pt
	%handout, % handout mode without animations, comment out to add animations
	%nosectionframes, % disable automatic frames at the begin of each section (default: sectiontitleslides in beamer mode and sectionoverviews in handout mode)
	%sectiontitleslides, % enable an automatic section title slide at the begin of each section
	%sectionoverviews, % enable an automatic section overview at the begin of each section
	%uniqueslidenumber, % will uniquely identify pages with overlays by a little suffix
	%darkmode, % switch to dark mode (do not use for presentation with a projector)
]{beamer}
\usepackage{../fancybeamer} % use the fancy beamer package

%\usepackage[ngerman]{babel} % use this line for slides in German

%\includeonlyframes{current} % default mechanism of beamer to include only labeled frames, can be used for debugging or drafting

% \AtEndPreamble{\setpaths{{pics/}{../pics/}}} % specify custom paths to your pictures

\title[Short Title]{This is the Long Title} % short title is used for the slide footer but optional
\subtitle[Short Subtitle]{This is the Long Subtitle} % subtitles are optional at all
\author[Short Author]{Long Author} % short author title is used for the slide footer but optional
\date{\today} % use a particular date here if needed

\fancylogos{example-image-a,example-image-b,example-image-c} % define logos that are spread evenly across the bottom of the title slide
% \fancylogos{example-image-a} % just one logo is possible as well, e.g., the logo of your university
% \fancylogos{,example-image-a} % you can use empty entries for a more fine-tuned alignment

\begin{document}

%\maketitle[] % title page without a picture
%\maketitle[example-image] % ... with title picture
\maketitle[example-image][50] % ... with optional parameter to move it upwards

\section{Slide Contents}

\subsection{Lists and Numbered Lists}
\begin{frame}{\insertsubsection}
	\begin{fancycolumns}
		Lists can be nested to a depth of three:
		\begin{itemize}
			\item Item on the first level
			\item Another item on the first level
			\begin{itemize}
				\item Item on the second level
				\item Another item on the second level
			\begin{itemize}
			\item Item on the third level
			\item Another item on the third level
			\end{itemize}
		\end{itemize}
	\end{itemize}
	\nextcolumn
	Numbered lists can be nested to a depth of three:
	\begin{enumerate}
		\item Item on the first level
		\item Another item on the first level
		\begin{enumerate}
			\item Item on the second level
			\item Another item on the second level
				\begin{enumerate}
					\item Item on the third level
					\item Another item on the third level
				\end{enumerate}
			\end{enumerate}
		\end{enumerate}
	\end{fancycolumns}
\end{frame}

\subsection{Colored Boxes}
\begin{frame}{\insertsubsection}
	Normal versions:
	\begin{fancycolumns}[columns=3]
		\begin{definition}{A Definition}
			This is a definition.
		\end{definition}
	\nextcolumn
		\begin{example}{An {\color{blue} Example}}
			This is an example.
		\end{example}
	\nextcolumn
		\begin{note}{A {\color{red} Note}}
			This is a note.
		\end{note}
	\end{fancycolumns}
	\vfill
	Versions without captions:
	\begin{fancycolumns}[columns=3]
		\begin{definition}{}
			This is a {\color{orange} definition}.
		\end{definition}
	\nextcolumn
		\begin{example}{}
			This is an {\color{blue} example}.
		\end{example}
	\nextcolumn
		\begin{note}{}
			This is a {\color{red} note}.
		\end{note}
	\end{fancycolumns}
	\vfill
	Tight versions with white background (e.g., for use with pictures):
	\begin{fancycolumns}[columns=3]
		\begin{definitiontight}{A Definition}
			\centering\includegraphics[width=.75\linewidth]{example-image}
		\end{definitiontight}
	\nextcolumn
		\begin{exampletight}{An Example}
			\centering\includegraphics[width=.75\linewidth]{example-image}
		\end{exampletight}
	\nextcolumn
		\begin{notetight}{A Note}
			\centering\includegraphics[width=.75\linewidth]{example-image}
		\end{notetight}
	\end{fancycolumns}
\end{frame}

{\MakeNewBox{amazing}{purple}
\begin{frame}{Create New and Modify Existing Boxes}
	\begin{fancycolumns}
		\begin{amazing}{An Amazing Box}
			You can create new boxes with \texttt{\textbackslash MakeNewBox\{name\}\{color\}} (which will check if any of the new box commands is already taken) or \texttt{\textbackslash DeclareBox\{name\}\{color\}} (which may overwrite existing commands). This box was created by \texttt{\textbackslash MakeNewBox\{amazing\}\{purple\}}.
		\end{amazing}
	\nextcolumn
		{\UpdateBoxColor{definition}{teal}
		\begin{definition}{This is a Definition}
			With \texttt{\textbackslash UpdateBoxColor\{name\}\{color\}} you can change the color of a box (locally to the current group). This definition was changed with \texttt{\textbackslash UpdateBoxColor\{definition\}\{teal\}}.
		\end{definition}}
		\bigskip
		\begin{definition}{Another Definition}
			This definition appears outside of the group, so \texttt{\textbackslash UpdateBoxColor\{definition\}\{teal\}} is no longer active.
		\end{definition}
	\end{fancycolumns}
\end{frame}
}

{\MakeNewBox[Improved-Box: ]{improved}{purple}[\hfill Jeah! \boxnumber]
\begin{frame}{Counting Boxes!}
	\UpdateBoxPrefix{definition}{Definition~\boxnumber: }%
	\begin{definition}{Hey Look At My Number!}
		With \texttt{\textbackslash UpdateBoxPrefix\{name\}\{prefix\}} you can change text to appear before the title of a box (locally to the current group). The macro \texttt{\textbackslash boxnumber} refers to the number of the current box that is robust against beamer overlays (but you do not have to use it).\medskip

		This box was updated with \texttt{\textbackslash UpdateBoxPrefix\{definition\}\{Definition~\textbackslash boxnumber: \}}.
		Similarly, there is \texttt{\textbackslash UpdateBoxSuffix\{name\}\{suffix\}} for text to appear after the title. As a comfort macro, there is \texttt{\textbackslash UpdateBoxSurround\{name\}\{prefix\}\{suffix\}}.
	\end{definition}
	\bigskip
	\onslide<2->{\begin{improved}{This can be done at construction!}
		Both \texttt{\textbackslash MakeNewBox[prefix]\{name\}\{color\}[postfix]} and \texttt{\textbackslash DeclareBox[prefix]\{name\}\{color\}[postfix]} have optional arguments that allow to set the prefix and suffix at construction. This box was created with \texttt{\textbackslash MakeNewBox[Improved-Box: ]\{improved\}\{purple\}[\textbackslash hfill Jeah! \textbackslash boxnumber]}.
	\end{improved}}%
\end{frame}
}

\subsection{Advanced Management of Pictures}
\begin{frame}{\insertsubsection}
	\begin{mycolumns}[t]
		\begin{example}{\texttt{\textbackslash pic} command}
			\centering\pic[width=0.5\textwidth,trim={.2\width} {.2\height} {.2\width} {.2\height},clip]{example-image}
		\end{example}
		\begin{note}{Explanation}
			Using the command \texttt{\textbackslash pic\{filename\}} a picture can be included. It works like \texttt{\textbackslash adjincludegraphics} and therefore supports advanced options like \texttt{trim}.
		\end{note}
	\mynextcolumn
		\begin{example}{Automatic Links}
			\centering\pic[width=0.5\textwidth]{example-image} % omit file extension of the image picture
		\end{example}
		\begin{note}{Explanation}
			In order to automatically add a (source) link to the picture, the link simply has to be stored in a txt-file with the same filename.
		\end{note}
	\end{mycolumns}
\end{frame}

\subsection{Automatic Dark-Mode for Pictures}
\begin{frame}{\insertsubsection}
	\begin{fancycolumns}
		\begin{notetight}{Normal Image with \texttt{\textbackslash pic}}
			\centering
			\pic[width=.7\textwidth]{example-image}
		\end{notetight}
	\nextcolumn
		\begin{notetight}{Inverted Image with \texttt{\textbackslash picDark} (in dark-mode only)}
			\centering
			\picDark[width=.7\textwidth]{example-image.jpg} % does only work for bitmap images so far
		\end{notetight}
	\end{fancycolumns}
	\begin{note}{Explanation}
		Using \texttt{\textbackslash picDark} instead of \texttt{\textbackslash pic}, the dark version of an image that is saved as \texttt{<image-name>-dark} automatically gets used when dark-mode is enabled.

		Images can also automatically be inverted if there is no separate dark version. Therefore, white gets converted to a dark gray that matches the dark background color of the slides.
	\end{note}
\end{frame}

\section{Slide Layouts}

\subsection{Multiple Columns}
\begin{frame}{\insertsubsection}
	\begin{fancycolumns}[columns=4] % default: 2 columns
		This is an example text that is shown in the \textbf{first column}.
	\nextcolumn
		This is an example text that is shown in the \textbf{second column}.
	\nextcolumn
		This is an example text that is shown in the \textbf{third column}.
	\nextcolumn
		This is an example text that is shown in the \textbf{last column}.
	\end{fancycolumns}
	\vfill
	\begin{note}{Explanation}
		Columns are separated by the command \texttt{\textbackslash nextcolumn}.

		The option \texttt{columns} specifies the number of columns that should be generated. The default number of columns is two.
	\end{note}
\end{frame}

\subsection{Columns with Custom Width}
\begin{frame}{\insertsubsection}
	\begin{fancycolumns}[columns=3,widths={20,30}]
		\begin{example}{}
			The \textbf{first column} takes 20\,\% of the width of the slide.
		\end{example}
	\nextcolumn
		\begin{example}{}
			The \textbf{second column} takes 30\,\% of the width of the slide.
		\end{example}
	\nextcolumn
		\begin{example}{}
			The \textbf{third column} takes the remaining 50\,\% of the width of the slide.
		\end{example}
	\end{fancycolumns}
	\vfill
	\begin{note}{Explanation}
		The widths of the single columns can also be manually specified by a list of percentages given to the option \texttt{widths}.

		All columns whose width is not specified are equally split over the remaining space.
	\end{note}
\end{frame}

\subsection{Columns with Custom Height}
\begin{frame}{\insertsubsection}
	\begin{fancycolumns}[height=6cm]
		\begin{example}{}
			This is the content of the first column.
		\end{example}
		\begin{note}{Explanation}
			If the content of a column exceeds a certain height, the common centering of all columns will not work anymore because beamer does not define the height of a slide. In this case, you can set the height of the columns manually by adding the option \texttt{height=<height>}.
		\end{note}
	\nextcolumn
		\begin{example}{}
			This is the content of the second column. It is too high and would make the first column move downwards without additional options.
			\vspace{80mm}
		\end{example}
	\end{fancycolumns}
\end{frame}

\subsection{Nested Columns}
\begin{frame}{\insertsubsection}
	\begin{fancycolumns}[T]
		\begin{example}{}
			This is the content of the first column.
		\end{example}
		\begin{fancycolumns}[columns=4]
			\mynote{}{1.1}
			\nextcolumn
			\mynote{}{1.2}
			\nextcolumn
			\mynote{}{1.3}
			\nextcolumn
			\mynote{}{1.4}
		\end{fancycolumns}
	\nextcolumn
		\begin{example}{}
			A column on the right side
		\end{example}
		\begin{fancycolumns}[T]
			\mynote{}{2.1}
			\begin{fancycolumns}[columns=3]
				\mynote{}{2.1.1}
				\nextcolumn
				\mynote{}{2.1.2}
				\nextcolumn
				\mynote{}{2.1.3}
			\end{fancycolumns}
			\nextcolumn
			\mynote{}{2.2}
		\end{fancycolumns}
	\end{fancycolumns}
\end{frame}

\subsection{Column Animations}
\begin{frame}{\insertsubsection\ -- Option keep}
	\begin{fancycolumns}[columns=3,keep] % short for animation=keep
		This is an example text that is shown in the \textbf{first column}.
	\nextcolumn
		This is an example text that is shown in the \textbf{second column}.
	\nextcolumn
		This is an example text that is shown in the \textbf{third column}.
	\end{fancycolumns}
	\vfill
	\begin{note}{Explanation}
		The option \texttt{keep} (short for \texttt{animation=keep}) introduces an animation which lets the columns appear one after another.

		The previous columns are kept on the slide when a new column is displayed.

		Animations are ignored in handout mode.
	\end{note}
\end{frame}

\begin{frame}{\insertsubsection\ -- Option forget}
	\begin{fancycolumns}[columns=3,forget] % short for animation=forget
		This is an example text that is shown in the \textbf{first column}.
	\nextcolumn
		This is an example text that is shown in the \textbf{second column}.
	\nextcolumn
		This is an example text that is shown in the \textbf{third column}.
	\end{fancycolumns}
	\vfill
	\begin{note}{Explanation}
		The option \texttt{forget} (short for \texttt{animation=forget}) introduces an animation which lets the columns appear one after another.

		The previous columns are removed when a new column is displayed.

		Animations are ignored in handout mode.
	\end{note}
\end{frame}

\begin{frame}{\insertsubsection\ -- Option animation=none}
	\begin{fancycolumns}[columns=3,animation=none]
		This is an example text that is shown in the \textbf{first column}.
	\nextcolumn
		This is an example text that is shown in the \textbf{second column}.
	\nextcolumn
		This is an example text that is shown in the \textbf{third column}.
	\end{fancycolumns}
	\vfill
	\begin{note}{Explanation}
		The option \texttt{animation=none} deactivates the animation of the columns.

		In the template, this is the default. However, you can overwrite the defaults to animate all slides easily (see \texttt{setfancycolumnsdefault} in the source code). Then, it might be necessary to deactivate those animations for some slides.
	\end{note}
\end{frame}

\begin{frame}[label=current]{\insertsubsection\ -- Option reverse}
	\begin{fancycolumns}[columns=3,forget,reverse]
		This is an example text that is shown in the \textbf{first column}.
	\nextcolumn
		This is an example text that is shown in the \textbf{second column}.
	\nextcolumn
		This is an example text that is shown in the \textbf{third column}.
	\end{fancycolumns}
	\vfill
	\begin{note}{Explanation}
		The option \texttt{reverse} inverts the order of any animation that is specified (i.e., using \texttt{keep} or \texttt{forget}).
	\end{note}
\end{frame}

\section{Other Features}

\subsection{Auto-Scaling for Long Titles}
\begin{frame}{\insertsubsection\ -- Long Titles are Scaled Down to the Available Space}
	\begin{note}{Explanation}
		Very long frame titles are scaled down automatically.

		\hfill\hfill\hfill This can avoid annoying linebreaks for a single character or word.\hfill~

		\hfill Use with care.
	\end{note}
\end{frame}

\subsection{Easy Navigation in Slides}
\begin{frame}{\insertsubsection}
	\vfill
	Click on the title (here \textbf{\insertshorttitle}) or subtitle (here \textbf{\insertshortsubtitle}) in the slide footer to jump to the title slide.
	\vfill
	Click on the section title (here \textbf{\insertsection}) in the slide footer to jump to the section overview.
	\vfill
	In the section overview, click on sections or subsections to jump to another part.
	\vfill
\end{frame}

\subsection{Repeating the Last Title Slide}
 % can be used as the last slide of your talk
\againtitle

\subsection{Content Overview}
% helpful to navigate to specific content, no need to show during the talk
%\contentoverview % create a content overview with one column
\contentoverview[3] % create a content overview with three columns

\end{document}