PasTeX.cls 7.94 KB
Newer Older
Nicolas  MAILLET's avatar
message  
Nicolas MAILLET committed
1
\NeedsTeXFormat{LaTeX2e}
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
2
3
\ProvidesClass{PasTeX}[2018/10/25 v2.0]
\LoadClass[aspectratio=141]{beamer}
Nicolas  MAILLET's avatar
message  
Nicolas MAILLET committed
4
\RequirePackage[utf8]{inputenc}
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
5
\RequirePackage{lmodern}
Nicolas  MAILLET's avatar
message  
Nicolas MAILLET committed
6
7
8
\RequirePackage[absolute,overlay]{textpos}
\RequirePackage{setspace}

Nicolas  MAILLET's avatar
Nicolas MAILLET committed
9
10
11
\definecolor{pasteur-blue}{RGB}{0,167,231}
\definecolor{pasteur-lightblue}{RGB}{176,205,237}
\definecolor{pasteur-orange}{RGB}{245,156,0}
Nicolas  MAILLET's avatar
message  
Nicolas MAILLET committed
12
\definecolor{pasteur-white}{RGB}{255,255,255}
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
\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}
}

Nicolas  MAILLET's avatar
message  
Nicolas MAILLET committed
45
46

% List
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
47
48
49
\setbeamertemplate{itemize item}{\Large\color{pasteur-blue}$\bullet$}
\setbeamertemplate{itemize subitem}{\large\color{pasteur-blue}$\bullet$}
\setbeamertemplate{itemize subsubitem}{\normalsize\color{pasteur-blue}$\bullet$}
Nicolas  MAILLET's avatar
message  
Nicolas MAILLET committed
50
51
52
53


% General theme
\setbeamertemplate{navigation symbols}{}
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
54
55
56
57
58
\setbeamercolor{normal text}{fg=pasteur-black}
\setbeamertemplate{frametitle}{\color{pasteur-blue}\vspace{1mm}\bfseries\insertframetitle}


% First slide (title)
Nicolas  MAILLET's avatar
message  
Nicolas MAILLET committed
59
60
\renewcommand{\maketitle}
{
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
    {
        \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}
    }
Nicolas  MAILLET's avatar
message  
Nicolas MAILLET committed
93
}
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140


% 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
Nicolas  MAILLET's avatar
message  
Nicolas MAILLET committed
141
142
\setbeamertemplate{section in toc}
{
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
143
144
145
146
147
148
149
150
151
152
153
    \centering
    \ifodd\thetoccpt
        \begin{color}{pasteur-lightblue}
            \Huge{0\inserttocsectionnumber}
        \end{color}
    \else
        \begin{color}{pasteur-blue}
            \Huge{0\inserttocsectionnumber}
        \end{color}
    \fi
    \\
Nicolas  MAILLET's avatar
message  
Nicolas MAILLET committed
154
	\begin{color}{pasteur-black}
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
155
156
157
        \rule{0.4cm}{1.5pt}\\
        \vspace{1mm}
		\normalsize{\inserttocsection \par}
Nicolas  MAILLET's avatar
message  
Nicolas MAILLET committed
158
	\end{color}
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
159
	\vspace{5mm}
Nicolas  MAILLET's avatar
message  
Nicolas MAILLET committed
160
161
}

Nicolas  MAILLET's avatar
Nicolas MAILLET committed
162

Nicolas  MAILLET's avatar
message  
Nicolas MAILLET committed
163
164
165
% Sections
\AtBeginSection[]
{
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
    {
        \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}
    }
Nicolas  MAILLET's avatar
message  
Nicolas MAILLET committed
195
}
Nicolas  MAILLET's avatar
Nicolas MAILLET committed
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236


% 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}
    }
}