Slides

Contrairement aux autres articles sur le LaTeX qui utilisent pandoc et permettent donc de mélanger le LaTeX et le Markdown, nous utiliserons ici latexmk pour compiler le document.

slides.tex :

%\documentclass[handout, 11pt,a4paper,final,aspect ratio=169]{beamer}   % This one is for printing
\documentclass[11pt,a4paper,final,aspect ratio=169]{beamer}             % This one is for presenting (with \pause)

% See the following links to choose a theme and color
% http://mcclinews.free.fr/latex/beamergalerie/completsgalerie.html
% https://deic.uab.cat/~iblanes/beamer_gallery/index_by_theme_and_color.html
\usetheme{metropolis}
%\usecolortheme{seagull}

% Prevent navigation buttons on the slide
\beamertemplatenavigationsymbolempty

% Make sure table of content are numbered
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]

\usepackage[utf8]{inputenc}
\usepackage[french]{babel}

\usepackage{enumitem}
\setlist[description]{style=nextline} % Specific for some types of lists
\setlist[itemize]{label=\textbullet}  % Specific for some types of lists

\newcommand\tab[1][4mm]{\hspace*{#1}}

% Add a slide when section changes
\AtBeginSection[]{
\begin{frame}
\sectionpage
\end{frame}
\addtocounter{framenumber}{-1}
}

% Add a slide when subsection changes
\AtBeginSubsection[]{
\begin{frame}
\subsectionpage
\end{frame}
\addtocounter{framenumber}{-1}
}

\title{titre}
\subtitle{sous titre}
\author{Moi}
\date{\today}

\begin{document}
\begin{frame}
\vspace*{0.05cm}
{\Large \bfseries Titre \\[0.2cm]}{\large Sous titre}\\
{\usebeamercolor[fg]{alerted text}{\rule{\linewidth}{0.2mm}\\[0.4cm]}}

\textbf{auteur}\\{\today}

\begin{figure}[h]
\centering
\includegraphics[width=0.2\textwidth]{img/logo1.png}%
\tab[8mm]
\includegraphics[width=0.2\textwidth]{img/logo2.png}%
\tab[8mm]
\includegraphics[width=0.2\textwidth]{img/logo3.png}%
\end{figure}
\end{frame}

\begin{frame}
\tableofcontents
\end{frame}


\section{Définitions}
\begin{frame}{\secname}
\begin{description}
\item[Mot]{Définition}
\item[Mot 2]{Définition 2}
\end{description}
\end{frame}

\section{Partie 1.}
\subsection{Partie 1.1}
\begin{frame}{\secname ~--\subsecname}
Such slide\pause
Such animation
\end{frame}

\subsection{Partie 1.2}
\begin{frame}{\secname ~--\subsecname}
Such new slide\pause
Such new animation
\end{frame}

%\input{otherfile.tex}

\end{document}

La compilation se fait avec la commande latexmk -pdf slides.tex