-
Notifications
You must be signed in to change notification settings - Fork 19
/
beamerthemesthlmnord.sty
675 lines (596 loc) · 28.4 KB
/
beamerthemesthlmnord.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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
%=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
% BEAMER sthlmNord THEME
%
% File: beamerthemesthlmnord.sty
% Author: Mark H. Olson
% Website: https://mholson.com
% Github: https://github.com/mholson
%
% Updated: 2022-11-05 > Version 3.14159
% Updated: 2022-07-08 > Version 3.1415
% Updated: 2022-04-28 > Version 3.141
% Updated: 2022-04-11 > Version 3.1
% Updated: 2021-08-21 > Version 3.0
% Created: 2013-07-31
% Description: sthml Beamer Theme 1.0 was originally heavily based on the
% hsrmbeamer theme (Benjamin Weiss) as a pdfLaTeX alternative.
%
% This theme is now primarily based on the work of
% Copyright (c) 2018 by P. Vanberg
% https://github.com/pvanberg/flux-beamer
%
% GNU General Public License Extended to this work.
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You can find the GNU General Public License at <http://www.gnu.org/licenses/>.
%
% Important disclaimer from P. Vanberg regarding the original theme
%
% The "%" symbols inside hbox are all very important here.
% The \hbox enviroment will insert spaces whenever there's whitespace
% Adding a % at the END of each line ensures that any hard returns aren't
% interpreted as white space. This allows the color boxes to be flush against
% one another. If a faint white line appears one could probably do something like
% hspace{-1px} and add an additional pixel-or-two wide beamercolorbox.
%=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Theme Options
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\ProvidesPackage{beamerthemesthlmnord}
\mode<presentation>
% > > > Document Class options
% section pages are suppressed by default
% use sectionpages option to enable them
\newif\if@dosectionpages
\@dosectionpagesfalse
\DeclareOptionBeamer{sectionpages}{\@dosectionpagestrue}
% bibliography is suppressed by default
% use bibref option to enable it
\newif\if@dobibref
\@dobibreffalse
\DeclareOptionBeamer{bibref}{\@dobibreftrue}
% minted code highlighting is suppressed by default
% until Overleaf provides the pygments update to provide
% the nord color theme, two options will be available
% minted
\newif\if@docodeminted
\@docodemintedfalse
\DeclareOptionBeamer{codeminted}{\@docodemintedtrue}
% overleaf
\newif\if@docodemintedoverleaf
\@docodemintedoverleaffalse
\DeclareOptionBeamer{codemintedoverleaf}{\@docodemintedoverleaftrue}
% dark mode version is default
% this can be changed to light mode.
\DeclareOptionBeamer{mode}{\def\beamer@sthlmnordtheme@mode{#1}}
\ExecuteOptionsBeamer{mode=dark} %Default Dark Mode
\ProcessOptionsBeamer
\def\beamer@sthlmnordtheme@darkmode{dark}
\def\beamer@sthlmnordtheme@lightmode{light}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Required Packages
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\RequirePackage{tikz}
\RequirePackage{ragged2e}
\RequirePackage{metalogo}
\RequirePackage{mhotables}
\RequirePackage{currfile}
\RequirePackage[yyyymmdd]{datetime}
\RequirePackage{verbatim}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Modular Use with Other Classes
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% > > > Table Support
\NewTableCommand{\tablepagebreak}{\pagebreak}
% > > > EXAM cls EnvUplevel support so no need to copy past problems to create
% a slide.
\newenvironment{EnvUplevel}
{\par\bigskip\vbox\bgroup%
% We set \leftskip to provide the correct left margin for whatever
% is inside of the environment:
\leftskip=\@totalleftmargin
\advance\leftskip-\leftmargin%
% We adjust \@totalleftmargin (and line width?) in case there's a
% solution environment inside of the environment:
\advance\@totalleftmargin-\leftmargin%
\advance\linewidth\leftmargin%
}
{\egroup\nobreak}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Color Theme (DARK MODE DEFAULT)
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\RequirePackage{mhocolorthemenord}
\ifx\beamer@sthlmnordtheme@mode\beamer@sthlmnordtheme@darkmode%
% > > > For ease of reading switch Light (nord 9) and Dark (nord 10) Blue
\definecolor{nordNine}{HTML}{5E81AC} % nord10 -> nord9
\definecolor{nordTen}{HTML}{81A1C1} % nord9 -> nord10
\definecolor{nordTwelve}{HTML}{BF616A} % nord11 -> nord12
\definecolor{nordEleven}{HTML}{D08770} % nord12 -> nord11
% > > > Global Definitions
\setbeamercolor*{normal text}{fg=nordFive}
\setbeamercolor*{background canvas}{bg=nordOne}
\setbeamercolor*{structure}{fg=nordSix}
% > > > Title Page
\setbeamercolor*{title}{fg=nordTwo}
\setbeamercolor*{subtitle}{fg=nordThree}
\setbeamercolor*{author title}{fg=nordTen}
\setbeamercolor*{author}{fg=nordTen!50}
\setbeamercolor*{institute title}{fg=nordTen}
\setbeamercolor*{institute}{fg=nordTen!50}
\setbeamercolor*{date}{fg=nordTen!50}
\setbeamercolor{nordOneBox}{bg=nordTen!50}
\setbeamercolor{nordTwoBlueBox}{bg=nordEight}
% > > > Text
\setbeamercolor*{example text}{fg=nordSeven}
\setbeamercolor*{alerted text}{fg=nordEleven}
% > > > Footnotes
\setbeamercolor*{footnote mark}{fg=nordTen}
\setbeamercolor*{footer}{fg=nordFive}
\setbeamercolor*{footer text}{fg=nordFive}
\setbeamercolor*{footnote book}{fg=nordEight}
% > > > Frame Structure
\setbeamercolor*{section in head/foot}{fg=nordFour, bg=nordOne}
\setbeamercolor*{page number in head/foot}{fg=nordSix}
\setbeamercolor*{number in head/foot}{fg=nordFour, bg=nordOne}
\setbeamercolor*{header primary}{bg=nordZero}
\setbeamercolor*{frame title}{fg=nordFour}
\setbeamercolor*{frame subtitle}{fg=nordFour}
\setbeamercolor*{frame mark}{fg=nordEight}
% > > > Lists
%\setbeamercolor*{itemize item}{fg=nordEight}
%\setbeamercolor*{itemize subitem}{fg=nordEight}
%\setbeamercolor*{itemize subsubitem}{fg=nordEight}
\setbeamertemplate{itemize item}{\cAquaBlue{\(\circledcirc\)}}
\setbeamertemplate{itemize subitem}{\cAquaBlue{\(\bullet\)}}
\setbeamertemplate{itemize subsubitem}{\cAquaBlue{\(\triangleright\)}}
\setbeamercolor*{enumerate item}{fg=nordEight}
\setbeamercolor*{enumerate subitem}{fg=nordEight}
\setbeamercolor*{enumerate subsubitem}{fg=nordEight}
\setbeamercolor*{description item}{fg=nordEight}
\setbeamercolor*{itemize/enumerate body}{fg=nordFive}
\setbeamercolor*{itemize/enumerate subbody}{fg=nordFive}
\setbeamercolor*{itemize/enumerate subsubbody}{fg=nordFive}
\setbeamercolor*{description body}{fg=nordFive}
% > > > Figures
\setbeamercolor*{caption name}{fg=nordFour}
% > > > Table of Contents
\setbeamercolor*{section in toc}{fg=nordTen}
\setbeamercolor*{subsection in toc}{fg=nordEight}
% > > > Section Page
\setbeamercolor*{section page}{fg=nordTen}
\setbeamercolor*{subsection page}{fg=nordTen}
% > > > Code Blocks with Minted
\setbeamercolor{sthmlnord_codeblock}{fg=nordFour,bg=nordZero}
\setbeamercolor{sthmlnord_captionblock}{fg=nordOne,bg=nordEight}
% > > > Default block
\setbeamercolor{block title}{bg=nordTen,fg=nordFour}%
\setbeamercolor{block body}{bg=nordFour, fg=nordTwo}%
\setbeamercolor{block title alerted}{bg=nordTwelve, fg=nordFour}%
\setbeamercolor{block body alerted}{bg=nordFour, fg=nordTwo}%
\setbeamercolor{block title example}{bg=nordSeven, fg=nordFour}%
\setbeamercolor{block body example}{bg=nordFour, fg=nordTwo}%
% > > > Bibliography
\setbeamercolor*{bibliography entry author}{fg=nordFour}
\setbeamercolor*{bibliography entry title}{fg=nordFour}
\setbeamercolor*{bibliography entry location}{fg=nordFour}
\setbeamercolor*{bibliography entry note}{fg=nordFour}
% > > > Math Environments
\newcommand{\prob}{\cnordTwelve{\faFire} \cnordFour{\textbf{Problem:}\enskip}}
\newcommand{\soln}{\cnordEight{\faSignature} \cnordFour{\textbf{Solution:} \enskip}}
\newcommand{\an}{\cnordFour{\faSignature} \cnordFour{\textbf{Answer:} \enskip}}
\newcommand{\ans}{\cnordFour{\faSignature} \cnordFour{\textbf{Answers:} \enskip}}
\renewcommand{\proof}{\cnordThirteen{\faLightbulb[regular]} \cnordFour{\textbf{Proof:} \enskip}}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Color Theme (LIGHT MODE)
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\else%
\ifx\beamer@sthlmnordtheme@mode\beamer@sthlmnordtheme@lightmode%
% > > > Global Definitions
\setbeamercolor*{normal text}{fg=nordZero}
\setbeamercolor*{background canvas}{bg=nordSix}
\setbeamercolor*{structure}{fg=nordZero}
% > > > Title Page
\setbeamercolor*{title}{fg=nordTwo}
\setbeamercolor*{subtitle}{fg=nordThree}
\setbeamercolor*{author title}{fg=nordThree}
\setbeamercolor*{author}{fg=nordTen}
\setbeamercolor*{institute title}{fg=nordThree}
\setbeamercolor*{institute}{fg=nordTen}
\setbeamercolor*{date}{fg=nordThree}
\setbeamercolor{nordOneBox}{bg=nordOne}
\setbeamercolor{nordTwoBlueBox}{bg=nordEight}
% > > > Text
\setbeamercolor*{example text}{fg=nordSeven}
\setbeamercolor*{alerted text}{fg=nordEleven}
% > > > Footnotes
\setbeamercolor*{footnote mark}{fg=nordNine}
\setbeamercolor*{footer}{fg=nordThree}
\setbeamercolor*{footer text}{fg=nordThree}
\setbeamercolor*{footnote book}{fg=nordEight}
% > > > Frame Structure
\setbeamercolor*{section in head/foot}{fg=nordSix, bg=nordTwo}
\setbeamercolor*{page number in head/foot}{fg=nordSix, bg=nordThree}
\setbeamercolor*{header primary}{bg=nordOne}
\setbeamercolor*{frame title}{fg=nordFive}
\setbeamercolor*{frame subtitle}{fg=nordFive}
\setbeamercolor*{frame mark}{fg=nordEight}
% > > > Lists
%\setbeamercolor*{itemize item}{fg=nordTen}
%\setbeamercolor*{itemize subitem}{fg=nordTen}
%\setbeamercolor*{itemize subsubitem}{fg=Ten}
\setbeamertemplate{itemize item}{\cDarkBlue{\(\circledcirc\)}}
\setbeamertemplate{itemize subitem}{\cDarkBlue{\(\bullet\)}}
\setbeamertemplate{itemize subsubitem}{\cDarkBlue{\(\triangleright\)}}
\setbeamercolor*{enumerate item}{fg=nordTen}
\setbeamercolor*{enumerate subitem}{fg=nordTen}
\setbeamercolor*{enumerate subsubitem}{fg=nordTen}
\setbeamercolor*{description item}{fg=nordTen}
\setbeamercolor*{itemize/enumerate body}{fg=nordZero}
\setbeamercolor*{itemize/enumerate subbody}{fg=nordZero}
\setbeamercolor*{itemize/enumerate subsubbody}{fg=nordZero}
\setbeamercolor*{description body}{fg=nordZero}
% > > > Figures
\setbeamercolor*{caption name}{fg=nordNine}
% > > > Table of Contents
\setbeamercolor*{section in toc}{fg=nordTen}
\setbeamercolor*{subsection in toc}{fg=nordNine}
% > > > Section Page
\setbeamercolor*{section page}{bg=nordSix,fg=nordTen}
\setbeamercolor*{subsection page}{bg=nordSix,fg=nordNine}
% > > > Code Blocks with Minted
\setbeamercolor{sthmlnord_codeblock}{fg=nordFour,bg=nordZero}
\setbeamercolor{sthmlnord_captionblock}{fg=nordOne,bg=nordEight}
% > > > Default block
\setbeamercolor{block title}{bg=nordOne,fg=nordFive}
\setbeamercolor{block body}{bg=nordFive, fg=nordTwo}
\setbeamercolor{block title alerted}{bg=nordEleven, fg=nordFive}
\setbeamercolor{block body alerted}{bg=nordFive, fg=nordTwo}
\setbeamercolor{block title example}{bg=nordSeven, fg=nordFive}
\setbeamercolor{block body example}{bg=nordFive, fg=nordTwo}
% > > > Bibliography
\setbeamercolor*{bibliography entry author}{fg=nordTwo}
\setbeamercolor*{bibliography entry title}{fg=nordTwo}
\setbeamercolor*{bibliography entry location}{fg=nordTwo}
\setbeamercolor*{bibliography entry note}{fg=nordTwo}
% > > > Math Environments
\newcommand{\prob}{\cnordThree{\faFire} \cnordZero{\textbf{Problem:}\enskip}}
\newcommand{\soln}{\cnordThree{\faSignature} \cnordZero{\textbf{Solution:} \enskip}}
\newcommand{\an}{\cnordThree{\faSignature} \cnordZero{\textbf{Answer:} \enskip}}
\newcommand{\ans}{\cnordThree{\faSignature} \cnordZero{\textbf{Answers:} \enskip}}
\renewcommand{\proof}{\cnordThree{\faLightbulb[regular]} \cnordZero{\textbf{Proof:} \enskip}}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% > > > Color mode error returns
\else%
\PackageError{beamercolorthemesthlmNord}{Unknow style option `\beamer@sthlmnordtheme@mode`}{extra help}
\fi%
\fi%
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Math
% Includes Math marcros that I use for my slides. Careful, these definitions
% may conflict with other packages or your own defnitions. Also, if you choose
% to remove this package, then you will need to uncomment the font-awesome package
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\RequirePackage{mhomacros}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Custom Commands
\newcommand{\snord}{\cnordTen{sthlm}\cnordEight{NORD}}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Bibliography
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\if@dobibref
\RequirePackage{cleveref}
% https://tex.stackexchange.com/questions/266080/cleveref-hyperlink-not-working-in-beamer/266109#266109
\let\chyperref\cref % Save the orginal command under a new name
\renewcommand{\cref}[1]{\hyperlink{#1}{\chyperref{#1}}} % Redefine the \cref command and explicitly add the hyperlink.
\RequirePackage[backend=biber,style=numeric]{biblatex}
%\setbeamertemplate{bibliography item}{
% \usebeamercolor[bg]{primary}\insertbiblabel
%}
\addbibresource{\bibfilename}
\else
\fi
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% FONTS
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\RequirePackage{textcomp}
% > > > Whoa! Need a large font ... here it is!
\newcommand\Massive{\@setfontsize\VeryHuge{90}{60}}
\RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
\RequirePackage{libertinus-otf}
\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex}
\setbeamerfont*{header title}{size=\large,series=\bfseries}
\setbeamerfont*{header subtitle}{size=\normalsize}
\setbeamerfont*{toc title}{size=\normalsize,series=\bfseries}
\setbeamerfont*{toc subtitle}{size=\small}
\setbeamerfont*{footline}{size=\fontsize{6}{6}}
\setbeamerfont*{bibliography entry author}{size=\normalsize,series=\normalfont}
\setbeamerfont*{bibliography entry title}{size=\normalsize,series=\bfseries}
\setbeamerfont*{bibliography entry location}{size=\small,series=\normalfont}
\setbeamerfont*{bibliography entry note}{size=\small,series=\normalfont}
\setbeamerfont*{block title}{size=\normalsize}
\setbeamerfont*{block body}{size=\small}
\setbeamerfont*{block title example}{size=\normalsize}
\setbeamerfont*{block body example}{size=\small}
\setbeamerfont*{block title alerted}{size=\normalsize}
\setbeamerfont*{block body alerted}{size=\small}
\setbeamerfont{title}{series=\scshape, size=\LARGE}
\setbeamerfont{subtitle}{shape=\upshape}
\setbeamerfont*{author title}{series=\bfseries, shape=\upshape, size=\footnotesize}
\setbeamerfont*{author}{series=\normalfont, shape=\upshape, size=\footnotesize}
\setbeamerfont*{institute title}{series=\bfseries, shape=\upshape, size=\footnotesize}
\setbeamerfont*{institute}{series=\normalfont, shape=\upshape, size=\footnotesize}
\setbeamerfont{date}{series=\bfseries, shape=\scshape, size=\tiny}
\setbeamerfont{section in head/foot}{shape=\upshape}
\setbeamerfont{number in head/foot}{shape=\upshape}
\setbeamerfont{section page}{series=\bfseries, shape=\upshape, size=\Large}
\setbeamerfont{subsection page}{series=\bfseries, shape=\upshape, size=\normalsize}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Code Highlighting Style
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\if@docodeminted
\RequirePackage{minted}
% > > > Using Nord styles included with as of Pygments Version 2.13.0
% > > > DEPRICATED Nord style Requires custom install: https://github.com/sbrisard/nord_pygments
% > > > DEPRICATED Custom install https://github.com/emprice/pygments-nord
% > > > DEPRICATED Using Anaconda https://anaconda.org/conda-forge/python-build
\usemintedstyle{nord-darker}
\setminted{autogobble,xleftmargin=10pt,bgcolor=\cnDarkGrey}
\else
\fi
\if@docodemintedoverleaf
\RequirePackage{minted}
% Until Overleaf updates Pygments to at least version 2.13.0, the vim
% color style will be available. Of course, you can change this by using
% \usemintedstyle command and use a supported color theme:
% https://www.overleaf.com/learn/latex/Code_Highlighting_with_minted
\usemintedstyle{vim}
\setminted{autogobble,xleftmargin=10pt,bgcolor=\cnDarkGrey}
\else
\fi
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Frame Header
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% ---> Remove numbering of frames when using \framebreak
\setbeamertemplate{frametitle continuation}{}
\setbeamertemplate{frametitle}
{
\nointerlineskip%
\begin{beamercolorbox}[wd=\paperwidth,leftskip=0.2cm,ht=0.6cm,dp=0.25cm]{header primary}%
{\usebeamercolor*[fg]{frame title}\usebeamerfont{header title}\insertframetitle}
\ifx\insertframesubtitle\empty%
\else {\usebeamercolor*[fg]{frame mark} {\small\faTerminal} }
{\usebeamercolor*[fg]{frame subtitle}\usebeamerfont{header subtitle}\insertframesubtitle} \fi
\hfill
\end{beamercolorbox}%
\nointerlineskip%
}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Frame Footer
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\setbeamertemplate{footline}{%
\hbox{%
\begin{beamercolorbox}[
wd=.9\paperwidth,
ht=2ex,
dp=1ex,
center]{section in head/foot}%
{\usebeamerfont{section in head/foot}\texttt{\currfilename}}
\end{beamercolorbox}%
\begin{beamercolorbox}[
wd=.1\paperwidth,
ht=2ex,
dp=1ex,
center]{page number in head/foot}
{\usebeamerfont{page number in head/foot} \insertframenumber\ {\usebeamercolor[fg]{footnote book}\faBookOpen}\ \inserttotalframenumber}
\end{beamercolorbox}%
}
}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Footnotes
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\hfuzz=\maxdimen % Remove warning hbox overfull (TODO)
\renewcommand\footnoterule{\color{nordThree!50}\hspace*{-0.5cm}\rule{0.95\paperwidth}{0.2pt}\vspace*{0.07cm}}
\setbeamertemplate{footnote}{%
\begin{beamercolorbox}[wd=\textwidth, leftskip=0.3cm,rightskip=0.3cm]{footer text}%
{\usebeamerfont{footnote mark}{\usebeamercolor{footnote mark}\insertfootnotemark}{\insertfootnotetext}}
\end{beamercolorbox}%
}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Deck Title Page
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Inspired from https://github.com/dennisog/beamer-purdue
\def\titlepage{\usebeamertemplate{title page}}
\setbeamertemplate{title page}
{
\begin{frame}[plain]
\hspace*{-0.1\linewidth}
\begin{minipage}[t]{1\paperwidth}
\hbox{%
\begin{beamercolorbox}[
wd=0.1\linewidth,
ht=0.28\linewidth,
dp=0.02\linewidth]{nordOneBox}
\end{beamercolorbox}
\begin{beamercolorbox}[
wd=1\linewidth,
ht=0.28\linewidth,
dp=0.02\linewidth,
sep=3em]{nordTwoBlueBox}
\parbox{0.8\linewidth}{%
{\usebeamerfont{title} \usebeamercolor[fg]{title} \noindent \inserttitle} \\
{\usebeamerfont{subtitle} \usebeamercolor[fg]{subtitle} \insertsubtitle}
}%
\end{beamercolorbox}
}%
\end{minipage}
\vspace{0.25em}%
\hfill\\
\begin{minipage}[c]{0.02\paperwidth}
\vspace{0pt}
\hfill\\
\end{minipage}%
\begin{minipage}[c]{0.7\paperwidth}
\vspace{0pt}
{\usebeamerfont{author title}\usebeamercolor*[fg]{author title}\titleAuthor: {\usebeamerfont{author}\usebeamercolor*[fg]{author}\insertauthor}}\\[0.2cm]
{\usebeamerfont{institute title}\usebeamercolor*[fg]{institute title}\titleInstitute: {\usebeamerfont{institute}\usebeamercolor*[fg]{institute}\insertinstitute}}\\[0.2cm]
{\usebeamerfont{institute title}\usebeamercolor*[fg]{institute title}\titleMiscI: {\usebeamerfont{institute}\usebeamercolor*[fg]{institute}\descMiscI}}\\[0.2cm]
{\usebeamerfont{institute title}\usebeamercolor*[fg]{institute title}\titleMiscII: {\usebeamerfont{institute}\usebeamercolor*[fg]{institute}\descMiscII}} \\[0.2cm]
{\usebeamerfont{date}\usebeamercolor*[fg]{date}\XeLaTeX ed \ on \insertdate}
\end{minipage}%
\begin{minipage}[c]{0.2\paperwidth}
\vspace{0pt}
\includegraphics[width=0.65\linewidth,keepaspectratio]{\inserttitlegraphic}
\end{minipage}%
\hfill
\addtocounter{framenumber}{-1}
\end{frame}
}%
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Section Frame
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\if@dosectionpages
\AtBeginSection[]{
\begin{frame}[plain,noframenumbering]
\vfill
\begin{center}
{\usebeamerfont{section page}\usebeamercolor*[fg]{section page}\insertsectionhead}
\end{center}
\par%
\vfill%
\end{frame}
}
\AtBeginSubsection[]{
\begin{frame}[plain,noframenumbering]
\vfill
\begin{center}
{\usebeamerfont{section page}\usebeamercolor*[fg]{section page}\insertsectionhead}
\par%
{\usebeamerfont{subsection page}\usebeamercolor*[fg]{subsection page}\insertsubsectionhead}
\end{center}
\par%
\vfill%
\end{frame}
}
\else
\fi
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Table of Contents
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\setbeamertemplate{section in toc}[circle unnumbered]
\setbeamertemplate{subsection in toc}[box unnumbered]
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Example Environment
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\renewenvironment{example}[1]{
\textcolor{secondary}{#1}
}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Blocks
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% > > > Normal Block
\setbeamertemplate{block begin}
{
\par\vskip\medskipamount%
\begin{beamercolorbox}[colsep*=2mm]{block title}
\usebeamerfont*{block title}\insertblocktitle%
\end{beamercolorbox}%
{\parskip0pt\par}%
\ifbeamercolorempty[bg]{block title}
{}
{\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}%
\usebeamerfont{block body}%
\begin{beamercolorbox}[colsep*=2mm,vmode]{block body}%
\ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%
}
% > > > Example Block
\setbeamertemplate{block example begin}
{
\par\vskip\medskipamount%
\begin{beamercolorbox}[colsep*=2mm]{block title example}
\usebeamerfont*{block title example}\insertblocktitle%
\end{beamercolorbox}%
{\parskip0pt\par}%
\ifbeamercolorempty[bg]{block title example}
{}
{\ifbeamercolorempty[bg]{block body example}{}{\nointerlineskip\vskip-0.5pt}}%
\usebeamerfont{block body example}%
\begin{beamercolorbox}[colsep*=2mm,vmode]{block body example}%
\ifbeamercolorempty[bg]{block body example}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%
}
% > > > Alert Block
\setbeamertemplate{block alerted begin}
{
\par\vskip\medskipamount%
\begin{beamercolorbox}[colsep*=2mm]{block title alerted}
\usebeamerfont*{block title alerted}\insertblocktitle%
\end{beamercolorbox}%
{\parskip0pt\par}%
\ifbeamercolorempty[bg]{block title alerted}
{}
{\ifbeamercolorempty[bg]{block body alerted}{}{\nointerlineskip\vskip-0.5pt}}%
\usebeamerfont{block body alerted}%
\begin{beamercolorbox}[colsep*=2mm,vmode]{block body alerted}%
\ifbeamercolorempty[bg]{block body alerted}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%
}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Hide navigation buttons
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\setbeamertemplate{navigation symbols}{}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Custom Margins
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\setbeamersize{text margin left=8mm,text margin right=8mm}
% END =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\mode<all>
%=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
% End of file `beamerthemesthlmnord.sty'.
%=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=