-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerinnerthemerudi.sty
107 lines (92 loc) · 3.02 KB
/
beamerinnerthemerudi.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
% ======================================================================
% ======================================================================
% ======================================================================
%
% UNOFFICIAL style for beamer presentations at RU-DI
% Radboud University, Donders Institute,
% Nijmengen, Netherlands
%
% Author: Pierre Guetschel <[email protected]>
% Date: Oct 2022
% Instructions:
% - to create the title page, use: \titleframe
% - to create a section page, use: \sectionframe
%
% Inspirations:
% - https://tex.stackexchange.com/questions/146529/design-a-custom-beamer-theme-from-scratch
% -
%
% ======================================================================
% ======================================================================
% ======================================================================
\setbeamertemplate{itemize items}[square]
%%%%%%%%%%%%%%%%%% tests for title and section pages %%%%%%%%%%%%%%%%%%
\newif\ifinsectionframe
\newif\ifintitleframe
\insectionframefalse
\intitleframefalse
\newcommand{\sectionframe}{
\insectionframetrue
\frame{\sectionpage}
\insectionframefalse
}
\newcommand{\titleframe}{
\intitleframetrue
\frame{\titlepage}
\intitleframefalse
}
%%%%%%%%%%%%%%%%%% background %%%%%%%%%%%%%%%%%%
\defbeamertemplate*{background canvas}{rudi}
{
%\resizebox{\paperwidth}{\paperheight}{
\ifnum \ifinsectionframe 1 \else \ifintitleframe 1 \else 0 \fi\fi=1 % if in_title_frame OR in_section_frame
\begin{tikzpicture}[remember picture, overlay]%, width=\paperwidth, height=\paperheight]
\node[left=.25\paperwidth] at (current page.center)
{
\includegraphics[height=\paperheight]{logo_rudi-notext.pdf}};
\node[above=.4cm, left=.1cm] at (current page.south east)
{
\includegraphics[height=.65cm]{logo_ru-umc-black.pdf}};
\end{tikzpicture}
\else
{}
\fi
%}
}
%%%%%%%%%%%%%%%%%% title page %%%%%%%%%%%%%%%%%%
\defbeamertemplate*{title page}{rudi}%[1][]
{
\vspace{.4\textheight}
\hfill
\begin{minipage}[t]{.9\textwidth}
\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle\par
\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par
\bigskip
\usebeamerfont{author}\usebeamercolor[fg]{author}\insertauthor\par
\usebeamerfont{institute}\usebeamercolor[fg]{institute}\insertinstitute\par
\bigskip
\usebeamerfont{date}\usebeamercolor[fg]{date}\insertdate\par
\usebeamerfont{titlegraphic}\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic
\end{minipage}
}
%%%%%%%%%%%%%%%%%% section page %%%%%%%%%%%%%%%%%%
\defbeamertemplate*{section page}{rudi}
{
\vspace{.4\textheight}
\hfill
\begin{minipage}[t]{.9\textwidth}
%\begin{beamercolorbox}[sep=12pt,center]{part title}
\usebeamerfont{section title}\usebeamercolor[fg]{section title}\insertsection\par
%\end{beamercolorbox}
\end{minipage}
}
%%%%%%%%%%%%%%%%%%% Figures and tables %%%%%%%%%%%%%%%%%%
%\defbeamertemplate*{caption}{rudi}
%{
%\colorbox{rudi-water-orange}{
% \colorbox{rudi-dark-orange}{
% \insertcaptionname~\insertcaptionnumber
% }
% \insertcaption
%}
%}