-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
beamerinnerthemepureminimalistic.sty
117 lines (96 loc) · 3.31 KB
/
beamerinnerthemepureminimalistic.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
108
109
110
111
112
113
114
115
116
117
% A pure minimalistic LaTeX-Beamer theme for everyone to use.
% Copyright (C) 2020 Kai Norman Clasen
% 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 should have received a copy of the GNU General Public License
% along with this program. If not, see <https://www.gnu.org/licenses/>.
% This file is part of beamerthemepureminimalistic.
% If problems/bugs are found or enhancements are desired, please contact
% me over: https://github.com/kai-tub/latex-beamer-pure-minimalistic
\ProvidesPackage{beamerinnerthemepureminimalistic}[v2.0.4]
\mode<presentation>
\def\itemsymbol{\raisebox{0.3ex}{\small$\bullet$}}
% Save the \item makro to \svitem
\let\svitem\item
\makeatletter
\newenvironment<>{vfilleditems}{%
\begin{itemize}[#1]%
\let\olditem\item
\renewcommand\item[1][\itemsymbol]{
\ifnum\@itemdepth=1\relax
\vfill
\else
\ifnum\@itemdepth=2\relax
\setlength\itemsep{0.5ex}
\else
\ifnum\@itemdepth=3\relax
\setlength\itemsep{0.25ex}
\fi\fi\fi
\svitem[##1]
}
}{
\end{itemize}\vfill
}
\makeatother
\defbeamertemplate*{section in toc}{pureminimalistic}{%
\hspace{0.5em} \inserttocsectionnumber.~\inserttocsection
}
\defbeamertemplate*{subsection in toc}{pureminimalistic}{%
\hspace{1.5em} \inserttocsectionnumber.\inserttocsubsectionnumber~\inserttocsubsection\par
}
\defbeamertemplate*{subsubsection in toc}{pureminimalistic}{% No one should use subsubsections in a presentation
}
\defbeamertemplate*{itemize item}{pureminimalistic}{%
\usebeamerfont*{itemize item}\itemsymbol
}
\defbeamertemplate*{itemize subitem}{pureminimalistic}{%
\usebeamerfont*{itemize subitem}\itemsymbol
}
\defbeamertemplate*{itemize subsubitem}{pureminimalistic}{%
\usebeamerfont*{itemize subsubitem}\itemsymbol
}
\defbeamertemplate*{bibliography item}{pureminimalistic}{%
\insertbiblabel
}
\setlength{\abovecaptionskip}{0ex}
\setlength{\belowcaptionskip}{1ex}
\setbeamertemplate{caption}{%
\insertcaption%
}
\defbeamertemplate*{title page}{pureminimalistic}[1][]
{
\usebeamerfont{title}
\begin{beamercolorbox}[sep=0ex,wd=\textwidth,dp=1ex]{headline}
\vskip 3pt
\hfill\logotitle\par% \logotitle is defined in outertheme
\vskip 75pt
\parbox{\linewidth}{%
\begin{beamercolorbox}[wd=\textwidth]{title}%
{\inserttitle}%
\end{beamercolorbox}
\begin{beamercolorbox}[wd=\textwidth,dp=1ex]{author}%
\vskip 3pt
\ifx\insertsubtitle\@empty%
\else%
{\usebeamerfont{subtitle}\insertsubtitle}\vskip 2pt%
\fi%
\usebeamerfont{author}\usebeamercolor{author}\insertauthor $\quad$
\ifx\insertinstitute\@empty%
\else%
{\usebeamerfont{institute}\insertinstitute $\quad$}%
\fi%
\ifx\insertdate\@empty%
\else%
{\usebeamerfont{date}\insertdate}%
\fi%
\end{beamercolorbox}%
}%
\end{beamercolorbox}
}
\mode<all>