\documentclass[11pt, xcolor = {dvipsnames}]{beamer}

%-------------------------------------------------------
% BEAMER SETTINGS
%-------------------------------------------------------

%%% Options passed to the outer theme
\usetheme[]{Feather}

\definecolor{maincolor}{RGB}{8,86,215}

% Change the bar colors - NavyBlue initially
\setbeamercolor{Feather}{fg = maincolor!30, bg = maincolor}
% Change the color of the structural elements
\setbeamercolor{structure}{fg = maincolor}
% Change the frame title text color
\setbeamercolor{frametitle}{fg = white}
% Change the normal text colors
\setbeamercolor{normal text}{fg = black, bg = white}
% Change the block title colors
\setbeamercolor{block title}{fg = white, bg = maincolor}

% Change the logo in the upper right circle
\renewcommand{\logofile}{../Images/eclair.eps} 
% This is an image that comes with the LaTeX installation
% Adjust scale of the logo with regard to the circle; default is 0.875
\renewcommand{\logoscale}{0.35}

% Change the background image on the title and final page.
% It stretches to fill the entire frame!
\renewcommand{\backgroundfile}{./1-title.pdf}

%-------------------------------------------------------
% BEAMER OPTIONS (FRAMES & BLOCKS)
%-------------------------------------------------------

\AtBeginSection[]{
\begin{frame}{\secname}
\begin{columns}
\begin{column}[t]{0.5\linewidth}
\tableofcontents[current, sections = {1-4}, hideothersubsections, sectionstyle = show/shaded]
\end{column}
\hfill
\begin{column}[t]{0.5\linewidth}
\tableofcontents[current, sections = {5-8}, hideothersubsections, sectionstyle = show/shaded]
\end{column}
\end{columns}
\end{frame}
}

\setbeamercolor{block title alerted}{fg = red, bg = red!30}
\setbeamercolor{block body alerted}{fg = black, bg = red!10}

%-------------------------------------------------------
% INCLUDE PACKAGES
%-------------------------------------------------------

\usepackage[french]{babel}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\renewcommand{\familydefault}{\sfdefault}

\usepackage{newverbs}

\usepackage{enumitem, pifont, marvosym}
\setlist[enumerate, 1]{label = {\color{structure.fg}\arabic*)}}
\setlist[itemize, 1]{label = {--}}

\usepackage{amsmath, amsfonts, amssymb, esvect, mathrsfs, stmaryrd} % Pour faire des maths

\usepackage{array}
\renewcommand{\arraystretch}{1.3}

\usepackage{graphicx, float, subcaption}
\graphicspath{{../Images/}} % Chemin des images

\usepackage{ifthen}
\usetikzlibrary{arrows, arrows.meta, positioning}

%-------------------------------------------------------
% DEFINING AND REDEFINING COMMANDS
%-------------------------------------------------------

% Colored hyperlinks
\newcommand{\chref}[2]{
  \href{#1}{{\usebeamercolor[bg]{Feather}#2}}
}
\newcommand{\curl}[1]{
  {\usebeamercolor[bg]{Feather}\url{#1}}
}

% Colored verbatim
\newverbcommand{\cverb}{\color{red}}{}

% Correct font
\let\oldTeX\TeX % Pour éviter une boucle infinie dans le renewcommand qui suit
\renewcommand{\TeX}{{\rmfamily\oldTeX}}
\let\oldLaTeX\LaTeX
\renewcommand{\LaTeX}{{\rmfamily\oldLaTeX}}

% Exemple concret - Mise en forme
\setlength{\fboxrule}{2pt}
\setlength{\fboxsep}{1.5mm}
\newlength{\boxlength}
\newcommand{\exconc}[1]{
	\settowidth{\boxlength}{#1}
	\ifthenelse{\boxlength > \linewidth}{
		\setlength{\boxlength}{\linewidth}
	}{}
	{\fcolorbox{Peach}{Peach!30}{\parbox{\boxlength}{#1}}}
}

%-------------------------------------------------------
% TITLE PAGE -- INFORMATION
%-------------------------------------------------------

\title[Initiation à \LaTeX{}]{\textbf{Introduction à \LaTeX{}}}

\subtitle[]{Pour débutants et jeunes utilisateurs}

\author[Adrien Bouzigues]{%   
	Adrien \textsc{Bouzigues} \\[0.25\baselineskip]
	\includegraphics[width = 0.3\linewidth]{buque_auteur.eps} \\ [\baselineskip]
	Avec l'aide de l'UE 216 \\[-\baselineskip]
}

\institute[ENSAM]{\'Ecole Nationale Supérieure d'Arts \& Métiers \\[-\baselineskip]}

\date{\today}

\hypersetup{pdfauthor = {{Adrien Bouzigues - I13 Cl215}}, pdftitle = {{guide-latex-fr_beamer}}, pdfstartview = Fit, pdfpagelayout = SinglePage, pdfnewwindow = true, bookmarksnumbered = true, breaklinks, hidelinks, linktoc = all}

%\includeonly{./Slides/presentation,./Slides/logiciels_compilation,./Slides/texte,./Slides/maths,./Slides/tableaux}
\includeonly{./Slides/images}


%-------------------------------------------------------
% THE BODY OF THE PRESENTATION
%-------------------------------------------------------

\begin{document}

\everymath{\displaystyle}

{\1% % This is the name of the PDF file for the background
\begin{frame}[plain, noframenumbering] 
% plain : removes the header from the title page
% noframenumbering : removes the numbering of this frame only
\titlepage % Call the title page information from above
\end{frame}
}

\begin{frame}{Des questions ?}{Wooclap}
\huge{}Utilisation de Wooclap :

\begin{center}
\curl{www.wooclap.com/LATEXAM}
\end{center}
\end{frame}

\begin{frame}{Sommaire}
%\tableofcontents[hideallsubsections]
\begin{columns}[t]
\begin{column}{0.5\linewidth}
\tableofcontents[sections = {1-4}, hideothersubsections]
\end{column}
\hfill
\begin{column}{0.5\linewidth}
\tableofcontents[sections = {5-8}, hideothersubsections]
\end{column}
\end{columns}
\end{frame}

\include{./Slides/presentation}
\include{./Slides/logiciels_compilation}
\include{./Slides/texte}
\include{./Slides/maths}
\include{./Slides/tableaux}
\include{./Slides/images}
\include{./Slides/erreurs}
\include{./Slides/bonus_MR}

\end{document}
