-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbeamerouterthemeuha.sty
79 lines (70 loc) · 2.39 KB
/
beamerouterthemeuha.sty
1
2
3
4
5
6
7
8
9
10
11
12
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
% Name : beamerouterthemeuha.sty
% Author : Sébastien Bindel <sé[email protected]>
%--------------------------------------------------------------
% Mandatory part
%--------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerouterthemeuha}[2018/10/22 uha outer theme]
%--------------------------------------------------------------
% First frame
%--------------------------------------------------------------
\defbeamertemplate*{title page}{uha}{
\nointerlineskip
\begin{beamercolorbox}[dp=2.3ex, sep=2ex, wd=\paperwidth, ht=\paperheight]{titlepage}
\vbox to 62ex{
\hfill \input{logo-uha/logo-titre.tikz}
\vspace{4em}
{\bfseries \Large \inserttitle} \\
\vspace{1em}
{\large \insertsubtitle}
\vspace{1.5em}
\textcolor{cblueUHA1}{\rule{0.8\linewidth}{.5pt}}
\vspace{1.5em}
\insertauthor \\
\vspace{0.5em}
\insertdate \\
\vspace{0.5em}
\insertinstitute
}
\end{beamercolorbox}
\setbeamertemplate{footline}[page number]{}
}
%--------------------------------------------------------------
% Title frame
%--------------------------------------------------------------
\defbeamertemplate*{frametitle}{uha}{
\nointerlineskip
\begin{beamercolorbox}[sep=0.27cm,ht=2.7em,wd=\paperwidth]{frametitle}
\vbox{}\vskip-2ex%
\strut\insertframetitle\strut
\hfill
\raisebox{-1.7mm}{\includegraphics[height=3.2ex]{logo-uha/logo}}
\end{beamercolorbox}%
}
%--------------------------------------------------------------
% Footer
%--------------------------------------------------------------
\setbeamercolor{footline}{parent=palette secondary}
\defbeamertemplate*{footline}{uha}{
\begin{beamercolorbox}[wd=\paperwidth,ht=2ex,dp=1.5ex,right]{}%
\insertframenumber \hspace{0.9em}
\end{beamercolorbox}
}
%--------------------------------------------------------------
% Section page
%--------------------------------------------------------------
\defbeamertemplate*{section page}{uha}{
\nointerlineskip
\begin{beamercolorbox}[dp=2.3ex, sep=2ex, wd=\paperwidth, ht=\paperheight]{titlepage}
\vbox to 35ex{
\hspace{0.16\linewidth}
\begin{minipage}[c]{0.6\linewidth}
{\Large \bfseries \insertsection}
\begin{tikzpicture}
\draw[line width=0.5pt, color=cblueUHA1] (0,0) -- (\linewidth,0);
\end{tikzpicture}
\end{minipage}
}
\end{beamercolorbox}
}
\AtBeginSection{\frame[noframenumbering]{\sectionpage}}