-
Notifications
You must be signed in to change notification settings - Fork 30
/
beamerthemeauriga.sty
112 lines (93 loc) · 2.64 KB
/
beamerthemeauriga.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
% Auriga theme
% https://github.com/anishathalye/auriga
% ====================
% Dependencies
% ====================
\RequirePackage{exscale}
\RequirePackage{ragged2e}
\RequirePackage{changepage}
\RequirePackage{fontspec}
\RequirePackage{xpatch}
% ====================
% Fonts
% ====================
\newfontfamily\Raleway[Ligatures=TeX]{Raleway}
\newfontfamily\Lato[Ligatures=TeX]{Lato}
\usefonttheme{professionalfonts}
\setsansfont{Lato}[
UprightFont=*-Regular,
ItalicFont=*-Italic,
BoldFont=*-Bold,
BoldItalicFont=*-BoldItalic
]
\setmonofont{Hack}
\setbeamerfont{title page}{family=\Raleway}
\setbeamerfont{title page title}{size=\LARGE,series=\bfseries}
\setbeamerfont{title page author}{size=\footnotesize}
\setbeamerfont{title page institute}{size=\scriptsize}
\setbeamerfont{frametitle}{family=\Raleway,size=\large,series=\bfseries}
\setbeamerfont{caption}{size=\footnotesize}
% ====================
% Macros
% ====================
\newcommand{\samelineand}{\qquad}
% ====================
% Elements
% ====================
% Itemize
\setbeamertemplate{itemize item}[circle]
\setbeamertemplate{itemize subitem}[circle]
\setbeamertemplate{itemize subsubitem}[circle]
\xpatchcmd{\itemize}
{\def\makelabel}
{\ifnum\@itemdepth=1\relax
\setlength\itemsep{3ex}% separation for first level
\else
\ifnum\@itemdepth=2\relax
\setlength\itemsep{0.5ex}% separation for second level
\else
\ifnum\@itemdepth=3\relax
\setlength\itemsep{0.5ex}% separation for third level
\fi\fi\fi\def\makelabel
}
{}
{}
% Equation
\setlength\belowdisplayshortskip{2ex}
% Caption
\setlength{\abovecaptionskip}{2ex}
\setlength{\belowcaptionskip}{1ex}
\setbeamertemplate{caption}
{
{\usebeamerfont{caption}\insertcaption}
}
% Navigation
\beamertemplatenavigationsymbolsempty
% ====================
% Components
% ====================
% Title page
\setbeamertemplate{title page}
{
\begin{centering}
\vskip5ex plus 1filll
{\usebeamerfont{title page title}\usebeamercolor[fg]{title page}\inserttitle\\[1.5ex]}
{\usebeamerfont{title page author}\usebeamercolor[fg]{title page}\insertauthor\\[2ex]}
{\usebeamerfont{title page institute}\usebeamercolor[fg]{title page}\insertinstitute\\[1ex]}
\vskip0pt plus 1filll
\end{centering}
}
% Footer
\setbeamertemplate{footline}{
\hfill%
\usebeamercolor[fg]{page number in head/foot}%
\usebeamerfont{page number in head/foot}%
\hspace{2em}%
\insertframenumber\kern1em\vskip2ex%
}
% Frame title
\setbeamertemplate{frametitle}{
\nointerlineskip
\vskip2ex
{\usebeamerfont{frametitle}\usebeamercolor[fg]{frametitle}\insertframetitle}
}