%%% Uppsala University presentation beamer template v2.0
%%% provided by Diletta Goglia, IT Department, Uppsala University
%%% email: diletta.goglia@it.uu.se
%%% December, 2023
% This template is the updated version of the "Uppsala University presentation template v1.0" created by Mats Jonsson (mats@mekeriet.se) in March 2021.
\documentclass{beamer}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{hyperref, % clickable links
    graphicx, % include images
    listings, % for code and formatting
    caption, % customization of captions in figures and tables
    stackengine, % custom layouts 
    amsmath, % math env
    xcolor, % extend color support
    multicol, % multiple columns layout
    booktabs, % high quality tables
    lipsum % remove it
}
\usepackage{UU_beamer} % customized style
\def\cmd#1{\texttt{\color{red}\footnotesize $\backslash$#1}}
\def\env#1{\texttt{\color{blue}\footnotesize #1}}
% ------ CODE COLOR DEFINITION ------ %
\definecolor{codered}{rgb}{0.6,0,0}
\definecolor{codeblue}{rgb}{0,0,0.8}
\definecolor{codegreen}{rgb}{0,0.5,0}
\definecolor{almostwhite}{gray}{0.55}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstset{
    basicstyle=\ttfamily\small,
    keywordstyle=\bfseries\color{codeblue},
    emphstyle=\ttfamily\color{codered},   % Custom highlighting style
    stringstyle=\color{codepurple},
    numbers=left,
    numberstyle=\small\color{almostwhite},
    rulesepcolor=\color{red!20!green!20!blue!20},
    frame=shadowbox,
    commentstyle=\color{codegreen},
    captionpos=b    
}
% ------------- PRESENTATION INFO --------------- %
\newcommand{\fullconference}{Conference Name}
\newcommand{\shortconference}{Conference acronym}
\newcommand{\contact}{\textit{email@xx.uu.se}}
\author[N. Surname, \contact]{\href{}{Name Surname}}
\institute[ABC Dep, UU]{\href{}{ABC Department, Uppsala University}
    \\ \smallskip \contact}
\title[Short title]{Title}
\subtitle[\shortconference]{Subtitle}
\date[Month 20XX]{\small \today
    \\ \fullconference}
\begin{document}
% ------------ TITLE SLIDE --------------- %
{
% Remove headline and footline from first slide
\setbeamertemplate{footline}{} 
\setbeamertemplate{headline}{} 
\begin{frame}\label{start}
    \titlepage
    \begin{figure}
            \includegraphics[scale=0.65]{style/uu_logo.pdf} 
    \end{figure}
\end{frame}
}
% ---------- TABLE OF CONTENT --------- %
\begin{frame}{Agenda}
    \tableofcontents[sectionstyle=show, subsectionstyle=show/shaded/hide, subsubsectionstyle=show/shaded/hide]
\end{frame}
\section{Introduction}
\begin{frame}{Example of text and equation}
    \lipsum[1][1-4] % replace it with your text
    \begin{block}{Block Title}
        Block 1
    \end{block}
    \centering
    \begin{equation}
        x = \frac{{-a \pm \sqrt{{b}}}}{{c}}
        \label{eq:equation1}
    \end{equation}
    In Equation~\ref{eq:equation1}, we have the \textit{bla bla bla} formula.
\end{frame}
\section{Methodology}
\begin{frame}{Two columns layout}
    % --------- TWO COLUMNS LAYOUT ------- %
    \begin{columns}
        \column{0.5\textwidth}
        \begin{itemize}
            \item Item 1
            \item Item 2 
            \begin{itemize}
                \item Subitem 
            \end{itemize}
        \end{itemize}
        
        \column{0.5\textwidth}
        \begin{figure}
            \centering
            \includegraphics[height=0.5\textwidth]{images/placeholder_image.png}
            \caption{Image caption}
            \label{fig:figure1}
        \end{figure}
        
    \end{columns}
    
\end{frame}
\begin{frame}{Code snippet example}
    \lstinputlisting[language=Python, label=samplecode, caption=Example of code, % firstline=1, lastline=10
    ]{code.py}
\end{frame}
\begin{frame}{Table frame example}
\begin{table}
    \begin{tabular}{c|cc}
        \textbf{Col1} & Col2 & Col3 \\
        \hline
        1            & ...                    & ...             \\
        2            & ...                    & ...             \\
        3            & ...                    & ...             \\
    \end{tabular}
    \caption{Table name}
    \label{tab:table1}
\end{table}
\end{frame}
% --------- SECTION 3 ------- %
\section{Conclusion}
\begin{frame}{Results}
    \begin{figure}
        \centering
        \includegraphics[height=5cm]{images/placeholder_image.png}
        \caption{Image caption}
        \label{fig:figure2}
    \end{figure}
\end{frame}
% --------- SECTION 4 ------- %
\section{References}
\begin{frame}{References}
\hyperlink{start}{\beamerreturnbutton{Back to start}}
\nocite{bibitem1}
\nocite{*}
\bibliographystyle{IEEEtran} 
\bibliography{ref}
\end{frame}
\end{document}