add the template
This commit is contained in:
commit
4402b9f490
1 changed files with 51 additions and 0 deletions
51
projektor.sty
Normal file
51
projektor.sty
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
\NeedsTeXFormat{LaTeX2e}
|
||||||
|
|
||||||
|
\ProvidesPackage{projektor}[2023/04/29 Class who happen to use beamer]
|
||||||
|
|
||||||
|
% Options
|
||||||
|
\newif\ifoption@code
|
||||||
|
\DeclareOption{code}{\option@codetrue}
|
||||||
|
\newif\ifoption@fr
|
||||||
|
\DeclareOption{fr}{\option@frtrue}
|
||||||
|
|
||||||
|
\ProcessOptions
|
||||||
|
\ifoption@code
|
||||||
|
% Intégration code
|
||||||
|
\RequirePackage{minted}
|
||||||
|
\usemintedstyle{emacs}
|
||||||
|
\fi
|
||||||
|
\ifoption@fr
|
||||||
|
% Langue
|
||||||
|
\RequirePackage[french]{babel}
|
||||||
|
\fi
|
||||||
|
|
||||||
|
% Metropolis + barre de progression + numéro de page
|
||||||
|
\usetheme[
|
||||||
|
progressbar=frametitle,
|
||||||
|
numbering=fraction
|
||||||
|
]{metropolis}
|
||||||
|
|
||||||
|
% Footer
|
||||||
|
\setbeamertemplate{frame footer}{
|
||||||
|
\insertsection \hfill\hspace{-4em} \insertshorttitle
|
||||||
|
}
|
||||||
|
\setbeamerfont{page number in head/foot}{size=\tiny}
|
||||||
|
\setbeamercolor{footline}{fg=gray}
|
||||||
|
|
||||||
|
% Enumerate au lieu d'itemize
|
||||||
|
\setbeamertemplate{section in toc}[sections numbered]
|
||||||
|
|
||||||
|
% Police
|
||||||
|
\RequirePackage[T1]{fontenc}
|
||||||
|
\RequirePackage{lmodern}
|
||||||
|
\renewcommand{\familydefault}{\sfdefault}
|
||||||
|
|
||||||
|
% Inverse titre court/titre long dans le plan
|
||||||
|
\RequirePackage{etoolbox}
|
||||||
|
\makeatletter
|
||||||
|
\patchcmd{\beamer@section}{{#2}{\the\c@page}}{{#1}{\the\c@page}}{}{}
|
||||||
|
\patchcmd{\beamer@section}{{\the\c@section}{\secname}}{{\the\c@section}{#1}}{}{}
|
||||||
|
\makeatother
|
||||||
|
|
||||||
|
\RequirePackage{multicol} % liste sur plusieurs colonnes
|
||||||
|
\RequirePackage[figurename=]{caption} % nom des images
|
Loading…
Reference in a new issue