This repository has been archived by the owner on Jan 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerthemeuniud.sty
103 lines (86 loc) · 2.6 KB
/
beamerthemeuniud.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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% %%%%%
%%%%% ~WARNING~ %%%%%
%%%%% %%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Please note that including the option [usenames,dvipsnames]
% is MANDATORY when declaring the document class due to
% compatibility issues between the packaged tikz and xcolor.
% So, to use this theme, you MUST write
% \documentclass[usenames,dvipsnames]{beamer}
% as first command of your main presentation file.
\mode<presentation>
% comment/uncomment this line to enable/disable debug mode
%\newcommand*{\DEBUG}{}
% Requirement
\RequirePackage{xcolor} % colors
\RequirePackage{tikz} % drawing
\RequirePackage{soul} % text highlighting
% in debug mode, show the boxes around the text
\ifdefined\DEBUG
\usepackage[absolute,overlay,showboxes]{textpos}
\else
\usepackage[absolute,overlay]{textpos}
\fi
% Settings
\useinnertheme{uniud}
\useoutertheme{uniud}
\usecolortheme{uniud}
\usefonttheme{uniud}
% Remove navigation symbols
\setbeamertemplate{navigation symbols}{}
% Squared blocks
\setbeamertemplate{blocks}[rounded=false]
% Table of contents (outline) styling
\setbeamertemplate{section in toc}[ball numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]
% Bibliography styling
\setbeamertemplate{bibliography item}[text]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% %%%%%
%%%%% ~BONUS COMMANDS~ %%%%%
%%%%% %%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% See the provided main.tex template for a tutorial
% on how to use \framecard and \framepic.
%%%%% %%%%%
%%%%% ~Frame with huge centered text~ %%%%%
%%%%% %%%%%
\newcommand{\framecard}[2][UniOrange]{
{\setbeamercolor{background canvas}{bg=#1}%
\begin{frame}[plain]%
\vfill%
\begin{center}%
{\color{white}\Huge\textbf{%
{#2}%
}}%
\end{center}%
\vfill%
\end{frame}%
}
}
%%%%% %%%%%
%%%%% ~Frame with background image~ %%%%%
%%%%% %%%%%
\newcommand{\framepic}[3][1]{
{
\usebackgroundtemplate{%
\tikz[overlay,remember picture] \node[opacity=#1, at=(current page.center)] {
\includegraphics[height=\paperheight]{#2}};
}
\begin{frame}[plain]
\huge{#3}
\end{frame}
}
}
%%%%% %%%%%
%%%%% ~Marker for text highlighting ~ %%%%%
%%%%% %%%%%
% beamer/soul compatibility fix
\makeatletter
\newcommand\SoulColor{%
\let\set@color\beamerorig@set@color
\let\reset@color\beamerorig@reset@color}
\makeatother
\newcommand{\marker}[2][UniOrange]{{\SoulColor\sethlcolor{#1}\hl{#2}}}
\mode<all>