%% 
%% Author:  Pascal ANELLI
%% Created: May 22 2014 
%% Modified: July 2020
%% Model for student
%% all in one
% Coding in UTF-8

% Documentation
% tutoriel: Une première présentation avec Beamer : http://germain-vallverdu.developpez.com/tutoriels/latex/beamer/1erbeamer/
% http://mcclinews.free.fr/latex/introbeamer.php
% https://www.tuteurs.ens.fr/logiciels/latex/beamer.html
% https://openclassrooms.com/courses/creez-vos-diaporamas-en-latex-avec-beamer/les-overlays-1

% http://mcclinews.free.fr/latex/beamergalerie.php
% http://deic.uab.es/~iblanes/beamer_gallery/
% http://www.matthiaspospiech.de/latex/vorlagen/beamer/preambel/beamer-settings/5/
% https://hartwork.org/beamer-theme-matrix/

% Ref guide
% texdoc beamer : http://tug.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf


\documentclass[11pt]{beamer}    % For display
%\documentclass[11pt, handout]{beamer} % For handout

%
% Beamer style
%
\mode<presentation>
{
    \usetheme[secheader]{Boadilla}  
    % secheader for the headline to show current section
    %\usetheme{Boadilla} %without top headline bar
  
 \setbeamertemplate{navigation symbols}{} % To remove  navigation bar
 \setbeamercovered{transparent} %option to cover item : invisible, transparent=% (85)
 \usecolortheme{orchid}
 %\setbeamertemplate{footline}[frame number] %only frame number

}

\mode<article>
{
  \typeout{*** article ***}
  \usepackage{times}
  \usepackage[left=1.5cm,right=6cm,top=1.5cm,bottom=3cm]{geometry}
}

\mode<handout> {
   \typeout{*** handout ***}
   \setbeamercolor{background canvas}{bg=blue!5}
   %\setbeamertemplate{note page}{\insertnote}
   \setbeamertemplate{note page}{\pagecolor{yellow!3}\insertnote} 
}

%\setbeameroption{show notes}
%\setbeameroption{show notes on second screen}
%\setbeameroption{show only notes}


%====================================================
%%			    	    Declaration                %%
%====================================================


\usepackage[utf8]{inputenc}
\usepackage[french]{babel}      % french typo
\usepackage[T1]{fontenc}       % On Output: latin-1
\usepackage{lmodern}           % French characters


\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{color}

\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{amsmath}
%\usepackage{url}
\usepackage{hyperref}

%\usepackage{listings}
%\lstset{language=python} %bash


%====================================================
%%				     Definitions	
%====================================================

\def\monnom{John Doe}
\def\titre{Titre présentation}

\def\plan{Plan}


\newcommand{\bi}{\begin{itemize}}
\newcommand{\ei}{\end{itemize}}
\renewcommand{\i}{\item} %\i already defined


%====================================================
%%				New command for beamer            %%
%====================================================

\AtBeginSection{
    \begin{frame}[c,noframenumbering]
        \frametitle{\plan}
        \tableofcontents[currentsection,hideothersubsections]
    \end{frame}
}

\AtBeginSubsection{
    \begin{frame}[c,noframenumbering]
        \frametitle{\plan}
        \tableofcontents[currentsection,currentsubsection,subsectionstyle=show/shaded/hide]
        % subsectionstyle=⟨style for current subsection⟩/⟨style for other subsections in current section⟩/ ⟨style for subsections in other sections⟩ 
    \end{frame}
}


%====================================================
%%				     PDF	
%====================================================
\hypersetup{
       breaklinks=true,                        % Permet le retour à la ligne dans les liens trop longs.
       bookmarks=true,                         % Créé des signets pour Acrobat.
       pdftitle={Modèle},                     % Titre du document;  Informations apparaissant dans
       pdfauthor={Master},           % dans les informations du document
       pdfsubject={},         % sous Acrobat.
      pdfpagemode = FullScreen,				  % afficher le pdf en plein écran
      pdfkeywords = {Beamer},%
      pdfcreator  = {PDFLaTeX},%
      pdfproducer = {PDFLaTeX}%
    }


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%Title page
%
\title[Exposé]{\titre}
\author[\monnom]{\monnom}
\date[]{\today}
\institute[UR]{	\normalsize Master Informatique\\ \small Université de la Réunion}


%=======================================
%%				   BEGIN				 %%
%=======================================
\begin{document}
%                            -=---------------=-
\begin{frame}
\titlepage
\end{frame}
%                            -=---------------=-
  \begin{frame}<beamer>
    \frametitle{\plan}
    \tableofcontents[]
  \end{frame}
