-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerthemelabss.sty
85 lines (72 loc) · 2.5 KB
/
beamerthemelabss.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>
\RequirePackage{fontspec}
\RequirePackage{Alegreya}
\RequirePackage[light]{AlegreyaSans}
\RequirePackage[scale=MatchLowercase]{FiraMono}
\setbeamerfont{title}{family=\rmfamily\scshape}
\setbeamerfont{frametitle}{family=\rmfamily}
\usefonttheme[onlymath]{serif}
\DeclareSymbolFont{operators}{\encodingdefault}{\familydefault}{m}{n}
\RequirePackage{xcolor}
\definecolor{labss_fg}{HTML}{F6EFE9}
\definecolor{labss_bg}{HTML}{996666}
\definecolor{labss_hl}{HTML}{284040}
\setbeamercolor{title}{fg=labss_hl}
\setbeamercolor{frametitle}{fg=labss_fg,bg=labss_bg}
\setbeamercolor{separation line}{bg=labss_bg!50!black}
\setbeamercolor{description item}{fg=black}
\setbeamercolor{section in toc}{fg=black}
\setbeamercolor{subsection in toc}{fg=black!75}
\RequirePackage{tcolorbox}
\tcbset{%
noparskip,
boxrule=0.25pt,
colback=labss_fg!50, %background color of the box
colframe=labss_fg!75!black, %color of frame and title background
coltext=black, %color of body text
coltitle=black, %color of title text
fonttitle=\bfseries,
}
\usepackage{shadowtext}
\shadowoffset{0.5pt}
\shadowcolor{labss_bg!50!black}
\newcommand\hl[1]{\textcolor{labss_hl}{\textbf{#1}}} % highlighted text
\newcommand\nt[1]{\textcolor{labss_bg}{#1}} % discreet note
\newcommand\logos{%
\includegraphics[height=2em]{logo_labss}\quad
\includegraphics[height=2em]{logo_istc}\quad
\includegraphics[height=2em]{logo_cnr}
}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{headline}{}
\setbeamertemplate{description item}{\bfseries\insertdescriptionitem}
\setbeamertemplate{itemize item}{\color{labss_hl}$\blacktriangleright$}
\setbeamertemplate{footline}{%
\ifnum\c@framenumber=1
\else
\begin{beamercolorbox}[wd=0.98\paperwidth,right,dp=2ex]{page number}
\insertframenumber/\inserttotalframenumber
\end{beamercolorbox}
\fi%
}
\setbeamertemplate{frametitle}{%
\nointerlineskip%
\begin{beamercolorbox}[wd=\paperwidth, sep=4pt, leftskip=3pt, rightskip=3pt]{frametitle}%
\strut\shadowtext{\scshape\insertframetitle}\nolinebreak\strut
\end{beamercolorbox}
\nointerlineskip%
\begin{beamercolorbox}[wd=\paperwidth, ht=0.5pt]{separation line}%
\end{beamercolorbox}%
}
\AtBeginSection[]{%
\begin{frame}
\setbeamercovered{transparent}
\frametitle{Plan}
\tableofcontents[currentsection,hideothersubsections]
\end{frame}
}
% https://tex.stackexchange.com/a/129544/7329
\makeatletter
\define@key{beamerframe}{wide}[1em]{%
\def\beamer@cramped{\itemsep #1\topsep0.5pt\relax}}
\makeatother