Commit 2a38960c authored by Yoann Pigné's avatar Yoann Pigné Committed by node
Browse files

Update on Overleaf.

parents
This diff is collapsed.
# Template de pésenattion Beamer pour le LITIS
Ce dépôt contient :
- un thème Beamer pour le LITIS (le dossier `theme`),
- une classe latex permettant de créer des présentations beamer déjà configurées pour utiliser le thème beamer LITIS,
- les différentes ressources (images, logos) nécessaires au thème LITIS (dossier `logos`).
## Utilisation
Cloner ou copier le contenu de ce projet, puis utiliser le `documentclass` `litis` dans le document principal.
Les 3 fichiers :
- `demo-litis.tex`,
- `logo-demo.png` et
- `litis-demo-bibliographie.bib`
servent d'exemple de présentation.
## Compilation
Idéalement on utilise la commande `mklatex -pdf demo-litis.tex` mais une combinaison `pdflatex+bibtex+pdflatex+pdflatex` devrait fonctionner.
\documentclass{litis}
\title{Laboratoire LITIS}
\subtitle{Bilan et projet}
\author{Laurent Heutte}
\institute{Laboratoire LITIS (FR 3638) \\ URN -- INSARN -- ULHN }
\date{Visite Hcéres 2021}
\footlineinfo{Visite Hcéres 2021}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
% Use starred version (e.g. \section*{Section name})
% to disable (sub)section page.
\section{Section 1}
\subsection{Subsection 1.1}
\begin{frame}{Simple frame}
This is a simple frame.
\end{frame}
\subsection{Subsection 1.2}
\begin{frame}[t]
This frame has an empty title and is aligned to top.
\end{frame}
\begin{frame}[noframenumbering]{No frame numbering}
This frame is not numbered and is citing reference \cite{knuth74}.
\end{frame}
\begin{frame}{Typesetting and Math}
\[ \frac{1+\frac{a}{b}}{1+\frac{1}{1+\frac{1}{a}}} \]
\vfill
\[
\binom{n}{k} = \frac{n!}{k!(n-k)!}
\]
\vfill
\begin{equation*}
e^{i\pi} + 1 = 0.
\end{equation*}
\end{frame}
\section{Section 2}
\begin{frame}{Columns}
\begin{columns}
\column{0.33\textwidth}
\centering
Column 1
\column{0.33\textwidth}
\centering
Column 2
\column{0.33\textwidth}
\centering
Column 3
\end{columns}
\end{frame}
\begin{frame}{Blocks}
\begin{block}{Bloc "normal"}
sans couleur de fond.
\end{block}
\begin{alertblock}{Bloc de type "\texttt{alertblock}"}
Avec du texte clair et un fond de la couleur principale.
\end{alertblock}
\begin{alertblock}{}
Un "\texttt{alertblock}" sans titre.
\end{alertblock}
\begin{exampleblock}{Bloc de type "\texttt{exampleblock}"}
avec du text clair et le fond de la couleur secondaire.
\end{exampleblock}
\end{frame}
\begin{frame}{Lists}
\begin{columns}[t, onlytextwidth]
\column{0.33\textwidth}
Items:
\begin{itemize}
\item Item 1
\begin{itemize}
\item Subitem 1.1
\item Subitem 1.2
\end{itemize}
\item Item 2
\item Item 3
\end{itemize}
\column{0.33\textwidth}
Enumerations:
\begin{enumerate}
\item First
\item Second
\begin{enumerate}
\item Sub-first
\item Sub-second
\end{enumerate}
\item Third
\end{enumerate}
\column{0.33\textwidth}
Descriptions:
\begin{description}
\item[First] Yes.
\item[Second] No.
\end{description}
\end{columns}
\end{frame}
\setbeamertemplate{caption}[numbered]
\begin{frame}{Figures and Tables}
\begin{columns}
\column{0.4\textwidth}
\begin{figure}
\centering
\includegraphics{logo-demo.png}
\caption{Figure caption.}
\label{fig:litislogo}
\end{figure}
\column{0.6\textwidth}
\begin{table}
\centering
\begin{tabular}{rcc}
& Heading 1 & Heading 2 \\\hline
Row 1 & \(v_{11}\) & \(v_{12}\) \\
Row 2 & \(v_{21}\) & \(v_{22}\) \\
Row 3 & \(v_{31}\) & \(v_{32}\) \\
\end{tabular}
\caption{Table caption.}
\label{tab:demo}
\end{table}
\end{columns}
\end{frame}
\begin{frame}[end]
Questions? Remarks?
\end{frame}
\appendix
\begin{frame}{References}
\nocite{*}
\bibliography{litis-demo_bibliography}
\bibliographystyle{plain}
\end{frame}
\begin{frame}{Backup frame}
\usebeamercolor[fg]{normal text}
This is a backup frame, useful to include additional material for questions from the audience.
\vfill
The package \texttt{appendixnumberbeamer} is used not to number appendix frames.
\end{frame}
\end{document}
@article{knuth74,
author = {Knuth, Donald E.},
title = {Computer Programming As an Art},
journal = {Commun. ACM},
year = {1974},
pages = {667--673},
numpages = {7},
publisher = {ACM},
address = {New York, NY, USA}
}
@article{knuth92,
author = {Knuth, Donald E.},
title = {Two notes on notation},
journal = {Amer. Math. Monthly},
volume = {99},
year = {1992},
pages = {403--422}
}
@book{lamport94,
title = {LaTeX: A Document Preparation System},
author = {Lamport, Leslie},
year = {1994},
publisher = {Pearson Education India}
}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{litis}[2021/07/17 Litis]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}
\ProcessOptions\relax
\LoadClass[aspectratio=169]{beamer}
\makeatletter
\def\beamer@calltheme#1#2#3{%
\def\beamer@themelist{#2}
\@for\beamer@themename:=\beamer@themelist\do
{\usepackage[{#1}]{\beamer@themelocation/#3\beamer@themename}}}
\def\usefolder#1{
\def\beamer@themelocation{#1}
}
\def\beamer@themelocation{}
\usefolder{theme}
\usetheme[numbering=fullbar]{litis}
\RequirePackage{pgfpages}
\ No newline at end of file
% Copyright (C) 2018-2020 Pasquale Claudio Africa and the LaTeX community.
% A full list of contributors can be found at
%
% https://github.com/elauksap/focus-beamertheme
%
% This file is part of beamerthemefocus.
%
% beamerthemefocus is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% beamerthemefocus is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with beamerthemefocus. If not, see <http://www.gnu.org/licenses/>.
% Overeiden version of the Focus Theme for the purpose of the LITIS Lab (2021)
\mode<presentation>
% DEFINE COLORS. ---------------------------------------------------------------
%%% pallette 1 : https://coolors.co/e63946-f1faee-a8dadc-457b9d-1d3557
% \definecolor{c_froid_sombre}{HTML}{1d3557} % froid sombre
% \definecolor{c_froid_clair}{HTML}{457b9d} % froid clair
% \definecolor{c_blanc}{HTML}{f1faee} % blanc
% \definecolor{c_chaud_clair}{HTML}{a8dadc} % chaud clair
% \definecolor{c_chaud_sombre}{HTML}{e63946} % chaud sombre
%%% pallette 2 : https://coolors.co/3d5a80-98c1d9-e0fbfc-ee6c4d-293241
% \definecolor{c_froid_sombre}{HTML}{293241} % froid sombre
% \definecolor{c_froid_clair}{HTML}{3D5A80} % froid clair
% \definecolor{c_blanc}{HTML}{f0fbfc} % blanc
% \definecolor{c_chaud_clair}{HTML}{98C1D9} % chaud clair
% \definecolor{c_chaud_sombre}{HTML}{EE6C4D} % chaud sombre
%%% pallette 3 :
\definecolor{c_froid_sombre}{HTML}{2d3142} % froid sombre
\definecolor{c_froid_clair}{HTML}{4f5d75} % froid clair
\definecolor{c_blanc}{HTML}{ffffff} % blanc
\definecolor{c_chaud_clair}{HTML}{bfc0c0} % chaud clair
\definecolor{c_chaud_sombre}{HTML}{ef8354} % chaud sombre
%%% pallette 4 : https://coolors.co/086788-07a0c3-f0c808-fff1d0-dd1c1a
% \definecolor{c_froid_sombre}{HTML}{086788} % froid sombre
% \definecolor{c_froid_clair}{HTML}{07a0c3} % froid clair
% \definecolor{c_blanc}{HTML}{fffefa} % blanc
% \definecolor{c_chaud_clair}{HTML}{f0c808} % chaud clair
% \definecolor{c_chaud_sombre}{HTML}{dd1c1a} % chaud sombre
%%% pallette 5 : https://coolors.co/e63946-f1faee-a8dadc-457b9d-1d3557
% \definecolor{c_froid_sombre}{HTML}{000000} % froid sombre
% \definecolor{c_froid_clair}{HTML}{14213d} % froid clair
% \definecolor{c_blanc}{HTML}{ffffff} % blanc
% \definecolor{c_chaud_clair}{HTML}{d5d5d5} % chaud clair
% \definecolor{c_chaud_sombre}{HTML}{fca311} % chaud sombre
%%% pallette 6 : https://coolors.co/780000-c1121f-fdf0d5-003049-669bbc
% \definecolor{c_froid_sombre}{HTML}{283d3b} % froid sombre
% \definecolor{c_froid_clair}{HTML}{197278} % froid clair
% \definecolor{c_blanc}{HTML}{fffcf2} % blanc
% \definecolor{c_chaud_clair}{HTML}{c44536} % chaud clair
% \definecolor{c_chaud_sombre}{HTML}{772e25} % chaud foncé
%\definecolor{main}{RGB}{64, 64, 64}
%\definecolor{background}{RGB}{239, 239, 239}
\colorlet{main}{c_froid_sombre}
\colorlet{secondary}{c_froid_clair}
\colorlet{background}{c_blanc}
% \definecolor{alert}{RGB}{180, 0, 0}
% \definecolor{example}{RGB}{0, 110, 0}
\colorlet{alert}{c_chaud_sombre}
\colorlet{example}{c_chaud_clair}
% SET COLORS. ------------------------------------------------------------------
\setbeamercolor{normal text}{fg=main, bg=background}
\setbeamercolor{alerted text}{fg=alert}
\setbeamercolor{example text}{fg=example}
\setbeamercolor{titlelike}{fg=background, bg=secondary}
\setbeamercolor{frametitle}{bg=background, fg=secondary}
\setbeamercolor{sectiontitle}{parent={titlelike}}
\setbeamercolor{footline}{fg=background, bg=secondary}
\setbeamercolor{block title}{bg=, fg=main!70!black}
\setbeamercolor{block body}{bg=, fg=main}
\setbeamercolor{block title alerted}{bg=main, fg=alert}
\setbeamercolor{block body alerted}{bg=main, fg=background}
\setbeamercolor{block title example}{bg=secondary, fg=background}
\setbeamercolor{block body example}{bg=secondary, fg=background}
\setbeamercolor{itemize item}{fg=main}
\setbeamercolor{itemize subitem}{fg=main}
\setbeamercolor{enumerate item}{fg=main!70!black}
\setbeamercolor{enumerate subitem}{fg=main!70!black}
\setbeamercolor{description item}{fg=main!70!black}
\setbeamercolor{description subitem}{fg=main!70!black}
\setbeamercolor{caption name}{fg=main}
\setbeamercolor{section in toc}{fg=main}
\setbeamercolor{subsection in toc}{fg=main}
\setbeamercolor{section number projected}{bg=main}
\setbeamercolor{subsection number projected}{bg=main}
\setbeamercolor{bibliography item}{fg=main}
\setbeamercolor{bibliography entry author}{fg=main!70!black}
\setbeamercolor{bibliography entry title}{fg=main}
\setbeamercolor{bibliography entry location}{fg=main}
\setbeamercolor{bibliography entry note}{fg=main}
\mode<all>
% Copyright (C) 2018-2020 Pasquale Claudio Africa and the LaTeX community.
% A full list of contributors can be found at
%
% https://github.com/elauksap/focus-beamertheme
%
% This file is part of beamerthemefocus.
%
% beamerthemefocus is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% beamerthemefocus is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with beamerthemefocus. If not, see <http://www.gnu.org/licenses/>.
% Overeiden version of the Focus Theme for the purpose of the LITIS Lab (2021)
\mode<presentation>
% SET FONTS. -------------------------------------------------------------------
\setbeamerfont{title}{size=\huge, shape=\scshape\bfseries}
\setbeamerfont{subtitle}{size=\Large, shape=\scshape, parent=structure}
\setbeamerfont{author}{size=\Large, shape=\scshape}
\setbeamerfont{institute}{size=\large, shape=\scshape}
\setbeamerfont{date}{size=\large, shape=\scshape}
\setbeamerfont{sectiontitle}{size=\huge, series=\scshape\bfseries}
\setbeamerfont{subsectiontitle}{size=\Large, series=\scshape\bfseries}
\setbeamerfont{frametitle}{size=\Large, shape=\scshape}
\setbeamerfont{footline}{size=\scriptsize}
\setbeamerfont{litisframe}{size=\huge, shape=\scshape}
\setbeamerfont{description item}{shape=\bfseries}
\setbeamerfont{caption name}{shape=\bfseries}
\setbeamerfont{bibliography item}{size=\small, shape=\scshape}
\setbeamerfont{bibliography entry author}{size=\small, shape=\scshape}
\setbeamerfont{bibliography entry title}{size=\small, series=\scshape\bfseries}
\setbeamerfont{bibliography entry location}{size=\small, shape=\scshape\normalfont}
\setbeamerfont{bibliography entry note}{size=\small, shape=\scshape\normalfont}
\mode<all>
% Copyright (C) 2018-2020 Pasquale Claudio Africa and the LaTeX community.
% A full list of contributors can be found at
%
% https://github.com/elauksap/focus-beamertheme
%
% This file is part of beamerthemefocus.
%
% beamerthemefocus is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% beamerthemefocus is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with beamerthemefocus. If not, see <http://www.gnu.org/licenses/>.
% Overeiden version of the Focus Theme for the purpose of the LITIS Lab (2021)
\mode<presentation>
\RequirePackage{tikz}
% resources
\pgfdeclareimage[interpolate=true ,height=0.2\paperheight]{logo-litis-with-shade}{logos/logo-litis-with-shade.png}
\pgfdeclareimage[interpolate=true ,height=0.08\paperheight]{logo-insarn}{logos/logo-insarn.png}
\pgfdeclareimage[interpolate=true ,height=0.08\paperheight]{logo-ulhn}{logos/logo-ulhn.png}
\pgfdeclareimage[interpolate=true ,height=0.08\paperheight]{logo-urn}{logos/logo-urn.png}
\pgfdeclareimage[interpolate=true ,height=0.08\paperheight]{logo-nu}{logos/logo-nu.png}
% CUSTOMIZE STRUCTURE ELEMENTS. ------------------------------------------------
\setbeamertemplate{blocks}[rounded]
\setbeamertemplate{section in toc}[square]
\setbeamertemplate{subsection in toc}[square]
\setbeamertemplate{itemize items}[triangle]
\setbeamertemplate{itemize subitem}[triangle]
% STRUCTURE FRAME TEMPLATE DEFINITIONS. ----------------------------------------
% Title page.
\defbeamertemplate*{title page}{litis}{%
{%
%\usebeamerfont{footline}
\usebeamercolor{sectiontitle}\colorlet{litis@@temp}{bg}%
\begin{tikzpicture}[overlay, remember picture]
\fill[color=litis@@temp] (current page.south west) rectangle ([shift = {(0.66\paperwidth, 0)}] current page.north west);
% Calcul du placement des logos
%
% a b a b a
% |---|--------|---|--------|---|
% c
% |---------|---------|---------|
% x y
%
% c = 0.33333
% b = 0.1
% a = (c-2b)/3 = 0.0444
%
% x = a + (b/2) = 0.0944
% y = 2a + (3/2b) = 0.2388
% z = c/2 = 0.1666
\node [rotate=0,scale=1,text opacity=1,xshift=-0.1666\paperwidth,yshift=-0.2\paperheight]
at (current page.north east) {\pgfuseimage{logo-litis-with-shade}};
\node [anchor=center,rotate=0,scale=1,text opacity=1,xshift=-0.17\paperwidth,yshift=0.5\paperheight]
at (current page.south east) [text width=0.33\paperwidth, text centered] {Laboratoire d’Informatique, du Traitement de l’Information et des Systèmes};
% \node [xshift=-0.1666\paperwidth,yshift=0.66\paperheight]
% at (current page.south east) {ok}
\node [rotate=0,scale=1,text opacity=1,xshift=-0.2388\paperwidth,yshift=0.8cm]
at (current page.south east) {\pgfuseimage{logo-ulhn}};
\node [rotate=0,scale=1,text opacity=1,xshift=-0.0944\paperwidth,yshift=0.8cm]
at (current page.south east) {\pgfuseimage{logo-insarn}};
\node [rotate=0,scale=1,text opacity=1,xshift=-0.2388\paperwidth,yshift=2cm]
at (current page.south east) {\pgfuseimage{logo-urn}};
\node [rotate=0,scale=1,text opacity=1,xshift=-0.0944\paperwidth,yshift=2cm]
at (current page.south east) {\pgfuseimage{logo-nu}};
\end{tikzpicture}
}
\vspace{-1.65\baselineskip}
\begin{minipage}[b][0.35\paperheight]{0.66\textwidth}
\vspace{\baselineskip}
\usebeamerfont{title}
\usebeamercolor[fg]{sectiontitle}
\inserttitle
\end{minipage}
\begin{minipage}[t][0.1\paperheight]{0.66\textwidth}
\usebeamerfont{subtitle}
\usebeamercolor[fg]{sectiontitle}
\insertsubtitle
\end{minipage}
% Set the title graphic in a zero-height box, so that
% the position of other elements is not affected.
{\vfuzz=9999pt\vbox to 0pt {
\raggedleft
\inserttitlegraphic
}}
\begin{minipage}[t]{0.66\textwidth}
\usebeamerfont{author}
\usebeamercolor[fg]{sectiontitle}
\insertauthor
\end{minipage}
\vspace*{\baselineskip}
\begin{minipage}[t]{0.66\textwidth}
\usebeamerfont{institute}
\usebeamercolor[fg]{sectiontitle}
\insertinstitute
\end{minipage}
\vspace*{\baselineskip}
\begin{minipage}[t]{0.66\textwidth}
\usebeamerfont{date}
\usebeamercolor[fg]{sectiontitle}
\insertdate
\end{minipage}
\vspace*{0pt plus 100fill}
\addtocounter{framenumber}{-1}
\addtocounter{realframenumber}{-1}
}
% Section page.
\defbeamertemplate*{section page}{litis}{%
% {%
% \usebeamercolor{sectiontitle}\colorlet{litis@@temp}{bg}%
% \begin{tikzpicture}[overlay, remember picture]
% \fill[color=litis@@temp] (current page.north west) rectangle ([shift = {(0, -0.45\paperheight)}] current page.north east);
% \end{tikzpicture}%
% }
{%
\usebeamercolor{sectiontitle}\colorlet{litis@@temp}{bg}%
\begin{tikzpicture}[overlay, remember picture]
\fill[color=litis@@temp] (current page.south west) rectangle ([shift = {(0.66\paperwidth, 0)}] current page.north west);
\node [rotate=0,scale=1,text opacity=1,xshift=-0.1666\paperwidth,yshift=-0.2\paperheight]
at (current page.north east) {\pgfuseimage{logo-litis-with-shade}};
\node [anchor=center,rotate=0,scale=1,text opacity=1,xshift=-0.17\paperwidth,yshift=0.5\paperheight]
at (current page.south east) [text width=0.333\paperwidth, text centered] {Laboratoire d’informatique, du traitement de l’information et des systèmes};
% \node [xshift=-0.1666\paperwidth,yshift=0.66\paperheight]
% at (current page.south east) {ok}
\node [rotate=0,scale=1,text opacity=1,xshift=-0.2388\paperwidth,yshift=0.8cm]
at (current page.south east) {\pgfuseimage{logo-ulhn}};
\node [rotate=0,scale=1,text opacity=1,xshift=-0.0944\paperwidth,yshift=0.8cm]
at (current page.south east) {\pgfuseimage{logo-insarn}};
\node [rotate=0,scale=1,text opacity=1,xshift=-0.2388\paperwidth,yshift=2cm]
at (current page.south east) {\pgfuseimage{logo-urn}};
\node [rotate=0,scale=1,text opacity=1,xshift=-0.0944\paperwidth,yshift=2cm]
at (current page.south east) {\pgfuseimage{logo-nu}};
\end{tikzpicture}
}
\vspace{-2.5\baselineskip}
\begin{minipage}[b][0.45\paperheight]{\textwidth}