\typeout{*** Part Introduction ***}
%------------------------------
\section{Introduction}
%------------------------------
%                            -=---------------=-
\begin{frame}[t]
\frametitle{Contexte}
\bi
\i Le problème
\i Illustration par un exemple\\
\i En quoi est ce intéressant ?
\ei
\end{frame}
\note{explications}
%                            -=---------------=-
\frame{
\frametitle{L'idée}
\structure{Quelle est la proposition ?}
}
%                            -=---------------=-
\typeout{*** Part Proposition ***}
%------------------------------
\section{Proposition}
%------------------------------

%                            -=---------------=-
\begin{frame}[t]
\frametitle{Les éléments de la proposition}
\framesubtitle{qqchose}

Présentation \ldots
\end{frame}
%                            -=---------------=-
\begin{frame}[t]
\frametitle{Les défis, les difficultés}
\bi
\i Quels sont les points durs de la proposition? 
\i Comment ont-ils été traités ?
\ei
\end{frame}
%                            -=---------------=-
\begin{frame}[t]
\frametitle{Les autres approches}
\structure{Evaluation comparative}
\end{frame}
%                            -=---------------=-
\typeout{*** Part Conclusion ***}
%------------------------------
\section{Conclusion}
%------------------------------
%                            -=---------------=-
\begin{frame}[t]
\frametitle{Bilan et perspectives}
\end{frame}

%                            -=---------------=-
\begin{frame}[t]
\frametitle{Bibliographie}
\end{frame}

%                            -=---------------=-
%\frame{
%\frametitle{Fin}
%
%Document réalisé avec \LaTeX\ le \today.\\
%Style de document \texttt{beamer}.\\
%
%par \monnom \\
%}

%% That's all folks !!
\end{document}


%%%%%%%%%%%%%%%%%%%%%%%%%%%   EXAMPLES  %%%%%%%%%%%%%%%%%%%%%%%%%
% From Beamer user guide
% http://tug.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf

%\begin{frame}
%    \frametitle{Slide}
%\end{frame}


%\begin{frame}
%\frametitle{overlayarea}
%\begin{overlayarea}{\textwidth}{3cm}
%\only<1>{Some text for the first slide.\\Possibly several lines long.}
%\only<2>{Replacement on the second slide.}
%\end{overlayarea}
%\end{frame}

%

%\begin{frame}
%\frametitle{overprint}
%\begin{overprint}
%\onslide<1| handout:1>
%Some text for the first slide.\\
%Possibly several lines long.
%\onslide<2| handout:0>
%Replacement on the second slide. Supressed for handout.
%\end{overprint}
%\end{frame}

%\begin{frame}
%\frametitle{altenv}
%This
%\begin{altenv}<2>{(}{)}{[}{]}
%word
%\end{altenv}
%is in round brackets on slide 2 and in square brackets on slide 1.
%\end{frame}

%
%\begin{frame}
%\frametitle{onslide}
%Shown on first slide.
%\onslide<2-3>
%Shown on second and third slide.
%\begin{itemize}
%\item
%Still shown on the second and third slide.
%\onslide+<4->
%\item
%Shown from slide 4 on.
%\end{itemize}
%Shown from slide 4 on.
%\onslide
%Shown on all slides.
%\end{frame}


%\begin{frame}
%\onslide<1>{1. onslide\\}
%\uncover<1>{2. uncover\\}
%\onslide+<2>{3. onslide+\\}
%\visible<2>{4. visible\\}
%\onslide*<3>{5. onslide*\\}
%\only<3>{6. only}
%\end{frame}


%\begin{frame}
%\frametitle{What Are Prime Numbers?}
%\begin{definition}
%A \alert{prime number} is a number that has exactly two divisors.
%\end{definition}
%\end{frame}

%\begin{frame}[t]
%\frametitle{overlay specification}
%\framesubtitle{The proof uses \textit{reductio ad absurdum}.}
%\begin{theorem}
%There is no largest prime number.
%\end{theorem}
%\begin{proof}
%\begin{enumerate}
%\item<1-> Suppose $p$ were the largest prime number.
%\item<2-> Let $q$ be the product of the first $p$ numbers.
%\item<3-> Then $q + 1$ is not divisible by any of them.
%\item<1-> Thus $q + 1$ is also prime and greater than $p$.\qedhere
%\end{enumerate}
%\end{proof}
%\only<4->{The proof used \textit{reductio ad absurdum}.}
%\end{frame}

%
%\begin{frame}
%\frametitle{What?s Still To Do?}
%\begin{block}{Answered Questions}
%How many primes are there?
%\end{block}
%\begin{block}{Open Questions}
%Is every even number the sum of two primes?
%\end{block}
%\end{frame}

%\newtheorem{answeredquestions}[theorem]{Answered Questions}
%\newtheorem{openquestions}[theorem]{Open Questions}

%\begin{frame}
%\frametitle{What's Still To Do?}
%\begin{itemize}
%\item Answered Questions
%\begin{itemize}
%\item How many primes are there?
%\end{itemize}
%\item Open Questions
%\begin{itemize}
%\item Is every even number the sum of two primes?
%\end{itemize}
%\end{itemize}
%\begin{answeredquestions}
%reponse
%\end{answeredquestions}
%\end{frame}

%\begin{frame}
%\frametitle{What's Still To Do?}
%\begin{columns}
%\column{.5\textwidth}
%\begin{block}{Answered Questions}
%How many primes are there?
%\end{block}
%\column{.5\textwidth}
%\begin{block}{Open Questions}
%Is every even number the sum of two primes?
%\end{block}
%\end{columns}
%\end{frame}\begin{frame}<beamer>
%    \frametitle{plan}
%    \tableofcontents[currentsection,currentsubsection]
%\end{frame}


%
%\begin{frame}<beamer>
%    \frametitle{plan}
%    \tableofcontents[currentsection,currentsubsection]
%\end{frame}



