]> git.sthu.org Git - shutils.git/blob - latex/beamerthemeSHMinimalistic3.sty
zsh: Add starship support
[shutils.git] / latex / beamerthemeSHMinimalistic3.sty
1 % Copyright 2009, 2020 Stefan Huber <shuber@sthu.org>
2
3 \DeclareOptionBeamer{compress}{\beamer@compresstrue}
4 \ProcessOptionsBeamer
5
6 \mode<presentation>
7
8 \usecolortheme{SHblue3}
9
10 %\useoutertheme{infolines}
11 %\useoutertheme{shadow}
12 %\useoutertheme{split}
13 %\useinnertheme[shadow=true]{rounded}
14
15
16 %\useroutertheme{} % No outer theme
17 \useinnertheme{rectangles}
18 \setbeamertemplate{itemize items}[triangle]
19
20 \setbeamerfont{frametitle}{parent=structure,size=\Large}
21 \setbeamerfont{author}{size=\small}
22 \setbeamerfont{date}{size=\normalsize}
23 %\setbeamerfont{title}{series=\bfseries}
24
25
26 \defbeamertemplate*{footline}{SHblue theme}
27 {%
28 \leavevmode%
29 \hbox{%
30 \begin{beamercolorbox}[wd=\textwidth,ht=2.25ex,dp=1ex]{footline}%
31 \hspace{1ex}\insertshortauthor:\hspace{2ex}\bf\insertshorttitle\normalfont
32 \hfill \insertsectionhead%
33 \ifnum\value{subsection}=0\relax%
34 {}%
35 \else%
36 {\ /\ \insertsubsectionhead}%
37 \fi%
38 \hspace*{4ex} \bf \insertframenumber{} of \inserttotalframenumber\hspace{2ex}
39 \end{beamercolorbox}%
40 }%
41 %\vskip0pt%
42 }
43
44 \setbeamertemplate{footnote}
45 {%
46 \parindent 1em\noindent%
47 \raggedright%
48 \insertfootnotemark\enspace\tiny\insertfootnotetext\par%
49 }
50
51
52 \setbeamersize{text margin left=1em,text margin right=1em}
53
54
55 \newcommand{\framenumbersave}{%
56 \ifcsname c@tmpframenumber\endcsname%
57 \else%
58 \newcounter{tmpframenumber}%
59 \newcounter{tmpframenumberstored}%
60 \setcounter{tmpframenumberstored}{0}
61 \fi%
62
63 \ifnum \value{tmpframenumberstored}=0
64 \setcounter{tmpframenumber}{\value{framenumber}}
65 \fi
66 \addtocounter{tmpframenumberstored}{1}
67 }
68 \newcommand{\framenumberrestore}{%
69 \addtocounter{tmpframenumberstored}{-1}
70 \ifnum \value{tmpframenumberstored}=0
71 \setcounter{framenumber}{\value{tmpframenumber}}
72 \fi
73 }
74 \newenvironment{skipframecount}{\framenumbersave}{\framenumberrestore}
75
76
77 \let\fcntpart\part
78 \renewcommand{\part}[1]{\framenumbersave\fcntpart{#1}\framenumberrestore}
79 \let\fcntsection\section
80 \renewcommand{\section}[1]{\framenumbersave\fcntsection{#1}\framenumberrestore}
81 \let\fcntsubsection\subsection
82 \renewcommand{\subsection}[1]{\framenumbersave\fcntsubsection{#1}\framenumberrestore}
83
84
85 \mode<all>
86