-
Notifications
You must be signed in to change notification settings - Fork 6
/
beamerthemejku.sty
2313 lines (2119 loc) · 88.5 KB
/
beamerthemejku.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
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% LaTeX Beamer 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{beamerthemejku}[2023/07/11 v3.0+git JKU Linz Beamer Theme]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Dependencies
%%
\RequirePackage{etoolbox}
\RequirePackage{xkeyval}
\RequirePackage{graphicx}
\RequirePackage{xcolor}
\RequirePackage{tikz}
\usetikzlibrary{backgrounds}
\usetikzlibrary{calc}
\RequirePackage{xstring}
\RequirePackage{babel}
\RequirePackage{translations}
\RequirePackage{datetime2}
\RequirePackage{amsmath}
\RequirePackage{hyperxmp}
\hypersetup{
keeppdfinfo,
}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Options & Parameters
%%
% Option logopath={}: set path to template logo resources (defaults to "./logos")
\newcommand{\jkubeamer@logopath}{logos}
\DeclareOptionBeamer{logopath}{\renewcommand{\jkubeamer@logopath}{#1}}
% Option [no]frametitlecaps: set frame titles in all-caps (defaults to false)
\newbool{jkubeamer@frametitlecaps}
\DeclareOptionBeamer{frametitlecaps}[true]{\setbool{jkubeamer@frametitlecaps}{#1}}
\DeclareOptionBeamer{noframetitlecaps}{\boolfalse{jkubeamer@frametitlecaps}}
\DeclareOptionBeamer{capsframetitle}[true]{%
\PackageWarning{beamerthemejku}{Option `capsframetitle' deprecated, use frametitlecaps instead!}%
\setbool{jkubeamer@frametitlecaps}{#1}%
}
\DeclareOptionBeamer{nocapsframetitle}{%
\PackageWarning{beamerthemejku}{Option `nocapsframetitle' deprecated, use nonocapsframetitle instead!}%
\boolfalse{jkubeamer@frametitlecaps}%
}
% Option [no]footer: display a frame footer (defaults to true)
\newbool{jkubeamer@framefooter}
\booltrue{jkubeamer@framefooter}
\DeclareOptionBeamer{footer}[true]{\setbool{jkubeamer@framefooter}{#1}}
\DeclareOptionBeamer{nofooter}{\boolfalse{jkubeamer@framefooter}}
% Option [no]jkufooter: insert JKU/partner logos into the frame footer (defaults to true)
\newbool{jkubeamer@framefooterjku}
\booltrue{jkubeamer@framefooterjku}
\DeclareOptionBeamer{jkufooter}[true]{\setbool{jkubeamer@framefooterjku}{#1}}
\DeclareOptionBeamer{nojkufooter}{\boolfalse{jkubeamer@framefooterjku}}
% DEPRECATED option nojkuFooter: old spelling, also implied nofooter in the past
\DeclareOptionBeamer{nojkuFooter}{%
\PackageWarning{beamerthemejku}{Option `nojkuFooter' deprecated, use nojkufooter or nofooter instead!}%
\boolfalse{jkubeamer@framefooter}%
\boolfalse{jkubeamer@framefooterjku}%
}
% Option [no]legacyitemizestyle: use old bullet style in itemization (defaults to false)
\newbool{jkubeamer@legacyitemizestyle}
\DeclareOptionBeamer{legacyitemizestyle}[true]{\setbool{jkubeamer@legacyitemizestyle}{#1}}
\DeclareOptionBeamer{nolegacyitemizestyle}{\boolfalse{jkubeamer@legacyitemizestyle}}
% Option [no]framenumber: insert current frame number into the frame footer (defaults to false)
\newbool{jkubeamer@framenumber}
\DeclareOptionBeamer{framenumber}[true]{\setbool{jkubeamer@framenumber}{#1}}
\DeclareOptionBeamer{noframenumber}{\boolfalse{jkubeamer@framenumber}}
% Option [no]totalframenumber: insert total frame number (in addition to current frame number) into the frame footer; frames in appendix are not counted; (defaults to false)
\newbool{jkubeamer@totalframenumber}
\DeclareOptionBeamer{totalframenumber}[true]{%
\setbool{jkubeamer@framenumber}{#1}%
\setbool{jkubeamer@totalframenumber}{#1}%
}
\DeclareOptionBeamer{nototalframenumber}{%
\boolfalse{jkubeamer@totalframenumber}%
}
% Option [no]appendixframenumber: insert overall total frame number (in addition to current frame number) into the frame footer; when combined with totalframenumber, the appendix is not counted for frames in the main part; (defaults to false)
\newbool{jkubeamer@appendixframenumber}
\DeclareOptionBeamer{appendixframenumber}[true]{%
\setbool{jkubeamer@framenumber}{#1}%
\setbool{jkubeamer@appendixframenumber}{#1}%
}
\DeclareOptionBeamer{noappendixframenumber}{%
\boolfalse{jkubeamer@appendixframenumber}%
}
% Option [no]sectionpage: insert section frames (defaults to true)
\newbool{jkubeamer@sectionpage}
\booltrue{jkubeamer@sectionpage}
\DeclareOptionBeamer{sectionpage}[true]{%
\setbool{jkubeamer@sectionpage}{#1}%
\setbool{jkubeamer@subsectionpage}{#1}%
\setbool{jkubeamer@subsubsectionpage}{#1}%
}
\DeclareOptionBeamer{nosectionpage}{%
\boolfalse{jkubeamer@sectionpage}%
\boolfalse{jkubeamer@subsectionpage}%
\boolfalse{jkubeamer@subsubsectionpage}%
}
% Option [no]subsectionpage: insert subsection frames (defaults to state of sectionpage)
\newbool{jkubeamer@subsectionpage}
\booltrue{jkubeamer@subsectionpage}
\DeclareOptionBeamer{subsectionpage}[true]{%
\setbool{jkubeamer@subsectionpage}{#1}%
\setbool{jkubeamer@subsubsectionpage}{#1}%
}
\DeclareOptionBeamer{nosubsectionpage}{%
\boolfalse{jkubeamer@subsectionpage}%
\boolfalse{jkubeamer@subsubsectionpage}%
}
% Option [no]subsubsectionpage: insert subsubsection frames (defaults to state of subsectionpage)
\newbool{jkubeamer@subsubsectionpage}
\booltrue{jkubeamer@subsubsectionpage}
\DeclareOptionBeamer{subsubsectionpage}[true]{\setbool{jkubeamer@subsubsectionpage}{#1}}
\DeclareOptionBeamer{nosubsubsectionpage}{\boolfalse{jkubeamer@subsubsectionpage}}
% Option [no]partpage: insert part frames (defaults to false)
\newbool{jkubeamer@partpage}
\DeclareOptionBeamer{partpage}[true]{\setbool{jkubeamer@partpage}{#1}}
\DeclareOptionBeamer{nopartpage}{\boolfalse{jkubeamer@partpage}}
% Option [no]imprint: insert imprint on title pages (defaults to true)
\newbool{jkubeamer@imprint}
\booltrue{jkubeamer@imprint}
\DeclareOptionBeamer{imprint}[true]{\setbool{jkubeamer@imprint}{#1}}
\DeclareOptionBeamer{noimprint}{\boolfalse{jkubeamer@imprint}}
% Option [no]jkulogo: insert JKU and K logos on title pages and in frame footers (defaults to true)
\newbool{jkubeamer@jkulogo}
\booltrue{jkubeamer@jkulogo}
\DeclareOptionBeamer{jkulogo}[true]{\setbool{jkubeamer@jkulogo}{#1}}
\DeclareOptionBeamer{nojkulogo}{\boolfalse{jkubeamer@jkulogo}}
% Option [no]optpackages: load convenience packages to mimic legacy behavior (defaults to true)
\newbool{jkubeamer@optpackages}
\booltrue{jkubeamer@optpackages}
\DeclareOptionBeamer{optpackages}[true]{\setbool{jkubeamer@optpackages}{#1}}
\DeclareOptionBeamer{nooptpackages}{\boolfalse{jkubeamer@optpackages}}
% Option c/t: override default vertical centering of beamer class, but allow manually switching to centering mode
\boolfalse{beamer@centered}
\DeclareOptionBeamer{t}{\boolfalse{beamer@centered}}
\DeclareOptionBeamer{c}{%
\booltrue{beamer@centered}%
\PackageWarning{beamerthemejku}{Use option `c' with care; I hope you really know what you are doing!}%
}
% Option [no]autopdfinfo: automatically add pdfinfo with hyperref (defaults to true)
\newbool{jkubeamer@hyperref@automatic}
\booltrue{jkubeamer@hyperref@automatic}
\DeclareOptionBeamer{autopdfinfo}[true]{\setbool{jkubeamer@hyperref@automatic}{#1}}
\DeclareOptionBeamer{noautopdfinfo}{\boolfalse{jkubeamer@hyperref@automatic}}
% Option JKU: use color palette for all JKU
\newcommand{\jkubeamer@faculty}{jku}
\newcommand{\jkubeamer@institute@code}{}
\DeclareOptionBeamer{JKU}{\renewcommand{\jkubeamer@faculty}{jku}}
\DeclareOptionBeamer{jku}{\renewcommand{\jkubeamer@faculty}{jku}}
% Option BUS: use color palette for the business school
\DeclareOptionBeamer{BUS}{\renewcommand{\jkubeamer@faculty}{bus}}
\DeclareOptionBeamer{bus}{\renewcommand{\jkubeamer@faculty}{bus}}
% Option LIT: use color palette for the Linz Institute of Technology
\DeclareOptionBeamer{LIT}{\renewcommand{\jkubeamer@faculty}{lit}\renewcommand{\jkubeamer@institute@code}{LIT}}
\DeclareOptionBeamer{lit}{\renewcommand{\jkubeamer@faculty}{lit}\renewcommand{\jkubeamer@institute@code}{LIT}}
% Option MED: use color palette for the MED faculty
\DeclareOptionBeamer{MED}{\renewcommand{\jkubeamer@faculty}{med}}
\DeclareOptionBeamer{med}{\renewcommand{\jkubeamer@faculty}{med}}
% Option RE: use color palette for the RE faculty
\DeclareOptionBeamer{RE}{\renewcommand{\jkubeamer@faculty}{re}}
\DeclareOptionBeamer{re}{\renewcommand{\jkubeamer@faculty}{re}}
% Option SOE: use color palette for the School of Education
\DeclareOptionBeamer{SOE}{\renewcommand{\jkubeamer@faculty}{soe}}
\DeclareOptionBeamer{SoE}{\renewcommand{\jkubeamer@faculty}{soe}}
\DeclareOptionBeamer{soe}{\renewcommand{\jkubeamer@faculty}{soe}}
% Option SOWI: use color palette for the SOWI faculty
\DeclareOptionBeamer{SOWI}{\renewcommand{\jkubeamer@faculty}{sowi}}
\DeclareOptionBeamer{sowi}{\renewcommand{\jkubeamer@faculty}{sowi}}
% Option TNF: use color palette for the TNF faculty
\DeclareOptionBeamer{TNF}{\renewcommand{\jkubeamer@faculty}{tnf}}
\DeclareOptionBeamer{tnf}{\renewcommand{\jkubeamer@faculty}{tnf}}
% DEPRECATED options: these options no longer have any effect
\DeclareOptionBeamer{nopagenumber}{%
\PackageWarning{beamerthemejku}{Option `nopagenumber' deprecated, option has no effect!}%
}
\DeclareOptionBeamer{noprogressbar}{%
\PackageWarning{beamerthemejku}{Option `noprogressbar' deprecated, option has no effect!}%
}
\DeclareOptionBeamer{protectframetitle}{%
\PackageWarning{beamerthemejku}{Option `protectframetitle' deprecated, option has no effect!}%
}
% DISALLOWED options: these options must not be used
\DeclareOptionBeamer{8pt}{%
\PackageError{beamerthemejku}{Option `8pt' is not allowed, do not mess with font sizes!}{}%
}
\DeclareOptionBeamer{9pt}{%
\PackageError{beamerthemejku}{Option `9pt' is not allowed, do not mess with font sizes!}{}%
}
\DeclareOptionBeamer{10pt}{%
\PackageError{beamerthemejku}{Option `10pt' is not allowed, do not mess with font sizes!}{}%
}
\DeclareOptionBeamer{12pt}{%
\PackageError{beamerthemejku}{Option `12pt' is not allowed, do not mess with font sizes!}{}%
}
\DeclareOptionBeamer{14pt}{%
\PackageError{beamerthemejku}{Option `14pt' is not allowed, do not mess with font sizes!}{}%
}
\DeclareOptionBeamer{17pt}{%
\PackageError{beamerthemejku}{Option `17pt' is not allowed, do not mess with font sizes!}{}%
}
\DeclareOptionBeamer{20pt}{%
\PackageError{beamerthemejku}{Option `20pt' is not allowed, do not mess with font sizes!}{}%
}
% Options to be passed to the color theme (see color theme for more information)
\DeclareOptionBeamer{darkmode}[true]{\PassOptionsToPackage{darkmode=#1}{beamercolorthemejku}}
\DeclareOptionBeamer{MAC}[true]{\PassOptionsToPackage{mac=#1}{beamercolorthemejku}}
\DeclareOptionBeamer{mac}[true]{\PassOptionsToPackage{mac=#1}{beamercolorthemejku}}
\DeclareOptionBeamer{greyText}{\PassOptionsToPackage{greyText}{beamercolorthemejku}}
% Options to be passed to the font theme (see font theme for more information)
\DeclareOptionBeamer{fontpath}{\PassOptionsToPackage{fontpath=#1}{beamerfontthemejku}}
\DeclareOptionBeamer{fancyfonts}[true]{\PassOptionsToPackage{fancyfonts=#1}{beamerfontthemejku}}
\DeclareOptionBeamer{nofancyfonts}{\PassOptionsToPackage{nofancyfonts}{beamerfontthemejku}}
\DeclareOptionBeamer{compactverb}[true]{\PassOptionsToPackage{compactverb=#1}{beamerfontthemejku}}
\DeclareOptionBeamer{nocompactverb}{\PassOptionsToPackage{nocompactverb}{beamerfontthemejku}}
\DeclareOptionBeamer{compactmono}[true]{\PassOptionsToPackage{compactmono=#1}{beamerfontthemejku}}
\DeclareOptionBeamer{nocompactmono}{\PassOptionsToPackage{nocompactmono}{beamerfontthemejku}}
\DeclareOptionBeamer{mathastext}[true]{\PassOptionsToPackage{mathastext=#1}{beamerfontthemejku}}
\DeclareOptionBeamer{nomathastext}{\PassOptionsToPackage{nomathastext}{beamerfontthemejku}}
\DeclareOptionBeamer{eulermath}[true]{\PassOptionsToPackage{eulermath=#1}{beamerfontthemejku}}
\DeclareOptionBeamer{noeulermath}{\PassOptionsToPackage{noeulermath}{beamerfontthemejku}}
\ProcessOptionsBeamer
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% 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{ragged2e}
\RequirePackage{booktabs}
\RequirePackage{tabularx}
\RequirePackage{pgfplots}
\pgfplotsset{compat=1.9}
}{}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Definitions
%%
\newcommand{\jkubeamer@logoprefix}{jku}
% Margin
\newlength{\jkubeamer@margin}
\setlength{\jkubeamer@margin}{7.5mm}
% Title page
\newlength{\jkubeamer@Klogo@width}
\setlength{\jkubeamer@Klogo@width}{25mm}
\newlength{\jkubeamer@Klogo@height}
\newlength{\jkubeamer@logo@height}
\setlength{\jkubeamer@logo@height}{40mm}
\newlength{\jkubeamer@titlelogo@offset}
\setlength{\jkubeamer@titlelogo@offset}{32mm}
\newlength{\jkubeamer@titlelogo@height}
\setlength{\jkubeamer@titlelogo@height}{10.5mm}
\newlength{\jkubeamer@titleimprint@offset}
\setlength{\jkubeamer@titleimprint@offset}{26.5mm}
\newlength{\jkubeamer@partnerlogo@width}
\setlength{\jkubeamer@partnerlogo@width}{\dimexpr\jkubeamer@titleimprint@offset-\jkubeamer@margin\relax}
% Footer
\newlength{\jkubeamer@footerheight}
\setlength{\jkubeamer@footerheight}{10mm}
\newlength{\jkubeamer@footerlogo@height}
\setlength{\jkubeamer@footerlogo@height}{3.5mm}
\newlength{\jkubeamer@footerlogo@spacer}
\setlength{\jkubeamer@footerlogo@spacer}{1em}
\newcommand{\jkubeamer@frameofframes}{/}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Tweaks
%%
% JKU theme uses narrow margins
\setbeamersize{text margin left=\jkubeamer@margin, text margin right=\jkubeamer@margin}
% Disable Beamer's automatic updates of hyperref PDF info since this does not work as expected
% if \title and \author are not given in the preamble (see below for our alternative tweak)
\boolfalse{beamer@autopdfinfo}%
\AtBeginDocument{%
\boolfalse{beamer@autopdfinfo}%
}
% Revert side-effects of beamer setting option implicit=false for hyperref to allow setting title/author after preamble
\AtBeginDocument{%
\let\PDF@FinishDoc=\jkubeamer@PDF@FinishDoc%
}
\let\jkubeamer@PDF@FinishDoc=\PDF@FinishDoc%
\gdef\PDF@FinishDoc{}%
% Add a boolean flag to detect if title is set
% and let first call to \title automatically set the pdftitle attribute
\def\title{\@dblarg\jkubeamer@title}
\newbool{jkubeamer@title@isset}
\long\def\jkubeamer@title[#1]#2{%
\expandafter\notblank\expandafter{#2}{%
\ifbool{jkubeamer@hyperref@automatic}{%
\ifbool{jkubeamer@title@isset}{}{%
\hypersetup{pdftitle={#2}}
}%
}{}%
\booltrue{jkubeamer@title@isset}%
}{%
\boolfalse{jkubeamer@title@isset}%
}%
\beamer@title[#1]{#2}%
}
\newcommand{\jkubeamer@insertpdfauthor}{}
\newcommand{\jkubeamer@preparepdfauthor@extra}[1]{%
\begingroup
\def\ignorespaces{}%
\def\unhbox{}%
\def\voidb@x{}%
\def\protect{}%
\def\penalty{}%
\def\@M{}%
\def\ { }%
\edef\@temp{\endgroup\def\noexpand\jkubeamer@insertpdfauthor{#1}}\@temp%
}
\newcommand{\jkubeamer@preparepdfauthor@subst@one}[2]{%
\StrSubstitute{\jkubeamer@insertpdfauthor}{#1}{#2}[\jkubeamer@insertpdfauthor]%
}
\newcommand{\jkubeamer@preparepdfauthor@subst@all}[2]{%
\jkubeamer@preparepdfauthor@subst@one{#1}{#2}%
\IfSubStr{\jkubeamer@insertpdfauthor}{#1}{%
\jkubeamer@preparepdfauthor@subst@all{#1}{#2}%
}{}%
}
\newcommand{\jkubeamer@preparepdfauthor}[1]{%
\begingroup
%\def\prefix##1{\%\%\%\%\%}%
%\def\suffix##1{\%\%\%\%\%}%
%\def\matno##1{\%\%\%\%\%}%
\def\and{\%\%\%\%\%,\%\%\%\%\%}%
%\def\affiliation##1{\%\%\%\%\%}%
\edef\@temp{\endgroup\def\noexpand\jkubeamer@insertpdfauthor{\%\%\%\%\%#1\%\%\%\%\%}}\@temp%
\saveexpandmode
\expandarg
\jkubeamer@preparepdfauthor@subst@one{ \%\%\%\%\% }{\%\%\%\%\%}%
\jkubeamer@preparepdfauthor@subst@all{ \%\%\%\%\%}{\%\%\%\%\%}%
\jkubeamer@preparepdfauthor@subst@all{\%\%\%\%\% }{\%\%\%\%\%}%
\jkubeamer@preparepdfauthor@subst@one{\%\%\%\%\%}{}%
\jkubeamer@preparepdfauthor@subst@one{,}{, }%
\jkubeamer@preparepdfauthor@extra{\jkubeamer@insertpdfauthor}
\jkubeamer@preparepdfauthor@subst@one{ }{\%\%\%\%\%}%
\jkubeamer@preparepdfauthor@subst@all{\%\%\%\%\%\%\%\%\%\%}{\%\%\%\%\%}%
\jkubeamer@preparepdfauthor@subst@one{\%\%\%\%\%}{ }%
\restoreexpandmode
}
% Add a boolean flag to detect if authors are set
% and let first call to \author automatically set the pdfauthor attribute
\def\author{\@dblarg\jkubeamer@author}
\newbool{jkubeamer@author@isset}
\long\def\jkubeamer@author[#1]#2{%
\expandafter\notblank\expandafter{#2}{%
\ifbool{jkubeamer@hyperref@automatic}{%
\ifbool{jkubeamer@author@isset}{}{%
\jkubeamer@preparepdfauthor{#1}%
\hypersetup{pdfauthor={\jkubeamer@insertpdfauthor}}
}%
}{}%
\booltrue{jkubeamer@author@isset}%
}{%
\boolfalse{jkubeamer@author@isset}%
}%
\beamer@author[#1]{#2}%
}
%\AtBeginEnvironment{columns}{%
% \let\tempsetkeys\setkeys%
% \renewcommand{\setkeys}[2]{%
% \tempsetkeys{#1}{onlytextwidth,#2}%
% \let\setkeys\tempsetkeys%
% }%
%}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Color and font themes
%%
\usecolortheme{jku}
\usefonttheme{jku}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Logos
%%
% Adapted from grapics.sty
\newbool{jkubeamer@temp@exists}%
\newcommand{\jkubeamer@IfLogoFileExists}[1]{%
\booltrue{jkubeamer@temp@exists}%
\def\jkubeamer@temp@file{}%
\begingroup%
\ifx\detokenize\@undefined\else%
\edef\Gin@extensions{\detokenize\expandafter{\Gin@extensions}}%
\fi%
\let\input@path\Ginput@path%
\@ifundefined{set@curr@file}{%
\filename@parse{#1}%
}{%
\set@curr@file{#1}%
\expandafter\filename@parse\expandafter{\@curr@file}%
}%
\ifx\filename@ext\Gin@gzext%
\expandafter\filename@parse\expandafter{\filename@base}%
\ifx\filename@ext\relax%
\let\filename@ext\Gin@gzext%
\else%
\edef\Gin@ext{\Gin@ext\Gin@sepdefault\Gin@gzext}%
\fi%
\fi%
\ifx\filename@ext\relax%
\@for\Gin@temp:=\Gin@extensions\do{%
\ifx\Gin@ext\relax%
\Gin@getbase\Gin@temp%
\fi%
}%
\else%
\Gin@getbase{\Gin@sepdefault\filename@ext}%
\ifnum0%
\ifx\Gin@ext\relax 1%
\else \@ifundefined{Gin@rule@\Gin@ext}{1}{0}%
\fi >0%
\let\Gin@ext\relax%
\let\Gin@savedbase\filename@base%
\let\Gin@savedext\filename@ext%
\edef\filename@base{\filename@base\Gin@sepdefault\filename@ext}%
\let\filename@ext\relax%
\@for\Gin@temp:=\Gin@extensions\do{%
\ifx\Gin@ext\relax%
\Gin@getbase\Gin@temp%
\fi%
}%
\ifx\Gin@ext\relax%
\let\filename@base\Gin@savedbase%
\let\filename@ext\Gin@savedext%
\fi%
\fi%
\ifx\Gin@ext\relax%
\def\Gin@base{\filename@area\filename@base}%
\edef\Gin@ext{\Gin@sepdefault\filename@ext}%
\global\boolfalse{jkubeamer@temp@exists}%
\fi%
\fi%
\ifx\Gin@ext\relax%
\global\boolfalse{jkubeamer@temp@exists}%
\else%
\xdef\jkubeamer@temp@file{\Gin@base\Gin@ext}%
\fi%
\endgroup%
\ifbool{jkubeamer@temp@exists}{%
\expandafter\@firstoftwo
}{%
\expandafter\@secondoftwo
}%
}
\newcommand{\jkubeamer@logo@getname}[3]{%
\jkubeamer@logopath/\jkubeamer@logoprefix%
\expandafter\notblank\expandafter{#1}{_#1}{}%
\expandafter\notblank\expandafter{#2}{_#2}{}%
\expandafter\notblank\expandafter{#3}{_#3}{}%
}
\newsavebox{\jkubeamer@logoblack@K}
\sbox{\jkubeamer@logoblack@K}{%
\includegraphics[width=\jkubeamer@Klogo@width]{\jkubeamer@logo@getname{}{k}{black}}%
}
\newsavebox{\jkubeamer@logowhite@K}
\sbox{\jkubeamer@logowhite@K}{%
\includegraphics[width=\jkubeamer@Klogo@width]{\jkubeamer@logo@getname{}{k}{white}}%
}
\settoheight{\jkubeamer@Klogo@height}{\usebox{\jkubeamer@logoblack@K}}
\newcommand{\jkubeamer@Klogo}{%
\ifcsequal{\string\color@white}{\string\color@fg}{%
\usebox{\jkubeamer@logowhite@K}%
}{%
\usebox{\jkubeamer@logoblack@K}%
}%
}
\newsavebox{\jkubeamer@logoblack@en}
\newsavebox{\jkubeamer@logocolor@en}
\newsavebox{\jkubeamer@logowhite@en}
\newsavebox{\jkubeamer@footerlogo@en}
\newsavebox{\jkubeamer@logoblack@de}
\newsavebox{\jkubeamer@logocolor@de}
\newsavebox{\jkubeamer@logowhite@de}
\newsavebox{\jkubeamer@footerlogo@de}
\newcommand{\jkubeamer@updatelogos}{%
\sbox{\jkubeamer@logoblack@en}{%
\jkubeamer@IfLogoFileExists{\jkubeamer@logo@getname{\jkubeamer@institute@code}{en}{black}}{%
\includegraphics[height=\jkubeamer@logo@height]{\jkubeamer@logo@getname{\jkubeamer@institute@code}{en}{black}}%
}{\jkubeamer@IfLogoFileExists{\jkubeamer@logo@getname{\jkubeamer@institute@code}{}{black}}{%
\includegraphics[height=\jkubeamer@logo@height]{\jkubeamer@logo@getname{\jkubeamer@institute@code}{}{black}}%
}{%
\includegraphics[height=\jkubeamer@logo@height]{\jkubeamer@logo@getname{}{en}{black}}%
}}%
}
\sbox{\jkubeamer@logocolor@en}{%
\jkubeamer@IfLogoFileExists{\jkubeamer@logo@getname{\jkubeamer@institute@code}{en}{color}}{%
\includegraphics[height=\jkubeamer@logo@height]{\jkubeamer@logo@getname{\jkubeamer@institute@code}{en}{color}}%
}{\jkubeamer@IfLogoFileExists{\jkubeamer@logo@getname{\jkubeamer@institute@code}{}{color}}{%
\includegraphics[height=\jkubeamer@logo@height]{\jkubeamer@logo@getname{\jkubeamer@institute@code}{}{color}}%
}{%
\usebox{\jkubeamer@logoblack@en}%
}}%
}
\sbox{\jkubeamer@logowhite@en}{%
\jkubeamer@IfLogoFileExists{\jkubeamer@logo@getname{\jkubeamer@institute@code}{en}{white}}{%
\includegraphics[height=\jkubeamer@logo@height]{\jkubeamer@logo@getname{\jkubeamer@institute@code}{en}{white}}%
}{\jkubeamer@IfLogoFileExists{\jkubeamer@logo@getname{\jkubeamer@institute@code}{}{white}}{%
\includegraphics[height=\jkubeamer@logo@height]{\jkubeamer@logo@getname{\jkubeamer@institute@code}{}{white}}%
}{%
\includegraphics[height=\jkubeamer@logo@height]{\jkubeamer@logo@getname{}{en}{white}}%
}}%
}
\sbox{\jkubeamer@footerlogo@en}{%
\jkubeamer@IfLogoFileExists{\jkubeamer@logo@getname{\jkubeamer@institute@code}{en}{black_wide}}{%
\includegraphics[height=\jkubeamer@footerlogo@height]{\jkubeamer@logo@getname{\jkubeamer@institute@code}{en}{black_wide}}%
}{\jkubeamer@IfLogoFileExists{\jkubeamer@logo@getname{\jkubeamer@institute@code}{}{black_wide}}{%
\includegraphics[height=\jkubeamer@footerlogo@height]{\jkubeamer@logo@getname{\jkubeamer@institute@code}{}{black_wide}}%
}{%
\includegraphics[height=\jkubeamer@footerlogo@height]{\jkubeamer@logo@getname{}{en}{black_wide}}%
}}%
}
\sbox{\jkubeamer@logoblack@de}{%
\jkubeamer@IfLogoFileExists{\jkubeamer@logo@getname{\jkubeamer@institute@code}{de}{black}}{%
\includegraphics[height=\jkubeamer@logo@height]{\jkubeamer@logo@getname{\jkubeamer@institute@code}{de}{black}}%
}{\jkubeamer@IfLogoFileExists{\jkubeamer@logo@getname{\jkubeamer@institute@code}{}{black}}{%
\includegraphics[height=\jkubeamer@logo@height]{\jkubeamer@logo@getname{\jkubeamer@institute@code}{}{black}}%
}{%
\includegraphics[height=\jkubeamer@logo@height]{\jkubeamer@logo@getname{}{de}{black}}%
}}%
}
\sbox{\jkubeamer@logocolor@de}{%
\jkubeamer@IfLogoFileExists{\jkubeamer@logo@getname{\jkubeamer@institute@code}{de}{color}}{%
\includegraphics[height=\jkubeamer@logo@height]{\jkubeamer@logo@getname{\jkubeamer@institute@code}{de}{color}}%
}{\jkubeamer@IfLogoFileExists{\jkubeamer@logo@getname{\jkubeamer@institute@code}{}{color}}{%
\includegraphics[height=\jkubeamer@logo@height]{\jkubeamer@logo@getname{\jkubeamer@institute@code}{}{color}}%
}{%
\usebox{\jkubeamer@logoblack@de}%
}}%
}
\sbox{\jkubeamer@logowhite@de}{%
\jkubeamer@IfLogoFileExists{\jkubeamer@logo@getname{\jkubeamer@institute@code}{de}{white}}{%
\includegraphics[height=\jkubeamer@logo@height]{\jkubeamer@logo@getname{\jkubeamer@institute@code}{de}{white}}%
}{\jkubeamer@IfLogoFileExists{\jkubeamer@logo@getname{\jkubeamer@institute@code}{}{white}}{%
\includegraphics[height=\jkubeamer@logo@height]{\jkubeamer@logo@getname{\jkubeamer@institute@code}{}{white}}%
}{%
\includegraphics[height=\jkubeamer@logo@height]{\jkubeamer@logo@getname{}{de}{white}}%
}}%
}
\sbox{\jkubeamer@footerlogo@de}{%
\jkubeamer@IfLogoFileExists{\jkubeamer@logo@getname{\jkubeamer@institute@code}{de}{black_wide}}{%
\includegraphics[height=\jkubeamer@footerlogo@height]{\jkubeamer@logo@getname{\jkubeamer@institute@code}{de}{black_wide}}%
}{\jkubeamer@IfLogoFileExists{\jkubeamer@logo@getname{\jkubeamer@institute@code}{}{black_wide}}{%
\includegraphics[height=\jkubeamer@footerlogo@height]{\jkubeamer@logo@getname{\jkubeamer@institute@code}{}{black_wide}}%
}{%
\includegraphics[height=\jkubeamer@footerlogo@height]{\jkubeamer@logo@getname{}{de}{black_wide}}%
}}%
}%
}
\jkubeamer@updatelogos% execute logo fetching now
\newcommand{\jkubeamer@logoblack}{%
\ifcurrentbaselanguage{german}{%
\usebox{\jkubeamer@logoblack@de}%
}{%
\usebox{\jkubeamer@logoblack@en}%
}
}
\newcommand{\jkubeamer@logocolor}{%
\ifcurrentbaselanguage{german}{%
\usebox{\jkubeamer@logocolor@de}%
}{%
\usebox{\jkubeamer@logocolor@en}%
}
}
\newcommand{\jkubeamer@logowhite}{%
\ifcurrentbaselanguage{german}{%
\usebox{\jkubeamer@logowhite@de}%
}{%
\usebox{\jkubeamer@logowhite@en}%
}
}
\newcommand{\jkubeamer@logo}{%
\ifcsequal{\string\color@white}{\string\color@.}{%
\jkubeamer@logowhite%
}{\ifcsequal{\string\color@black}{\string\color@.}{%
\jkubeamer@logoblack%
}{%
\jkubeamer@logocolor%
}}%
}
\newcommand{\jkubeamer@footerlogo}{%
\ifcurrentbaselanguage{german}{%
\usebox{\jkubeamer@footerlogo@de}%
}{%
\usebox{\jkubeamer@footerlogo@en}%
}
}
\newsavebox{\jkubeamer@logo@partner@color}
\sbox{\jkubeamer@logo@partner@color}{}
\newsavebox{\jkubeamer@logo@partner@white}
\sbox{\jkubeamer@logo@partner@white}{}
\newsavebox{\jkubeamer@footerlogo@partner@color}
\sbox{\jkubeamer@footerlogo@partner@color}{}
\newsavebox{\jkubeamer@footerlogo@partner@white}
\sbox{\jkubeamer@footerlogo@partner@white}{}
\newcommand{\jkubeamer@kv@scale}{1.0}
\define@key{jkubeamer@kv}{scale}{%
\renewcommand{\jkubeamer@kv@scale}{#1}%
}
\define@key{jkubeamer@kv}{footer scale}{%
\KV@jkubeamer@kv@scale{#1}%
}
\newlength{\jkubeamer@kv@offset}
\setlength{\jkubeamer@kv@offset}{0mm}
\define@key{jkubeamer@kv}{offset}{%
\setlength{\jkubeamer@kv@offset}{#1}%
}
\define@key{jkubeamer@kv}{footer offset}{%
\KV@jkubeamer@kv@offset{#1}%
}
\newcommand{\jkubeamer@kv@white}{}
\define@key{jkubeamer@kv}{white}{%
\renewcommand{\jkubeamer@kv@white}{#1}%
}
% Command \partnerlogo[[footer] scale=factor,[footer] offset=horizontaloffset,white=filename]{filename}: use filename as partnerlogo, filename may be blank to disable the logo
\newcommand{\partnerlogo}[2][]{%
\setkeys{jkubeamer@kv}{scale=1.0,offset=0mm,white={#2_white}}% set defaults
\setkeys{jkubeamer@kv}[footer scale,footer offset]{#1}%
\ifblank{#2}{%
\sbox{\jkubeamer@logo@partner@color}{}%
\sbox{\jkubeamer@logo@partner@white}{}%
}{%
\ifdimgreater{\jkubeamer@kv@offset}{\dimexpr\jkubeamer@titlelogo@offset - \jkubeamer@titleimprint@offset\relax}{%
\setlength{\jkubeamer@kv@offset}{\dimexpr\jkubeamer@titlelogo@offset - \jkubeamer@titleimprint@offset\relax}%
}{}%
\ifdimgreater{.5\jkubeamer@margin}{\dimexpr\jkubeamer@titleimprint@offset + \jkubeamer@kv@offset - \jkubeamer@kv@scale\jkubeamer@partnerlogo@width\relax}{%
\setlength{\jkubeamer@kv@offset}{\dimexpr\jkubeamer@kv@scale\jkubeamer@partnerlogo@width + .5\jkubeamer@margin - \jkubeamer@titleimprint@offset\relax}%
}{}%
\sbox{\jkubeamer@logo@partner@color}{%
\hspace*{-1\jkubeamer@kv@offset}%
\includegraphics[width=\jkubeamer@kv@scale\jkubeamer@partnerlogo@width]{#2}%
}%
\sbox{\jkubeamer@logo@partner@white}{%
\notblank{\jkubeamer@kv@white}{%
\jkubeamer@IfLogoFileExists{\jkubeamer@kv@white}{%
\hspace*{-1\jkubeamer@kv@offset}%
\includegraphics[width=\jkubeamer@kv@scale\jkubeamer@partnerlogo@width]{\jkubeamer@kv@white}%
}{%
\usebox{\jkubeamer@logo@partner@color}%
}%
}{}%
}%
}%
\footerpartnerlogo[#1]{#2}
}
% Command \footerpartnerlogo[[footer] scale=factor,[footer] offset=verticaloffset]{filename}: use filename as partnerlogo (in footer only), filename may be blank to disable the logo
\newcommand{\footerpartnerlogo}[2][]{%
\setkeys{jkubeamer@kv}{scale=1.0,offset=0mm,white={#2_white}}% set defaults
\setkeys{jkubeamer@kv}[footer scale,footer offset]{#1}%
\setkeys{jkubeamer@kv}[scale,offset]{#1}% give "footer scale" / "footer offset" preceedence
\ifblank{#2}{%
\sbox{\jkubeamer@footerlogo@partner@color}{}%
\sbox{\jkubeamer@footerlogo@partner@white}{}%
}{%
\ifdimgreater{\jkubeamer@kv@offset}{.5\dimexpr\jkubeamer@footerheight - \jkubeamer@kv@scale\jkubeamer@footerlogo@height\relax}{%
\setlength{\jkubeamer@kv@offset}{.5\dimexpr\jkubeamer@footerheight - \jkubeamer@kv@scale\jkubeamer@footerlogo@height\relax}%
}{}%
\ifdimgreater{.5\dimexpr\jkubeamer@footerlogo@height - \jkubeamer@kv@scale\jkubeamer@footerlogo@height\relax}{\jkubeamer@kv@offset}{%
\setlength{\jkubeamer@kv@offset}{.5\dimexpr\jkubeamer@footerlogo@height - \jkubeamer@kv@scale\jkubeamer@footerlogo@height\relax}%
}{}%
\sbox{\jkubeamer@footerlogo@partner@color}{%
\raisebox{\dimexpr.5\dimexpr\jkubeamer@footerlogo@height - \jkubeamer@kv@scale\jkubeamer@footerlogo@height\relax - \jkubeamer@kv@offset\relax}{%
\includegraphics[height=\jkubeamer@kv@scale\jkubeamer@footerlogo@height]{#2}%
}%
}%
\sbox{\jkubeamer@footerlogo@partner@white}{%
\notblank{\jkubeamer@kv@white}{%
\jkubeamer@IfLogoFileExists{\jkubeamer@kv@white}{%
\raisebox{\dimexpr.5\dimexpr\jkubeamer@footerlogo@height - \jkubeamer@kv@scale\jkubeamer@footerlogo@height\relax - \jkubeamer@kv@offset\relax}{%
\includegraphics[height=\jkubeamer@kv@scale\jkubeamer@footerlogo@height]{\jkubeamer@kv@white}%
}%
}{%
\usebox{\jkubeamer@footerlogo@partner@color}%
}%
}{}%
}%
}%
}
\newcommand{\jkubeamer@logo@partner}{%
\ifcsequal{\string\color@white}{\string\color@.}{%
\usebox{\jkubeamer@logo@partner@white}%
}{%
\usebox{\jkubeamer@logo@partner@color}%
}%
}
\newcommand{\jkubeamer@footerlogo@partner}{%
\ifcsequal{\string\color@white}{\string\color@.}{%
\usebox{\jkubeamer@footerlogo@partner@white}%
}{%
\usebox{\jkubeamer@footerlogo@partner@color}%
}%
}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Other commands
%%
% Command \insertseries: inserts the series title
\newcommand{\insertseries}{}
% Command \series{series title}: sets the series title
\newcommand{\series}[1]{%
\renewcommand{\insertseries}{#1}%
}
\newcommand{\jkubeamer@insertfooterdate}{\insertshortdate}
% Command \footerdate{date}: use specific date in footer (defaults to \insertshortdate = the short document date)
\newcommand{\footerdate}[1]{%
\renewcommand{\jkubeamer@insertfooterdate}{#1}
}
\newcommand{\jkubeamer@insertfooter}{\insertsectionhead}
% Command \footer{text}: set footer text (defaults to \insertsectionhead = section title)
\newcommand{\footer}[1]{%
\renewcommand{\jkubeamer@insertfooter}{#1}
}
\newcommand{\jkubeamer@insertagendaname}{}
\newcommand{\jkubeamer@insertagenda}{}
% Command \agenda[caption]{text}: sets the agenda (and optional caption) for the next title or section page
\newcommand{\agenda}[2][]{%
\renewcommand{\jkubeamer@insertagendaname}{#1}%
\renewcommand{\jkubeamer@insertagenda}{#2}%
}
\newcommand{\jkubeamer@insertsectionsubtitle}{}
\newcommand{\jkubeamer@insertsectionsubsubtitle}{}
% Command \sectionextra{subtitle}{subsubtitle}: sets the subtitle and subsubtitle for a section page (if subsections and subsubsections are not usable)
\newcommand{\sectionextra}[2]{%
\renewcommand{\jkubeamer@insertsectionsubtitle}{#1}%
\renewcommand{\jkubeamer@insertsectionsubsubtitle}{#2}%
}
% Command \institutecode{code}: set the institute code (used to load institute-specific logo instead of JKU logo)
\newcommand{\institutecode}[1]{%
\renewcommand{\jkubeamer@institute@code}{#1}%
\jkubeamer@updatelogos%
}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Title frames
%%
%TODO: Make text dynamically configurable
\newcommand{\jkubeamer@insertimprint}{%
\parbox[t]{\dimexpr\jkubeamer@titleimprint@offset - \jkubeamer@margin\relax}{%
\raggedright%
\linespread{1.0}%
\setlength{\parindent}{0pt}%
\setlength{\parskip}{0pt}%
\usebeamerfont{imprint}%
\usebeamercolor[fg]{imprint}%
\begingroup
\usebeamerfont{imprint name}%
\usebeamercolor[fg]{imprint name}%
\MakeUppercase{Johannes Kepler}\\
\ifcurrentbaselanguage{german}{%
\MakeUppercase{Universit\"{a}t Linz}
}{%
\MakeUppercase{University Linz}
}\\
\endgroup
\begingroup
\usebeamerfont{imprint address}%
\usebeamercolor[fg]{imprint address}%
Altenberger Stra{\ss}e 69\\
4040 Linz, Austria\\
\endgroup
\begingroup
\usebeamerfont{imprint url}%
\usebeamercolor[fg]{imprint url}%
\href{https://jku.at/}{jku.at}\\
\hfill
\endgroup
}%
}
% Command \titlesmall{text}: switches to small font size inside title
\newcommand{\titlesmall}[1]{%
\begingroup%
\usebeamerfont{series title}%
#1%
\endgroup%
}
\setbeamertemplate{title page}{%
\thispagestyle{empty}%
\begin{tikzpicture}[remember picture, overlay]
%\fill[fill=bg] (current page.south west) rectangle (current page.north east);
\node[anchor=north west,line width=0mm, inner sep=0mm] at ($(current page.west) + (\beamer@leftmargin, 0mm)$) {
\color{fg}%
\ifbool{jkubeamer@jkulogo}{%
\jkubeamer@Klogo%
}{}%
};
\node[anchor=north west,line width=0mm, inner sep=0mm] at ($(current page.north east) - (\jkubeamer@titlelogo@offset, \jkubeamer@margin)$) {%
\color{fg}%
\ifbool{jkubeamer@framefooterjku}{%
\ifbool{jkubeamer@jkulogo}{%
\resizebox{!}{\jkubeamer@titlelogo@height}{\jkubeamer@logo}%
}{}%
}{}%
};
\node[anchor=south west,line width=0mm, inner sep=0mm] at ($(current page.south east) - (\jkubeamer@titleimprint@offset, -\jkubeamer@margin)$) {%
\color{fg}%
\ifbool{jkubeamer@framefooterjku}{%
\ifbool{jkubeamer@imprint}{%
\jkubeamer@insertimprint%
}{}%
}{}%
};
\node[anchor=south west,line width=0mm, inner sep=0mm, yshift=\notbool{jkubeamer@imprint}{-2\jkubeamer@margin}{0mm}] at ($(current page.south east) - (\jkubeamer@titleimprint@offset, -3\jkubeamer@margin)$) {%
\color{fg}%
{%
\jkubeamer@logo@partner%
}%
};
%\fill[fill=red,opacity=0.5] ($(current page.west) + (\jkubeamer@margin, 0.15\jkubeamer@Klogo@height)$) rectangle ($(current page.north east) - (\jkubeamer@margin, \jkubeamer@margin)$);
\node[anchor=south west,line width=0mm, inner sep=0mm] at ($(current page.west) + (\beamer@leftmargin, 0.15\jkubeamer@Klogo@height)$) {%
\begin{minipage}[b][\dimexpr.5\paperheight-\jkubeamer@margin\relax]{\dimexpr\paperwidth-2\jkubeamer@margin\relax}%
\raggedright%
\linespread{0.85}%
\setlength{\parindent}{0pt}%
\setlength{\parskip}{0pt}%
\usebeamerfont{title}%
\usebeamercolor[fg]{title}%
\expandafter\notblank\expandafter{\insertseries}{%
\begingroup%
\linespread{1.0}%
\usebeamerfont{series title}%
\usebeamercolor[fg]{series title}%
\vphantom{Gg}%
\ifbool{jkubeamer@frametitlecaps}{%
\MakeUppercase{\insertseries}%
}{%
\protect\insertseries%
}
\vphantom{Gg}%
\par%
\vspace*{.5ex}%
\endgroup%
}{}%
\vphantom{Gg}%
\ifbool{jkubeamer@frametitlecaps}{%
\MakeUppercase{\inserttitle}%
}{%
\protect\inserttitle%
}
\vphantom{Gg}%
\par%
\linespread{1.0}\selectfont%
\vspace*{\dimexpr\f@size\p@ - \baselineskip\relax}%
\end{minipage}%
};
%\fill[fill=red,opacity=0.5] ($(current page.west) + (\jkubeamer@margin, -1.15\jkubeamer@Klogo@height)$) rectangle ($(current page.south east) + (-\jkubeamer@titlelogo@offset, \jkubeamer@margin)$);
\node[anchor=north west,line width=0mm, inner sep=0mm] at ($(current page.west) + (\beamer@leftmargin, -1.15\jkubeamer@Klogo@height)$) {%
\begin{minipage}[t][\dimexpr.5\paperheight-\jkubeamer@margin\relax]{\dimexpr\paperwidth-\jkubeamer@margin-\jkubeamer@titlelogo@offset\relax}%
\raggedright%
\linespread{0.95}%
\setlength{\parindent}{0pt}%
\setlength{\parskip}{0pt}%
\usebeamerfont{subtitle}%
\usebeamercolor[fg]{subtitle}%
\begingroup%
\def\beamer@insttitle##1{\textsuperscript{##1}}%
\def\beamer@andtitle{\unskip, }%
\def\beamer@instother##1{}%
\def\beamer@andother{\unskip, }%
\def\beamer@instinst##1{\textsuperscript{##1}\ignorespaces}%
\def\beamer@andinst{\unskip, }%
\let\thanks=\@gobble%
\expandafter\notblank\expandafter{\insertsubtitle}{%
\vphantom{Gg}%
\protect\insertsubtitle%
\vphantom{Gg}%
\par%
}{}%
\ifbool{jkubeamer@author@isset}{%
\begingroup%
\usebeamerfont{author}%
\usebeamercolor[fg]{author}%
\vphantom{Gg}%
\protect\insertauthor%
\vphantom{Gg}%
\endgroup%
\par% with baselineskip of outer font (subtitle)