summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/guide-latex-fr/Support_oral/beamerinnerthemeFeather.sty
blob: 1237d954f928643787405202e9a6e92615c0728e (plain)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
% This is the inner theme file of the Feather theme.
% Copyright (c) 2014 by Lilyana Vaskova Vankova <lilqna.v@gmail.com>
%
% This program 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.
%
% This program 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 can find the GNU General Public License at <http://www.gnu.org/licenses/>.

%----------------------------------------------------------------------------------------------------------------------------------

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerinnerthemeFeather}[2017/08/22 v1.1.0 The Feather Beamer Theme]

%----------------------------------------------------------------------------------------------------------------------------------

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Theme options, definitions and templates.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%----------------------------------------------------------------------------------------------------------------------------------

% Beamer specific options
\mode<presentation> % Refers to the first four modes (beamer,handout,second and trans). That is, to all modes except the article mode
{

%----------------------------------------------------------------------------------------------------------------------------------

% Title page
%% Definitions for fonts of the different elements
  
%\setbeamerfont{institute}{family = \rmfamily, size = \footnotesize}
\setbeamerfont{institute}{size = \small}
\setbeamerfont{title}{size = \Large} 
\setbeamerfont{subtitle}{size = \large}
\setbeamerfont{author}{size = \normalsize}
\setbeamerfont{date}{size = \small}

%% LLT: make title background image configurable
\newcommand{\backgroundfile}{1-title}

\setbeamertemplate{title page}{
%% Setting the above definitions
%% LLT: Reset unnumbered frames count to 0
	\setcounter{unnumberedframe}{0}
	\begin{minipage}[c][\textheight][c]{\textwidth}
		\centering % Sauts de lignes obligatoires ici
		
		{\usebeamerfont{institute}\insertinstitute}\vspace*{30pt}
		
		{\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle}\vspace*{10pt}
		
		{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}\vspace*{30pt}
		
		{\usebeamerfont{author}\insertauthor}\vspace*{30pt}
		
		{\usebeamerfont{date}\insertdate}\vspace*{\baselineskip}
	\end{minipage}
}
  
%----------------------------------------------------------------------------------------------------------------------------------
  
% Final page
\defbeamertemplate{final page}{text}[1]{
	\begin{minipage}[c][\textheight][c]{\textwidth}
		\centering
		#1
	\end{minipage}
}

\newcommand{\finalpage}[1]{
	\setbeamertemplate{final page}[text]{#1}
	\usebeamertemplate{final page}
}

%----------------------------------------------------------------------------------------------------------------------------------
  
% Add the feather to the background of the titlepage and the final page
\newcommand{\1}{
	\setbeamertemplate{background}{
		%% LLT: use \backgroundfile
		\includegraphics[width=\paperwidth,height=\paperheight]{\backgroundfile}
		\tikz[overlay] \fill[fill opacity = 0.25, fill = white] (0,0) rectangle (-\paperwidth,\paperheight); % [fill opacity = 0.75, fill = white]
	}
}

%----------------------------------------------------------------------------------------------------------------------------------
  
% Use numbers instead of a picture for the references
\setbeamertemplate{bibliography item}[text]
}

\mode<all>