Commit 4bdab089 authored by Nicolas  MAILLET's avatar Nicolas MAILLET
Browse files

Update to v2

parent c2fa13d5
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{PasTeX}[2016/10/06 v1.0]
\LoadClass{beamer}
\ProvidesClass{PasTeX}[2018/10/25 v2.0]
\LoadClass[aspectratio=141]{beamer}
\RequirePackage[utf8]{inputenc}
\RequirePackage{lmodern}
\RequirePackage[absolute,overlay]{textpos}
\RequirePackage{xcolor}
\RequirePackage{setspace}
\RequirePackage{helvet}
\RequirePackage{multicol}
\RequirePackage{tikz}
\RequirePackage{changepage}
\RequirePackage{graphicx}
\renewcommand{\familydefault}{\sfdefault}
\definecolor{pasteur-blue}{HTML}{005b9a}
\definecolor{pasteur-orange}{HTML}{e6a400}
\definecolor{pasteur-blue}{RGB}{0,167,231}
\definecolor{pasteur-lightblue}{RGB}{176,205,237}
\definecolor{pasteur-orange}{RGB}{245,156,0}
\definecolor{pasteur-white}{RGB}{255,255,255}
\definecolor{pasteur-grey}{HTML}{555555}
\definecolor{pasteur-lightgrey}{RGB}{235,235,235}
\definecolor{pasteur-black}{HTML}{262626}
\makeatletter
\newcommand{\xtiny}{\@setfontsize{\xtiny}{4pt}{4pt}}
\newcommand*\bigcdot{\mathpalette\bigcdot@{.5}}
\newcommand*\bigcdot@[2]{\mathbin{\vcenter{\hbox{\scalebox{#2}{$\m@th#1\bullet$}}}}}
\def\thankstitle#1{\def\@thankstitle{#1}}
\def\thanksmessage#1{\def\@thanksmessage{#1}}
% Last slide
\def\makethanks
{
\setbeamertemplate{frametitle}{\vfill\color{pasteur-white}\bfseries\small\centerline\insertframetitle}
\setbeamercolor{background canvas}{bg=pasteur-blue}
\begin{frame}[plain]
\begin{color}{pasteur-white}
% Title
\frametitle{\@thankstitle}
% Message
\begin{minipage}[t][.85\textheight]{\textwidth}
\begin{center}
\vfill
\@thanksmessage
\vfill
\end{center}
\vfill
\end{minipage}
% Footer
\makebox[\linewidth][c]
{
\begin{minipage}{\dimexpr\textwidth+45mm\relax}
\fontsize{4}{5.5}\selectfont
{
\begin{columns}[b]
\begin{column}[c]{.11\textwidth}
\begin{column}[b]{.1\textwidth}
\includegraphics[width=3mm, angle=270]{img/bubble.png}
\end{column}
\begin{column}[t]{.83\textwidth}
\newline
\newline
\english{Public benefit foundation with official charitable status}\french{Fondation reconnue d'utilité publique habilitée à recevoir dons et legs}
\end{column}
\end{column}
\hfill
\begin{column}[c]{.3\textwidth}
\flushright
\english{\textbf{Institut Pasteur}\\25-28, rue du Docteur Roux\\75724 Paris Cedex 15 - France\\\textbf{www.pasteur.fr}}\french{\textbf{Institut Pasteur}\\25-28, rue du Docteur Roux\\75724 Paris Cedex 15\\\textbf{www.pasteur.fr}}
\end{column}
\end{columns}
}
\end{minipage}
}
\end{color}
\end{frame}
\setbeamertemplate{frametitle}{\color{pasteur-blue}\bfseries\small\insertframetitle}
\setbeamercolor{background canvas}{bg=pasteur-white}
}
\makeatother
\definecolor{pasteur-sepia}{RGB}{191,184,176}
\definecolor{pasteur-lightsepia}{RGB}{227,224,216}
\definecolor{pasteur-black}{RGB}{0,0,0}
\newcommand{\mlarge}{\@setfontsize{\mlarge}{12pt}{12pt}}
\def\thankstitle#1{\def\@thankstitle{#1}}
\def\thanksmessage#1{\def\@thanksmessage{#1}}
\newcounter{toccpt}
\newcounter{seccpt}
% Header
\setbeamertemplate{headline}
{
\begin{beamercolorbox}[wd=\paperwidth,ht=17mm]{headtxt}
\vspace{3mm}
\hspace{6mm}
\huge{\insertsubsection}
\end{beamercolorbox}
\hspace{6mm}
\rule{0.9\textwidth}{0.5pt}
}
% Footer
\setbeamertemplate{footline}
{
\color{pasteur-black}
\tiny\qquad\enskip\insertframenumber\enskip$\vert$\enskip\insertauthor\enskip$\vert$\enskip\inserttitle\enskip$\vert$\enskip\insertdate\enskip\enskip\enskip\enskip
\rule{5cm}{0.1pt}\enskip\enskip\enskip\enskip
\includegraphics[width=1.4cm]{img/logo_ip.png}
\vspace*{3mm}
}
% List
\defbeamertemplate{itemize item}{image}{\small\includegraphics[height=1.6ex]{img/bubble.png}}
\defbeamertemplate{itemize subitem}{image}{\tiny\includegraphics[height=1.6ex]{img/bubble.png}}
\setbeamertemplate{itemize item}[image]
\setbeamertemplate{itemize subitem}[image]
\setbeamertemplate{itemize subsubitem}{\large\color{pasteur-blue}$\bigcdot$}
\setbeamertemplate{itemize item}{\Large\color{pasteur-blue}$\bullet$}
\setbeamertemplate{itemize subitem}{\large\color{pasteur-blue}$\bullet$}
\setbeamertemplate{itemize subsubitem}{\normalsize\color{pasteur-blue}$\bullet$}
% General theme
\setbeamertemplate{navigation symbols}{}
\setbeamercolor{normal text}{fg=pasteur-blue}
\setbeamertemplate{frametitle}{\color{pasteur-blue}\bfseries\small\insertframetitle}
% Header & Footer
\makeatletter
\setbeamertemplate{headline}
{
\leavevmode
\begin{beamercolorbox}[wd=\paperwidth,ht=15mm]{headtxtall}
\hspace{19mm}
\tiny\color{pasteur-orange}\MakeUppercase{\expandafter\protect\insertsectionhead}\newline
\hspace*{7mm}
\vspace*{3mm}
\huge\color{pasteur-white}\textbf{\thesection.\thesubsection}~\Large\insertsubsection
\end{beamercolorbox}
}
\setbeamercolor{headtxtall}{bg=pasteur-blue}
\setbeamertemplate{footline}
{
\leavevmode
\begin{textblock*}{1.5cm}(11.07cm,8.9cm)
\includegraphics[width=1.2cm]{img/logo_ip_color.png}
\end{textblock*}
\vspace*{-5mm}
\hspace*{4mm}
\begin{beamercolorbox}[wd=0.6\paperwidth,ht=2mm]{foottxt}
\xtiny{\qquad\enskip\insertframenumber\enskip$\bigcdot$\enskip\insertauthor\enskip$\bigcdot$\enskip\inserttitle\enskip$\bigcdot$\enskip\insertdate}
\vspace*{0.2mm}
\end{beamercolorbox}
\vspace*{2mm}
}
\setbeamercolor{foottxt}{bg=pasteur-lightgrey,fg=pasteur-blue}
\makeatother
% Title page
\setbeamercolor{normal text}{fg=pasteur-black}
\setbeamertemplate{frametitle}{\color{pasteur-blue}\vspace{1mm}\bfseries\insertframetitle}
% First slide (title)
\renewcommand{\maketitle}
{
% First slide (title)
{
\setbeamercolor{background canvas}{bg=pasteur-blue}
\begin{frame}[plain]
\hspace{-12mm}
\vspace{3mm}
\colorbox{pasteur-white}
{
\begin{minipage}[t][3.83cm][c]{0,9\textwidth}
\begin{color}{pasteur-orange}
\hspace{11mm}
\vspace{1mm}
\begin{minipage}[t][3.83cm][c]{0,55\textwidth}
\begin{spacing}{0.9}
\flushleft
\Large\textbf{\MakeUppercase{\inserttitle}}\vspace{2mm}
\end{spacing}
\linespread{1}\scriptsize{\MakeUppercase{\insertsubtitle}}\vspace{5mm}\\
\noindent \raisebox{0.25ex}{\tiny$\bullet$}~\scriptsize{\insertauthor}\hfill \hfill \raisebox{0.25ex}{\tiny$\bullet$}~\scriptsize{\insertdate}
\end{minipage}
\end{color}
\end{minipage}
}
\begin{textblock*}{2.5cm}(0.45cm,8.62cm)
\english{\includegraphics[width=2.8cm]{img/for_ip.png}}\french{\includegraphics[width=2.8cm]{img/for_ip-fr.png}}
\end{textblock*}
\begin{textblock*}{2.5cm}(10.07cm,8.25cm)
\includegraphics[width=2.2cm]{img/logo_ip_white.png}
\end{textblock*}
\end{frame}
}
%Second slide (Table of Content)
{
\defbeamertemplate*{headline}{}
{
\begin{beamercolorbox}[wd=\paperwidth,ht=15mm]{headtxt}
\vspace{5mm}
\hspace{12mm}
\huge{\english{Contents}\french{Sommaire}}
\end{beamercolorbox}
}
\setbeamercolor{headtxt}{bg=pasteur-blue,fg=pasteur-orange}
\begin{frame}
\scriptsize
{
\begin{columns}[t]
\begin{column}{.5\textwidth}
\tableofcontents[hideallsubsections,sections={1-3}]
\end{column}
\begin{column}{.5\textwidth}
\tableofcontents[hideallsubsections,sections={4-6}]
\end{column}
\end{columns}
}
\end{frame}
}
{
\usebackgroundtemplate{\begin{picture}(100,200)(0,100)\includegraphics[width=\paperwidth]{img/Part-0.jpg}\end{picture}}
\begin{frame}[plain]
\begin{textblock*}{5cm}(11.5cm,0.35cm)
\includegraphics[width=2.5cm]{img/logo_ip.png}
\end{textblock*}
\hspace{-12mm}
\vspace{-27mm}
\colorbox{pasteur-white}
{
\begin{minipage}[t][4.1cm][c]{0,54\textwidth}
\begin{color}{pasteur-black}
\vspace{10mm}
\hspace{10mm}
\begin{minipage}[t][3.83cm][c]{0,9\textwidth}
\begin{spacing}{0.8}
\flushleft
\mlarge\textrm{\textbf{\inserttitle}}
\rule{4.8cm}{0.4pt}
\end{spacing}
\vspace{4mm}
\begin{spacing}{0.8}
\footnotesize\textbf{{\insertsubtitle}}
\end{spacing}
\vspace{6mm}
\color{pasteur-blue} \noindent {\small$\bullet$}~{\insertauthor}~~~~~~{\small$\bullet$}~{\insertdate}
\end{minipage}
\end{color}
\end{minipage}
}
\end{frame}
}
}
% TOC
% Table Of Contents
\def\toc
{
{
\defbeamertemplate*{headline}{}
{
\begin{beamercolorbox}[wd=\paperwidth,ht=20mm]{headtxt}
\vspace{3mm}
\hspace{6mm}
\huge{\english{Summary}\french{Sommaire}}
\end{beamercolorbox}
\hspace{6mm}
\rule{0.9\textwidth}{0.5pt}
}
\setbeamercolor{headtxt}{bg=pasteur-white,fg=pasteur-black}
\begin{frame}
\begin{columns}[totalwidth=1\textwidth]
\begin{column}[t]{.33\textwidth}
\setcounter{toccpt}{1}
\tableofcontents[hideallsubsections,sections={1}]
\vspace{10mm}
\setcounter{toccpt}{4}
\tableofcontents[hideallsubsections,sections={4}]
\end{column}
\begin{column}[t]{.33\textwidth}
\setcounter{toccpt}{2}
\tableofcontents[hideallsubsections,sections={2}]
\vspace{10mm}
\setcounter{toccpt}{5}
\tableofcontents[hideallsubsections,sections={5}]
\end{column}
\begin{column}[t]{.33\textwidth}
\setcounter{toccpt}{3}
\tableofcontents[hideallsubsections,sections={3}]
\vspace{10mm}
\setcounter{toccpt}{6}
\tableofcontents[hideallsubsections,sections={6}]
\end{column}
\end{columns}
\end{frame}
}
}
% section in TOC
\setbeamertemplate{section in toc}
{
\begin{color}{pasteur-white}
\colorbox{pasteur-orange}{\MakeUppercase{\english{Part}\french{Partie}} \inserttocsectionnumber}
\end{color}
\\\vspace{2mm}
\centering
\ifodd\thetoccpt
\begin{color}{pasteur-lightblue}
\Huge{0\inserttocsectionnumber}
\end{color}
\else
\begin{color}{pasteur-blue}
\Huge{0\inserttocsectionnumber}
\end{color}
\fi
\\
\begin{color}{pasteur-black}
\inserttocsection \par
\rule{0.4cm}{1.5pt}\\
\vspace{1mm}
\normalsize{\inserttocsection \par}
\end{color}
\vspace{2mm}
\vspace{5mm}
}
% Sections
\AtBeginSection[]
{
\begin{frame}
\vspace*{-28mm}
\hspace*{-12mm}
\colorbox{pasteur-blue}
{
\begin{minipage}[l][72mm][c]{\paperwidth}
\hspace{25mm}
%\vspace{-5mm}
\begin{minipage}[l][10cm][c]{0,3\paperwidth}
\begin{tikzpicture}
\node (image) at (-1,0) {\includegraphics[width=2cm]{img/bubble.png}};
\node at (0.3,-0.8)
{\setlength{\fboxsep}{5pt}\colorbox{pasteur-white}{\color{pasteur-orange}\huge\textbf{\MakeUppercase{\english{Part}\french{Partie}} \insertsectionnumber}}};
\end{tikzpicture}
\begin{adjustwidth}{7mm}{-2mm}
\flushleft
\color{pasteur-white}\insertsection
\end{adjustwidth}
\end{minipage}
\end{minipage}
}
\end{frame}
{
\defbeamertemplate*{headline}{}
\usebackgroundtemplate{\begin{picture}(100,200)(0,10)\includegraphics[width=\paperwidth]{img/Part-\theseccpt.jpg}\end{picture}}
\stepcounter{seccpt}
\begin{frame}
\hspace{-12mm}
\colorbox{pasteur-white}
{
\begin{minipage}[t][4.1cm][c]{0,54\textwidth}
\begin{color}{pasteur-black}
\vspace{10mm}
\hspace{10mm}
\begin{minipage}[t][3.83cm][c]{0,67\textwidth}
\begin{spacing}{0.8}
\flushleft
\mlarge\textrm{\textbf{\english{Part}\french{Partie} \insertsectionnumber}}
\rule{4.8cm}{0.4pt}
\end{spacing}
\vspace{4mm}
\begin{spacing}{0.8}
\footnotesize\textbf{{\insertsection}\vspace{8mm}}
\end{spacing}
\end{minipage}
\end{color}
\end{minipage}
}
\end{frame}
}
}
% Last slide
\def\makethanks
{
{
\defbeamertemplate*{headline}{}{
\color{pasteur-blue}
\bfseries\Large\centerline\@thankstitle
}
\defbeamertemplate*{footline}{}
{
\hspace{-22mm}
\begin{minipage}{1.29\textwidth}
\fontsize{5}{5.5}\selectfont
{
\begin{color}{pasteur-blue}
\begin{columns}[b]
\begin{column}[c]{.11\textwidth}
\begin{column}[t]{.8\textwidth}
\english{Public benefit foundation with official charitable status}\french{Fondation reconnue d'utilité publique habilitée à recevoir dons et legs}
\end{column}
\end{column}
\hfill
\begin{column}[c]{.3\textwidth}
\flushright
\english{\textbf{Institut Pasteur}\\25-28, rue du Docteur Roux\\75724 Paris Cedex 15 - France\\\phantom{1}}\french{\textbf{Institut Pasteur}\\25-28, rue du Docteur Roux\\75724 Paris Cedex 15\\\phantom{1}}
\end{column}
\end{columns}
\end{color}
}
\end{minipage}
}
\begin{frame}
\begin{center}
\@thanksmessage
\end{center}
\end{frame}
}
}
\ No newline at end of file
Beamer (LaTeX) template really closed to the official pptx Pasteur model.
Beamer (LaTeX) template really closed to the official pptx Pasteur one.
##################
#### LANGUAGE ####
##################
You can set the language using the first line, either english or french:
\usepackage[english]{languagechooser}
`\usepackage[english]{languagechooser}`
or
\usepackage[french]{languagechooser}
`\usepackage[french]{languagechooser}`
#######################
#### PARTS and IMG ####
#######################
You can *NOT* have more than 6 parts, this is due to pptx Pasteur template.
You can change default images for each part.
The first one is `Part-0.jpg`
Then, each of the 6 parts have the corresponding `Part-X.jpg`
Images should be in `1760*1080px` and `100ppi`
Alternatively, you can have `880*540px`.
Always keep ratio of *1.63*.
You should put those images in `jpg` to save space and not end up with a pdf of several hundred of Mb.
################
#### SLIDES ####
################
Use `\maketitle` to have the first slide with title
Use `\toc` to have the summary slide
Use `\makethanks` to have the last slide with personalized message.
This message can be more complex than just raw text, i.e.:
`\thanksmessage{~\\\begin{center}\includegraphics<2>[width=0.32\textwidth]{img/question.png}\end{center}Any question?}`
PasTeX iz in da pl4ce!
\ No newline at end of file
No preview for this file type
\documentclass{PasTeX}
\usepackage[english]{languagechooser} % either french or english
\title{Title of your presentation}
\subtitle{A short subtitle}
\author{Your name}
\date{yy/mm/dd}
\usepackage[french]{languagechooser} % either french or english
\title{Presentation's title 2 lines maximum}
\subtitle{Subtitle 2 lines}
\author{Speaker}
\date{dd/mm/yyyy}
\thankstitle{Thanks for your attention!}
\thanksmessage{Hope you slept comfortably!}
......@@ -12,6 +12,8 @@
\maketitle
\toc
\section{Title of first section}
\subsection{This is a subsection}
\begin{frame}
......@@ -19,7 +21,7 @@
Blablabla?\\
\begin{itemize}
\item first item
\item First item
\begin{itemize}
\item first subitem
\item second subitem item
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment