Skip to content
Snippets Groups Projects
Select Git revision
  • 2289e10024d359c175e070ec983ff44bef452132
  • master default protected
2 results

header.tex

Blame
  • header.tex 2.82 KiB
    \documentclass[mathserif]{beamer}
    \usepackage[utf8]{inputenc} % Encodage des caractères du fichier source
    \usepackage[T1]{fontenc} % Encodage des caractères en sortie
    \usepackage{textcomp} % Jeu de symboles complémentaires
    \usepackage[french, english]{babel} % Support de la langue française
    \usepackage{biblatex}
    \usepackage{xcolor}
    \addbibresource{bibliography.bib}
    % \usetheme{Boadilla}
    % \usecolortheme{rose}
    \usetheme{metropolis}
    \hypersetup{pdfstartview={Fit}}
    \useinnertheme{rectangles}
    \setbeamertemplate{navigation symbols}{}
    \usepackage{textcomp}\usepackage{amsmath,amssymb,amsthm} % Toutes ces extensions proviennent de la classe AMS-LaTeX
    \usepackage{mathrsfs} % Pour les polices particulières en mode math (lettre ronde...) : \mathscr ou \mathcal pour les lettres rondes, \mathfrak pour les lettres gothiques
    \usepackage{array} % Pour générer des tableaux
    \setbeamertemplate{footline}[default]
    \usepackage{multirow}
    \usepackage{graphicx}
    %% symbol in math mode
    \newcommand\NN{\mathbb{N}}
    \newcommand\ZZ{\mathbb{Z}}
    \newcommand\QQ{\mathbb{Q}}
    \newcommand\RR{\mathbb{R}}
    \newcommand\CC{\mathbb{C}}
    \newcommand\EE{\mathbb{E}}
    \newcommand\HH{\mathbb{H}}
    \newcommand\II{\mathbf{1}}
    \newcommand\gts[1]{\og#1\fg}
    \newcommand\ab\allowbreak
    \newcommand{\deriv}{\mathrm{d}}
    \renewcommand{\arraystretch}{1.5}
    \newcommand\PP{\mathbb{P}}
    \newcommand{\tr}[1]{\ensuremath{#1^{T}}} % transposed notation
    \newcommand{\trr}[1]{\ensuremath{#1^{\, T}}}
    \newcommand{\mb}[1]{\ensuremath{\mathbf{#1}}} % bold letter in math
    \newcommand{\mbg}[1]{\ensuremath{\boldsymbol{#1}}} % bold symbol in math
    \newcommand\argmax{\text{argmax}}
    \newcommand\argmin{\text{argmin}}
    \newcommand\Var{\text{Var}}
    \newcommand\Cov{\text{Cov}}
    \newcommand\like{\mathcal{L}}
    \newcommand\Poi{\mathscr{P}}
    \newcommand\Gam{\Gamma}
    \newcommand\multin{\mathcal{M}}
    \newcommand\NB{\mathcal{NB}}
    \newcommand\bern{\mathcal{B}}
    \newcommand\msum{{\textstyle\sum}}
    \newcommand\mprod{{\textstyle\prod}}
    \newcommand\id{\text{Id}}
    \newcommand\rank{\text{rank}}
    \newcommand\prox{\text{Prox}}
    \newcommand\sgn{\text{sgn}}
    \newcommand\KL{\text{KL}}
    \newcommand\msc{\scriptsize}
    \newcommand\cond{\text{---}}
    \newcommand\logit{\text{logit}}
    
    \newenvironment{changemargin}[2]{%
      \begin{list}{}{%
        \setlength{\topsep}{0pt}%
        \setlength{\leftmargin}{#1}%
        \setlength{\rightmargin}{#2}%
        \setlength{\listparindent}{\parindent}%
        \setlength{\itemindent}{\parindent}%
        \setlength{\parsep}{\parskip}%
      }%
    \item[]}{\end{list}}
    
    \usepackage{minted}
    \definecolor{codebg}{HTML}{d6dce0}
    \newminted{sh}{bgcolor=codebg,style=manni,fontsize=\footnotesize}
    
    \AtBeginSection[]
    {
      \begin{frame}
        \frametitle{Table of Contents}
        \tableofcontents[currentsection]
      \end{frame}
    }
    
    \AtBeginSubsection[]
    {
      \begin{frame}
        \frametitle{Table of Contents}
        \tableofcontents[currentsection, currentsubsection]
      \end{frame}
    }