-
Notifications
You must be signed in to change notification settings - Fork 6
/
beamerfontthemejku.sty
568 lines (495 loc) · 19.5 KB
/
beamerfontthemejku.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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% LaTeX Beamer Font Theme for Johannes Kepler University Linz
%%
%% Copyright (C) 2021-2024 Michael Roland
%%
%% This is a rewrite of the JKU theme originally by
%% Susanne Hametner, Doris Pargfrieder, and Pieter-Jan Hoedt.
%%
%% This Source Code Form is subject to the terms of the Mozilla Public
%% License, v. 2.0. If a copy of the MPL was not distributed with this
%% file, You can obtain one at https://mozilla.org/MPL/2.0/.
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{beamerfontthemejku}[2023/07/11 v3.0+git JKU Linz Beamer Theme (font theme)]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Dependencies
%%
\RequirePackage{etoolbox}
\RequirePackage{graphicx}
\RequirePackage{xcolor}
\RequirePackage{iftex}
% legacy packages prior to merge into iftex; still relevant?
\@ifundefined{ifluatex}{%
\RequirePackage{ifluatex}
}{}
\@ifundefined{ifxetex}{%
\RequirePackage{ifxetex}
}{}
\RequirePackage{listings}
\RequirePackage{verbatim}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Options & Parameters
%%
% Option fontpath={}: set path to template font resources (defaults to "./fonts")
\newcommand{\jkubeamer@fontpath}{fonts}
\DeclareOptionBeamer{fontpath}{\renewcommand{\jkubeamer@fontpath}{#1}}
% Option [no]fancyfonts: use custom TTF fonts with XeTeX/LuaTeX (defaults to true)
\newbool{jkubeamer@xetexfonts}
\booltrue{jkubeamer@xetexfonts}%
\DeclareOptionBeamer{fancyfonts}[true]{\setbool{jkubeamer@xetexfonts}{#1}}
\DeclareOptionBeamer{nofancyfonts}{\boolfalse{jkubeamer@xetexfonts}}
% Option [no]compactverb: use condensed fixed-width font for verbatim and listings (requires XeTeX and the fancyfonts option)
\newbool{jkubeamer@compactverb}
\booltrue{jkubeamer@compactverb}%
\DeclareOptionBeamer{compactverb}[true]{\setbool{jkubeamer@compactverb}{#1}}
\DeclareOptionBeamer{nocompactverb}{\boolfalse{jkubeamer@compactverb}}
% Option [no]compactmono: use condensed fixed-width font (requires XeTeX and the fancyfonts option)
\newbool{jkubeamer@compactmono}
%\booltrue{jkubeamer@compactmono}%
\DeclareOptionBeamer{compactmono}[true]{\setbool{jkubeamer@compactmono}{#1}}
\DeclareOptionBeamer{nocompactmono}{\boolfalse{jkubeamer@compactmono}}
% Option [no]mathastext: use standard document fonts (and default to sans-serif font) in math mode
\newbool{jkubeamer@mathastext}
%\booltrue{jkubeamer@mathastext}%
\DeclareOptionBeamer{mathastext}[true]{%
\setbool{jkubeamer@mathastext}{#1}%
\ifbool{jkubeamer@mathastext}{%
\ifbool{jkubeamer@eulermath}{%
\PackageWarning{beamerfontthemejku}{Options `mathastext' and `eulermath' cannot be used simultaneously, ignoring `eulermath'!}%
}{}%
\boolfalse{jkubeamer@eulermath}%
}{}%
}
\DeclareOptionBeamer{nomathastext}{\boolfalse{jkubeamer@mathastext}}
% Option [no]eulermath: use Euler math fonts (instead of Fira Sans) in math mode (legacy behavior)
\newbool{jkubeamer@eulermath}
%\booltrue{jkubeamer@eulermath}%
\DeclareOptionBeamer{eulermath}[true]{%
\setbool{jkubeamer@eulermath}{#1}%
\ifbool{jkubeamer@eulermath}{%
\ifbool{jkubeamer@mathastext}{%
\PackageWarning{beamerfontthemejku}{Options `eulermath' and `mathastext' cannot be used simultaneously, ignoring `mathastext'!}%
}{}%
\boolfalse{jkubeamer@mathastext}%
}{}%
}
\DeclareOptionBeamer{noeulermath}{\boolfalse{jkubeamer@eulermath}}
\ProcessOptionsBeamer
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Fancy fonts with LuaTeX/XeTeX
%%
\RequirePackage{lmodern}
\RequirePackage{inconsolata}
\RequirePackage{helvet}
\ifluatex\else\ifxetex\else%
\RequirePackage{euler}
\fi\fi
\RequirePackage{fontawesome5}
\ifluatex\else\ifxetex\else%
% fix potentially mis-packaged FA5 in TeX Live 2017, see https://tex.stackexchange.com/q/497792/290236
\pdfmapfile{=fontawesome5.map}%
\fi\fi
%\usefonttheme{serif}
\usefonttheme{professionalfonts}
\ifluatex\else\ifxetex\else%
\ifbool{jkubeamer@xetexfonts}{%
\PackageWarning{beamerfontthemejku}{True-type fonts are only supported on LuaLaTeX/XeLaTeX. Please consider switching to LuaLaTeX (or XeLaTex) to get the full look and feel of this beamer template. Note that you can silence this warning with the `nofancyfonts' option.}%
}{}%
\boolfalse{jkubeamer@xetexfonts}%
\fi\fi
\ifbool{jkubeamer@xetexfonts}{%
\ifbool{jkubeamer@eulermath}{
\@ifpackageloaded{unicode-math}{%
\setmathfont{Euler-Math.otf}
}{%
\RequirePackage{euler-math}%
}%
}{%
\RequirePackage[usefilenames]{firamath-otf}%
%\RequirePackage[no-math]{fontspec}
}
% discover font path
\expandafter\IfFileExists\expandafter{\jkubeamer@fontpath PublicSans-Regular.ttf}{%
\IfFontExistsTF{\jkubeamer@fontpath PublicSans-Regular.ttf}{%
}{%
\xdef\jkubeamer@fontpath{}
}%
}{\expandafter\IfFileExists\expandafter{\jkubeamer@fontpath/PublicSans-Regular.ttf}{%
\xdef\jkubeamer@fontpath{\jkubeamer@fontpath/}
\IfFontExistsTF{\jkubeamer@fontpath PublicSans-Regular.ttf}{%
}{%
\xdef\jkubeamer@fontpath{}
}%
}{\IfFontExistsTF{PublicSans-Regular.ttf}{%
\xdef\jkubeamer@fontpath{}
}{%
\PackageError{beamerfontthemejku}{Font files not found in `\jkubeamer@fontpath', forgot to set the font path with package option `fontpath='?}{}%
\stop
}}}%
\IfFontExistsTF{\jkubeamer@fontpath PublicSans-Regular.ttf}{%
}{%
\PackageError{beamerfontthemejku}{Font files not found in local installation. Fonts must be installed to `$TEXMF[HOME|LOCAL]/fonts/truetype/' or an alternative font path set with package option `fontpath='}{}%
\stop
}%
\defaultfontfeatures{
Path={\jkubeamer@fontpath},
Extension=.ttf,
UprightFont=*-Regular,
BoldFont=*-Bold,
ItalicFont=*-Italic,
BoldItalicFont=*-BoldItalic
}
\defaultfontfeatures+[Inconsolata,InconsolataCondensed]{
Scale=1.16,
ItalicFont={},
BoldItalicFont={},
AutoFakeSlant,
AutoFakeBold,
%BoldItalicFeatures={FakeSlant}
}
\setmainfont{Merriweather}
%\setsansfont{OpenSans}
\setsansfont{PublicSans}
\ifbool{jkubeamer@compactmono}{%
\setmonofont{InconsolataCondensed}
}{%
\setmonofont{Inconsolata}
}
\newfontfamily\rmlightfamily{Merriweather}[
NFSSFamily=rmlight,
UprightFont=*-Light,
BoldFont=*-Regular,
ItalicFont=*-LightItalic,
BoldItalicFont=*-Italic,
Ligatures=TeX]
\newfontfamily\rmblackfamily{Merriweather}[
NFSSFamily=rmblack,
UprightFont=*-Black,
BoldFont=*-Black,
ItalicFont=*-BlackItalic,
BoldItalicFont=*-BlackItalic,
Ligatures=TeX]
%\newfontfamily\sflightfamily{OpenSans}[
% NFSSFamily=sflight,
% UprightFont=*-Light,
% BoldFont=*-SemiBold,
% ItalicFont=*-LightItalic,
% BoldItalicFont=*-SemiBoldItalic,
% Ligatures=TeX]
%\newfontfamily\sfblackfamily{OpenSans}[
% NFSSFamily=sfblack,
% UprightFont=*-ExtraBold,
% BoldFont=*-ExtraBold,
% ItalicFont=*-ExtraBoldItalic,
% BoldItalicFont=*-ExtraBoldItalic,
% Ligatures=TeX]
\newfontfamily\sflightfamily{PublicSans}[
NFSSFamily=sflight,
UprightFont=*-Thin,
BoldFont=*-Medium,
ItalicFont=*-ThinItalic,
BoldItalicFont=*-MediumItalic,
Ligatures=TeX]
\newfontfamily\sfblackfamily{PublicSans}[
NFSSFamily=sfblack,
%LetterSpace=1.0,
UprightFont=*-ExtraBold,
BoldFont=*-Black,
ItalicFont=*-ExtraBoldItalic,
BoldItalicFont=*-BlackItalic,
Ligatures=TeX]
\ifbool{jkubeamer@compactmono}{%
\newfontfamily\ttlightfamily{InconsolataCondensed}[
NFSSFamily=ttlight,
UprightFont=*-Light,
BoldFont=*-Medium]
}{%
\newfontfamily\ttlightfamily{Inconsolata}[
NFSSFamily=ttlight,
UprightFont=*-Light,
BoldFont=*-Medium]
}
\newfontfamily\ttcondensedfamily{InconsolataCondensed}[
NFSSFamily=ttcondensed]
\newfontfamily\ttcondensedlightfamily{InconsolataCondensed}[
NFSSFamily=ttcondensedlight,
UprightFont=*-Light,
BoldFont=*-Medium]
%\setmathsfont(Digits,Latin){Merriweather}
%\setmathrm{Merriweather}
%\setboldmathrm{Merriweather}[
% NFSSFamily=rmblack,
% UprightFont=*-Black,
% BoldFont=*-Black,
% ItalicFont=*-BlackItalic,
% BoldItalicFont=*-BlackItalic]
%%\setmathsf{OpenSans}
%\setmathsf{PublicSans}
%\ifbool{jkubeamer@compactmono}{%
% \setmathtt{InconsolataCondensed}
%}{%
% \setmathtt{Inconsolata}
%}
}{%
\RequirePackage[T1]{fontenc}
\newcommand{\rmlightfamily}{\rmfamily}
\newcommand{\rmblackfamily}{\rmfamily\bfseries}
\newcommand{\sflightfamily}{\sffamily}
\newcommand{\sfblackfamily}{\sffamily\bfseries}
\newcommand{\ttlightfamily}{\ttfamily}
\newcommand{\ttcondensedfamily}{\ttfamily}
\newcommand{\ttcondensedlightfamily}{\ttfamily}
\ifbool{jkubeamer@compactmono}{%
\PackageWarning{beamerfontthemejku}{Option `compactmono' requires the `fancyfonts' option.}%
}{}%
\ifbool{jkubeamer@compactverb}{%
\PackageWarning{beamerfontthemejku}{Option `compactverb' requires the `fancyfonts' option.}%
}{}%
}
\ifbool{jkubeamer@compactverb}{%
\newcommand{\jkubeamer@verbfamily}{\ttcondensedfamily}
}{%
\newcommand{\jkubeamer@verbfamily}{\ttfamily}
}%
\renewcommand\familydefault{\sfdefault}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Packages loaded for convenience
%%
%% NOTE: These packages were loaded by the old JKU beamer package and remain
%% here to match legacy behavior. You can prevent these packages from
%% being loaded by using the nooptpackages option.
%%
\ifbool{jkubeamer@optpackages}{%
\RequirePackage{textcomp}
\PassOptionsToPackage{full}{textcomp}
%\RequirePackage{wasysym}
%\RequirePackage{pifont}
}{}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Experimental: Use standard document fonts in math mode
%%
\ifbool{jkubeamer@mathastext}{%
\ifxetex%
% As of version 1.4, mathastext no longer compiles with XeLaTeX unless we
% the (deprecated) everymath option or the nominus option. Bug has been
% acknowledged by mathastext author. Until then, we are safe to use everymath:
\PassOptionsToPackage{everymath}{mathastext}
% In the future, we may also want to consider to use nominus (and use the
% standard math font for it). In that case, we should do this for at least
% the three basic operators +/-/= to achieve consistent operator alignment.
% Actually, this looks very promising in combination with FiraMath and we
% might want to consider always doing that in future (not just for XeLaTeX):
%\PassOptionsToPackage{noplus,nominus,noequal}{mathastext}
\fi
\usepackage[italic,defaultmathsizes,eulergreek,nosmalldelims,unicodeminus]{mathastext}
}{}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Normal style
%%
\setbeamerfont*{normal text}{family=\sffamily, size*={11pt}{12.5pt}}
\setbeamerfont*{structure}{}
\setbeamerfont*{alerted text}{series=\bfseries}
\setbeamerfont*{example text}{}
\setbeamerfont*{emphasized text}{series=\itshape}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Title frames
%%
\setbeamerfont*{title}{family=\sfblackfamily, series=\bfseries, size*={22pt}{26.4pt}}
\setbeamerfont*{series title}{parent=title, size*={10pt}{12pt}}
\setbeamerfont*{subtitle}{family=\sffamily, size*={10pt}{12pt}}
\setbeamerfont*{subsubtitle}{parent=subtitle, size*={8pt}{9.6pt}}
\setbeamerfont*{author}{parent=subtitle}
\setbeamerfont*{institute}{parent=subsubtitle}
\setbeamerfont*{date}{parent=subsubtitle}
\setbeamerfont*{agenda}{parent=subtitle}
\setbeamerfont*{agenda title}{parent=agenda, family=\sfblackfamily, series=\bfseries}
\setbeamerfont*{imprint}{family=\sffamily, size*={4pt}{5pt}}
\setbeamerfont*{imprint name}{parent=imprint, family=\sfblackfamily, series=\bfseries}
\setbeamerfont*{imprint address}{parent=imprint}
\setbeamerfont*{imprint url}{parent=imprint}
\setbeamerfont*{section title}{parent=title}
\setbeamerfont*{subsection title}{parent=subtitle}
\setbeamerfont*{subsubsection title}{parent=subsubtitle}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Frame title/footer
%%
\setbeamerfont*{frametitle}{family=\sfblackfamily, series=\bfseries, size*={14pt}{16.8pt}}
\setbeamerfont*{framesubtitle}{parent=frametitle}
\setbeamerfont*{section in head/foot}{parent=structure, size*={6pt}{7pt}}
\setbeamerfont*{page number in head/foot}{parent=section in head/foot}
\setbeamerfont*{date in head/foot}{parent=section in head/foot}
\setbeamerfont*{footnote}{parent=normal text, size*={8pt}{9.6pt}}
\setbeamerfont*{footnote mark}{parent=normal text, size*={6pt}{7pt}}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Contact frames
%%
\setbeamerfont*{contacttitle}{parent=title}
\setbeamerfont*{contactsubtitle}{parent=framesubtitle}
\setbeamerfont*{contactinfo}{parent=normal text, size*={10pt}{12pt}}
\setbeamerfont*{contactinfo icon}{parent=contactinfo, size*={8pt}{9.6pt}}
\setbeamerfont*{acknowledgement}{parent=normal text, size*={5pt}{6pt}}
%%
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Itemization and enumeration
%%
\setbeamerfont*{item}{parent=normal text}
\setbeamerfont*{subitem}{parent=item, size*={10pt}{12pt}}
\setbeamerfont*{subsubitem}{parent=subitem, size*={9pt}{11pt}}
\setbeamerfont*{itemize item}{parent=item}
\setbeamerfont*{itemize subitem}{parent=subitem}
\setbeamerfont*{itemize subsubitem}{parent=subsubitem}
\setbeamerfont*{enumerate item}{parent=item}
\setbeamerfont*{enumerate subitem}{parent=subitem}
\setbeamerfont*{enumerate subsubitem}{parent=subsubitem}
\setbeamerfont*{description item}{parent=item, series=\bfseries}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Table of contents
%%
\setbeamerfont*{section in toc}{parent=structure}
\setbeamerfont*{subsection in toc}{parent=section in toc}
\setbeamerfont*{subsubsection in toc}{parent=subsection in toc}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Bibliography
%%
\setbeamerfont*{bibliography item}{parent=normal text}
\setbeamerfont*{bibliography entry author}{parent=normal text}
\setbeamerfont*{bibliography entry title}{parent=normal text}
\setbeamerfont*{bibliography entry location}{parent=normal text}
\setbeamerfont*{bibliography entry note}{parent=normal text}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Captions
%%
\setbeamerfont*{caption}{parent=normal text, size*={10pt}{12pt}}
\setbeamerfont*{caption name}{parent=caption}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Blocks
%%
\setbeamerfont*{block body}{parent=normal text}
\setbeamerfont*{block title}{parent=block body}
\setbeamerfont*{block body example}{parent=block body}
\setbeamerfont*{block title example}{parent=block title}
\setbeamerfont*{block body alerted}{parent=block body}
\setbeamerfont*{block title alerted}{parent=block title}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Highlighting commands
%%
\renewcommand<>{\alert}[1]{{%
\only#2{%
\usebeamerfont{alerted text}%
\ifbeamercolorempty[fg]{alerted text}{}{\usebeamercolor[fg]{alerted text}}%
}#1}}
\renewcommand<>{\emph}[1]{{%
\only#2{%
\usebeamerfont{emphasized text}%
\ifbeamercolorempty[fg]{emphasized text}{}{\usebeamercolor[fg]{emphasized text}}%
}#1}}
\newcommand<>{\highlight}[1]{{%
\only#2{%
\usebeamerfont{example text}%
\ifbeamercolorempty[fg]{example text}{}{\usebeamercolor[fg]{example text}}%
}#1}}
\renewcommand<>{\structure}[1]{{%
\only#2{%
\usebeamerfont{structure}%
\ifbeamercolorempty[fg]{structure}{}{\usebeamercolor[fg]{structure}}%
}#1}}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Verbatim and listings
%%
%\def\verbatim@font{\fontsize{10pt}{11pt}\jkubeamer@verbfamily\hyphenchar\font\m@ne\@noligs}
\def\verbatim@font{\normalfont\jkubeamer@verbfamily\hyphenchar\font\m@ne\@noligs}
% Command \textverb{...}: Display argument in verbatim font (unlike with \verb|...|, the argument is not treated as verbatim).
\newcommand{\textverb}[1]{{\verbatim@font #1}}
\lstset{%
%language=[LaTeX]TeX,
extendedchars=true,
columns=fullflexible, % since we are using a fixed-width font anyways
keepspaces=true, % needs to be set to maintain fixed-width property of spaces with fullflexible
%fontadjust=true,
numbers=left,
numberstyle=\fontsize{6pt}{6.6pt}\jkubeamer@verbfamily,
%stepnumber=1,
basicstyle=\fontsize{10pt}{11pt}\jkubeamer@verbfamily,
commentstyle=\crGreen\itshape,
keywordstyle=\crBlue\bfseries,
stringstyle=\crPurple,
tabsize=4,
showtabs=false,
showspaces=false,
showstringspaces=true,
breaklines=true,
%frame=tb,
%framerule=0.5pt,
%framexleftmargin=0.5em,
%framexrightmargin=0.5em,
%xleftmargin=0.5em,
%xrightmargin=0.5em,
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% URLs
%%
\urlstyle{same}
% Nasty hack to emulate passing option `hyphens' to the url package:
\def\do@url@hyp{\do\-}
\newcommand{\mailto}[1]{\href{mailto:#1}{#1}}
\newcommand{\prettyurl}[2][]{\ifstrempty{#1}{\href{#2}{#2}}{\href{#1}{#2}}}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Setup default document font
%%
\linespread{1.15}
\AtBeginDocument{\usebeamerfont{normal text}}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%