-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbeamerthemepolimi.sty
40 lines (31 loc) · 938 Bytes
/
beamerthemepolimi.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
% Pasquale Africa <pasqualeclaudio.africa@polimi.it>
% Beamer port of the official PoliMi presentation theme.
\mode<all>
\newif\if@bgphoto
\@bgphotofalse
\DeclareOption{bgphoto}{\@bgphototrue}
\newif\if@nologo
\@nologofalse
\DeclareOption{nologo}{\@nologotrue}
\ProcessOptions
\RequirePackage{tikz}
\usetikzlibrary{calc}
\graphicspath{{beamerthemepolimi_img/}}
\RequirePackage{etoolbox} % \patchcmd
\useinnertheme{polimi}
\useoutertheme{polimi}
\usecolortheme{polimi}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{itemize items}[square]
\setbeamertemplate{itemize subitem}[triangle]
% Set margins.
\setbeamersize{text margin left=\xshift, text margin right=\xshift}
\setlength{\leftmargini}{\xshift}
\let\oldtoc\tableofcontents
\renewcommand{\tableofcontents}[1][]{%
\hspace*{0.5\xshift}
\begin{minipage}{\textwidth}
\oldtoc[#1]
\end{minipage}
}