-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerthemeemc.sty
94 lines (74 loc) · 2.2 KB
/
beamerthemeemc.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
\ProvidesPackage{beamerthemeemc}[2016/02/27 EMC Beamer theme]
\mode<presentation>
\RequirePackage[customcolors]{dynblocks}
\RequirePackage{tikz}
\RequirePackage{pgfopts}
\RequirePackage[absolute,overlay]{textpos}
\usetikzlibrary{calc}
\newcommand{\emcset}[1]{\pgfkeys{/emc/.cd,#1}}
\pgfkeys{/emc/.cd,
.search also={
/emc/color,
/emc/inner,
/emc/outer,
}
}
\newcommand{\@emc@setdefaults}{
\pgfkeys{/emc/.cd,
% titleformat plain=regular,
}
}
\useinnertheme{emc}
\useoutertheme{emc}
\usecolortheme{emc}
\usefonttheme[onlymath]{serif}
\usepackage{eulervm}
\usepackage[scaled ]{helvet}
%\logo{\includegraphics[height=6mm]{logo1NoText.pdf}}
\newcommand*{\instlogo}[1]{}
\newcommand*{\printinstlogo}{}
\renewcommand*{\instlogo}[1]{\renewcommand*{\printinstlogo}{#1}}
\newenvironment{slide} % wrapper for frame, wrting Section \\ Subsection in the header, adding lines below header and above footer
{
\begin{frame}[environment=slide]
\setbeamercolor{background canvas}{bg=white}
\end{frame}}
%
% Attention
%
\mode
<all>
{
\newenvironment{attentionenv}{\begin{altenv}%
{\usebeamertemplate{attention text begin}\usebeamercolor[fg]{palette tertiary}\usebeamerfont{alerted text}}
{\usebeamertemplate{attention text end}}{\color{.}}{}}{\end{altenv}}
\newcommand<>{\attention}[1]{\begin{attentionenv}#2\relax#1\end{attentionenv}}
\defbeamertemplate{blocknt begin}{rounded}[1][shadow=false]
{
\par\vskip\medskipamount%
\begin{beamerboxesrounded}[upper=block title,lower=block body,#1]%
{\raggedright\usebeamerfont*{block title}\insertblocktitle}%
\raggedright%
\usebeamerfont{block body}%
}
\defbeamertemplate{blocknt end}{rounded}[1][]
{\end{beamerboxesrounded}\vskip\smallskipamount}
\newenvironment<>{blocknotitle}[1]{%
\begin{actionenv}#2%
\def\insertblocktitle{#1}%
\par%
\usebeamertemplate{blocknt begin}}
{\par%
\usebeamertemplate{blocknt end}%
\end{actionenv}}
}
%\makeatletter
%\define@key{beamerframe}{wide}[30pt]{%
% \def\beamer@cramped{\itemsep #1\topsep0.5pt\relax}}
%\makeatother
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[default]
\@emc@setdefaults
\ProcessPgfOptions{/emc}
\mode<all>
\endinput