-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerthemeCalm.sty
85 lines (69 loc) · 2.26 KB
/
beamerthemeCalm.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
\mode<presentation>
%% General setup
%% Fonts & typography
\usepackage[T1]{fontenc}
%\usepackage[slides,frenchmath,lf,loosequotes]{MinionPro}
%\usefonttheme{serif}
\usepackage[default]{lato}
\usepackage{eulervm}
\usepackage[scaled=1.05]{inconsolata}
\linespread{1.2}
%% Absolute text placement
\usepackage{textcomp}
\usepackage[absolute,overlay]{textpos}
\newcommand\paper[1]{%
\begin{textblock*}{\paperwidth}(2pt,0.99\textheight)
\raggedleft{\tiny {#1}}\hspace{.5em}
\end{textblock*}}
% Frame title
\setbeamerfont{frametitle}{shape=\scshape,size=\normalsize}
\usepackage{pgfplots}
% Title page elements
\setbeamerfont{title}{shape=\scshape,size=\Large}
\setbeamerfont{subtitle}{shape=\scshape, size=\large}
\setbeamerfont{institute}{shape=\scshape, size=\tiny}
\setbeamerfont{author}{series=\bfseries,size=\small,shape=\normalfont}
%% Layouts
\beamertemplatenavigationsymbolsempty
\setbeamertemplate{footline}{
\ifnum\c@framenumber>1%
\begin{textblock*}{2pt}(2pt,0.99\textheight)\raggedleft{\tiny {\insertframenumber}}\hspace{.5em}\end{textblock*}%
\else%
\fi%
}
% Enumeration and itemizes are out the left margin
\setbeamertemplate{itemize/enumerate body begin}{\setlength{\leftmargini}{0pt}}
\setbeamertemplate{itemize item}[square]
% Frame title
\setbeamertemplate{frametitle}{%
\vskip 0.4em%
\line(1,0){130}%
\vskip 0.1em%
\insertframetitle\hskip 1em \usebeamercolor[fg]{framesubtitle}\insertframesubtitle%
}
\pgfdeclareimage[width=\paperwidth,height=\paperheight]{bg2}{bg2}
\pgfdeclareimage[height=1.2cm]{logo}{logo}
\setbeamertemplate{background canvas}{%
\ifnum\c@framenumber=0%
\pgfuseimage{bg2}
\fi%
}
% Title frame
\setbeamertemplate{title page}{%
\setbeamertemplate{footline}{ }
\addtocounter{framenumber}{-1}
\vskip 0.4em%
\usebeamerfont{institute}\usebeamercolor[fg]{institute}\insertinstitute\hskip 1em%
\usebeamerfont{date}\usebeamercolor[fg]{date}\insertdate%
\vfill%
\vfill%
\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle%
\vskip 0.6em
\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle%
\vfill%
\vfill%
\usebeamerfont{author}\usebeamercolor[fg]{author}\insertauthor
\vfill%
\vfill%
\pgfuseimage{logo}
}