\documentclass[12pt,a4paper,twoside]{report}
%====En-tête====
% Ajout des packages
\usepackage[french,english]{babel} % pour dire que le texte est en francais
\usepackage{csquotes}
\usepackage{a4} % pour la taille
\usepackage[T1]{fontenc} % pour les font postscript
\usepackage[cyr]{aeguill} % Police vectorielle TrueType, guillemets francais
\usepackage{epsfig} % pour gérer les images
\usepackage{amsmath,amsthm, mathtools} % très bon mode mathématique
\usepackage{amsfonts,amssymb,bm, bbold}% permet la definition des ensembles
\usepackage{algorithm2e} % pour les algorithmes
\usepackage{algpseudocode} % pour les algorithmes
\usepackage{float} % pour le placement des figure
\usepackage{url} % pour une gestion efficace des url
\usepackage[citecolor=blueind,urlcolor=blueps,bookmarks=false,hypertexnames=true]{hyperref}  % pour les hyperliens dans le document
\usepackage{tocbibind} % Pour avoir des index pour table des matières, biblio
\usepackage{tikz} % For graph plots
\usepackage[outline]{contour}
\usepackage[super]{nth}
\usepackage{caption} % Figures
\usepackage{subcaption} % And Subfigures
\usepackage{longtable}
\usepackage{rotating} % For allowing to rotate figures
\usepackage{svg} % To allow svg inclusions
\usepackage{float} % To allow Pandoc to control figure placement
\usepackage{booktabs} % For good tables

% FancyHDR
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[lo]{\slshape\nouppercase{\rightmark}}
\fancyhead[re]{\slshape\nouppercase{\leftmark}}
\fancyhead[ro,le]{\thepage}
% \pagestyle{fancy}

% % Clear all headers and footers
% \fancyhf{}

% % Header for even pages (left side)
% \fancyhead[LE]{\thechapter\quad\leftmark}

% % Header for odd pages (right side)
% \fancyhead[RO]{\rightmark\quad\thesection}

% % Ensure that chapter and section marks are used correctly
% \renewcommand{\chaptermark}[1]{\markboth{#1}{}}
% \renewcommand{\sectionmark}[1]{\markright{#1}}

% % Optional: define the appearance of chapter and section titles in the header
% \usepackage{titlesec}
% \titleformat{\chapter}[display]
%   {\normalfont\Large\bfseries\color{pruneps}}
%   {\chaptertitlename\ \thechapter}{20pt}{\LARGE}
% \titleformat{\section}
%   {\normalfont\Large\bfseries\color{vertps}}
%   {\thesection}{1em}{}

% Images
\graphicspath{{../img/}{../figure/}}

% Figure placement
\floatplacement{figure}{H}

%% Tikz Related
\usetikzlibrary{calc,shapes,backgrounds,arrows,automata,shadows,positioning,
arrows,shapes,positioning,shadows,trees,calc,backgrounds,
automata,positioning}



\tikzset{
    basic/.style  = {draw, text width=3cm, font=\sffamily, rectangle},
    root/.style   = {basic, rounded corners=2pt, thin, align=center,
            fill=green!30},
    level 2/.style = {basic, rounded corners=6pt, thin,align=center, fill=green!60,
            text width=8em},
    level 3/.style = {basic, thin, align=left, fill=pink!60, text width=3.5cm}
}


% Couleurs
% pour tickz multilevel
\input{../shared/colors}
% Bibliographie
\input{../shared/biblio}

% Nouvelles commandes
\newcommand{\Tau}{\mathcal{T}}
\newcommand{\eps}[1][]{\ensuremath{\epsilon_{#1}}}


% titre et auteur
\title{Rapport de stage dans l'UMR MIA Paris-Saclay}
\author{Louis Lacoste}
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\begin{document}

\begin{selectlanguage}{french}
    \maketitle

    \tableofcontents

    \include{remerciements}

    \include{presentation_UMR}

\end{selectlanguage}

\begin{selectlanguage}{english}

    \include{chapter2-context}

    \include{chapter3-structure-detection}

    \include{chapter-4-simulation-studies}

    % \chapter{Applications}
    % \include{Rcodes/real_data/application_dore}
    % \include{Rcodes/real_data/CoOPLBM_completion_analyze}

    \printbibliography
\end{selectlanguage}
\begin{selectlanguage}{french}
    \listoffigures
    \listoftables
\end{selectlanguage}

\end{document}