-
Notifications
You must be signed in to change notification settings - Fork 19
/
beamerinnerthemeZurich.sty
93 lines (74 loc) · 3.03 KB
/
beamerinnerthemeZurich.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
\mode<presentation>
%-----------------------------------------------------------------------------
% OPTIONS
\DeclareOptionBeamer{bullet}{\def\beamer@Zurich@bullet{#1}}
\DeclareOptionBeamer{shadow}[true]{\def\beamer@themerounded@shadow{#1}}
\ExecuteOptionsBeamer{shadow=false}
\ProcessOptionsBeamer
%-----------------------------------------------------------------------------
%-----------------------------------------------------------------------------
% MARGINS
\newlength{\beamer@Zurich@normalmargin}
\setlength{\beamer@Zurich@normalmargin}{.06\paperwidth}
\setbeamersize{text margin left=\beamer@Zurich@normalmargin}
\setbeamersize{text margin right=\beamer@Zurich@normalmargin}
\setlength\leftmargini{.6\beamer@Zurich@normalmargin}
\setlength\leftmarginii{.6\beamer@Zurich@normalmargin}
\setlength\leftmarginiii{.6\beamer@Zurich@normalmargin}
%-----------------------------------------------------------------------------
%-----------------------------------------------------------------------------
% TITLE PAGE
\defbeamertemplate*{title page normal}{Zurich theme}[1][]
{
\vbox{}
\vfill
\begin{centering}
\begin{beamercolorbox}[wd=\paperwidth,sep=8pt,center,#1]{title page header}
\usebeamerfont{title}\inserttitle\par%
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\fi%
\end{beamercolorbox}%
\vskip1em\par
\begin{beamercolorbox}[sep=8pt,center,#1]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center,#1]{institute}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center,#1]{date}
\usebeamerfont{date}\insertdate
\end{beamercolorbox}\vskip0.5em
{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
\end{centering}
\vfill
}
%-----------------------------------------------------------------------------
%-----------------------------------------------------------------------------
% ITEMS
\defbeamertemplate{itemize item}{squarealt}%
{\tiny\raise.5ex\hbox{\donotcoloroutermaths$\blacksquare$}}
\defbeamertemplate{itemize subitem}{squarealt}%
{\tiny\raise.4ex\hbox{\donotcoloroutermaths$\square$}}
\defbeamertemplate{itemize subsubitem}{squarealt}%
{\tiny\raise.3ex\hbox{\donotcoloroutermaths$\blacksquare$}}
%
\defbeamertemplate{itemize item}{circlealt}%
{\small\raise.2ex\hbox{\donotcoloroutermaths$\bullet$}}
\defbeamertemplate{itemize subitem}{circlealt}%
{\small\raise.1ex\hbox{\donotcoloroutermaths$\circ$}}
\defbeamertemplate{itemize subsubitem}{circlealt}%
{\scriptsize\raise.1ex\hbox{\donotcoloroutermaths$\bullet$}}
\setbeamertemplate{items}[circlealt]
%
\def\circletext{circle}
\ifx\beamer@Zurich@bullet\circletext
\setbeamertemplate{items}[circlealt]
\else
\setbeamertemplate{items}[squarealt]
\fi
\setbeamertemplate{blocks}[rounded][shadow=\beamer@themerounded@shadow]
%-----------------------------------------------------------------------------
\mode<all>