-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmypresentationstyle.sty
More file actions
142 lines (119 loc) · 4.38 KB
/
mypresentationstyle.sty
File metadata and controls
142 lines (119 loc) · 4.38 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
\mode<presentation>{
% \usetheme{default}
% \usetheme{AnnArbor}
% \usetheme{Antibes}
% \usetheme{Bergen}
% \usetheme{Berkeley}
% \usetheme{Berlin}
% \usetheme{Boadilla}
% \usetheme{boxes}
% \usetheme{CambridgeUS}
% \usetheme{Copenhagen}
% \usetheme{Darmstadt}
% \usetheme{Dresden}
% \usetheme{Frankfurt}
% \usetheme{Goettingen}
% \usetheme{Hannover}
% \usetheme{Ilmenau}
% \usetheme{JuanLesPins}
% \usetheme{Luebeck}
\usetheme{Madrid}
% \usetheme{Malmoe}
% \usetheme{Marburg}
% \usetheme{Montpellier}
% \usetheme{PaloAlto}
% \usetheme{Pittsburgh}
% \usetheme{Rochester}
% \usetheme{Singapore}
% \usetheme{Szeged}
% \usetheme{Warsaw}
% \usetheme{metropolis}
\useinnertheme{circles} % https://tex.stackexchange.com/a/47373/114006
% \useoutertheme[subsection=false]{smoothbars} % https://tex.stackexchange.com/q/287855/114006
% As well as themes, the Beamer class has a number of color themes for any slide theme. Uncomment each of these in turn to see how it changes the colors of your current slide theme.
% \usecolortheme{default}
%\usecolortheme{albatross}
%\usecolortheme{beaver}
%\usecolortheme{beetle}
% \usecolortheme{crane}
%\usecolortheme{dolphin}
%\usecolortheme{dove}
%\usecolortheme{fly}
%\usecolortheme{lily}
% \usecolortheme{orchid}
% \usecolortheme{rose}
% \usecolortheme{seagull}
% \usecolortheme{seahorse}
% \usecolortheme{sidebartab}
% \usecolortheme{structure}
\usecolortheme{whale}
%\usecolortheme{wolverine}
% Uncomment each of these in turn to see how it changes change the font of your current theme.
% \usefonttheme{default}
% \usefonttheme{professionalfonts}
\usefonttheme{serif}
% \usefonttheme{structurebold}
% \usefonttheme{structureitalicserif}
\usefonttheme{structuresmallcapsserif}
% \usepackage{fontspec}
% \setmainfont{Liberation Serif}
%\setbeamertemplate{footline} % To remove the footer line in all slides, uncomment this line
% \setbeamertemplate{footline}[page number] % To replace the footer line in all slides with a simple slide count, uncomment this line
% \setbeamertemplate{navigation symbols}{} % To remove the navigation symbols from the bottom of all slides, uncomment this line
}
% https://tex.stackexchange.com/a/437578/114006
\makeatletter
% Remember the way beamer did it before
\let\beamer@old@writeslidentry\beamer@writeslidentry
\def\beamer@new@writeslidentry{%
\expandafter\ifblank\expandafter{\beamer@framestartpage}{}% does not happen normally
{\clearpage\beamer@notesactions}%
} % https://tex.stackexchange.com/a/610903/114006
% Tell it to do nothing with the slides entry
\newcommand\bulletoff{\let\beamer@writeslidentry\beamer@new@writeslidentry}
% Reset it to the old ways
\newcommand\bulleton{\let\beamer@writeslidentry\beamer@old@writeslidentry}
\makeatother
% \setbeamertemplate{mini frames}{} % https://tex.stackexchange.com/a/45594/114006
\setbeamercolor{section in head/foot}{fg=white,bg=black} % https://tex.stackexchange.com/a/326553/114006
\makeatletter
\setbeamertemplate{headline}{%
\begin{beamercolorbox}[ht=2.25ex,dp=3.75ex]{section in head/foot}
\insertnavigation{\paperwidth}
\end{beamercolorbox}%
}%
\makeatother
\usepackage{ragged2e}
\addtobeamertemplate{block begin}{}{\justifying} % https://tex.stackexchange.com/a/148696/114006
\apptocmd{\frame}{}{\justifying}{} % https://tex.stackexchange.com/a/55590/114006
% https://tex.stackexchange.com/a/401409/114006
\usepackage{environ}
% Custom font for a frame.
\newcommand{\customframefont}[1]{
\setbeamertemplate{itemize/enumerate body begin}{#1}
\setbeamertemplate{itemize/enumerate subbody begin}{#1}
}
\NewEnviron{framefont}[1]{
\customframefont{#1} % for itemize/enumerate
{#1 % For the text outside itemize/enumerate
\BODY
}
\customframefont{\normalsize}
}
% https://tex.stackexchange.com/a/127155/114006
% \usepackage{lmodern} % get rid of warnings
% \usepackage{caption} % improved spacing between figure and caption
\setbeamertemplate{caption}[numbered]
\usepackage{amsmath, amsthm, amssymb}
\usepackage[version=4]{mhchem}
\usepackage{docmute} % https://tex.stackexchange.com/a/136727/114006
\setbeamersize{text margin left=30pt,text margin right=30pt}
% allowframebreaks numbering in the title
% \setbeamertemplate{frametitle continuation}{\scriptsize (\insertcontinuationcountroman)}
\setbeamertemplate{frametitle continuation}{}
% https://www.latex-tables.com/
\usepackage{multirow}
\usepackage{colortbl}
\usepackage{color}
\usepackage{diagbox}
% \usepackage{hhline} % Issue with beamer