-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerfontthemesthlm.sty
61 lines (50 loc) · 2.09 KB
/
beamerfontthemesthlm.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
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% FONT FAMILES
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\ProvidesPackage{beamerfontthememsthlm}
% NEWPX FONT (Latex)
\if@donewPxFont%
% Load newPx Font %
\usefonttheme{professionalfonts}
\usefonttheme{serif}
\RequirePackage[T1]{fontenc}
\RequirePackage[full]{textcomp}
\RequirePackage[osf]{newpxtext} % osf for text, not math
\RequirePackage{cabin} % sans serif
\RequirePackage[varqu,varl]{inconsolata} % sans serif mono font
\RequirePackage[bigdelims,vvarbb]{newpxmath} % bb from STIX
\RequirePackage[cal=boondoxo]{mathalfa} % This package provides a standard means of setting math alphabets associated with the macros \mathcal, \mathbb, \mathfrak
\fi%
% PROPRIETARY STOCKHOLM STAD FONTS (XeTeX)
\if@dosthlmStadFont%
% Load sthlmStad Fonts %
\usefonttheme{professionalfonts}
\RequirePackage[no-math]{fontspec}
\defaultfontfeatures{Mapping=tex-text}
\setsansfont[BoldFont={Stockholm Type Display Bold}]{Stockholm Type Display Regular}
\AtBeginEnvironment{tabular}{\setsansfont[BoldFont={Stockholm Type}, Numbers={Monospaced}]{Stockholm Type}}
\fi%
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% FONT ASSIGMENTS
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Title Page
\setbeamerfont{title}{family=\sffamily, series=\scshape, size=\huge}
\setbeamerfont{subtitle}{size=\normalsize}
\setbeamerfont{date}{size=\normalsize}
\setbeamerfont{author}{size=\large}
\setbeamerfont{institute}{size=\large}
% Section
\setbeamerfont{section title}{size=\Large}
% Content
\setbeamerfont{frametitle}{family=\sffamily, size=\Large}
\setbeamerfont{copyright text}{size=\tiny}
\setbeamerfont{block title}{series=\sffamily, size=\large}
\setbeamerfont{block title alerted}{family=\sffamily, size=\large}
\setbeamerfont{alerted text}{series=\scshape}
\setbeamerfont{block title example}{family=\sffamily, size=\large}
\setbeamerfont{example text}{series=\scshape}
\setbeamerfont{caption}{size=\small}
\setbeamerfont{caption name}{family=\small}
\setbeamerfont{page number in head/foot}{size=\scriptsize}
\setbeamerfont{section in toc}{series=\sffamily, size=\large}
\linespread{1.15}