summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bfh-ci/bfhbeamer.cls
blob: 1dbe416001436837f644ba1d66c7afabfba163e3 (plain)
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
%% This is file `bfhbeamer.cls' version 2.1.0 (2022/01/24),
%% it is part of
%% BFH-CI -- Corporate Design for Bern University of Applied Sciences
%% ----------------------------------------------------------------------------
%%
%%  Copyright (C) 2021–2022 by
%%      Marei Peischl <marei@peitex.de>
%%      Andreas Habegger <andreas.habegger@bfh.ch>
%%
%% ============================================================================
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2008/05/04 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%%
%% The Current Maintainers of this work are
%%   Marei Peischl <bfh-ci@peitex.de>
%%   Andreas Habegger <andreas.habegger@bfh.ch>
%%
%% The development respository can be found at
%% https://gitlab.ti.bfh.ch/bfh-latex/bfh-ci/
%% Please use the issue tracker for feedback!
%%
%% ============================================================================
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{bfhbeamer}[2022/01/24 v2.1.0 BFH-CI beamer layout, CI of Bern University of Applied Sciences]

\RequirePackage{l3keys2e}
\PassOptionsToPackage{table}{xcolor}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Option Processing START

\ExplSyntaxOn
\bool_new:N \g__ptxcd_handoutWithNotes_bool

\keys_define:nn {ptxcd/beamer} {
	authorontitle .code:n = \PassOptionsToPackage{authorontitle=#1}{beamerinnerthemeBFH},
	logofile .code:n = \PassOptionsToPackage{logofile=#1}{beamerinnerthemeBFH},
	enforce-title-logo .code:n = \PassOptionsToPackage{enforce-title-logo=#1}{beamerinnerthemeBFH},
	beamerarticle .bool_gset:N = \g__ptxcd_beamerarticle_bool,
	printNotes .code:n = \bool_gset_true:N \g__ptxcd_handoutWithNotes_bool \PassOptionsToPackage{beamer-notes=true}{handoutWithNotes},
	tabletNotes .code:n = \PassOptionsToClass{handout}{beamer},
	paperNotes .code:n = \bool_gset_true:N \g__ptxcd_handoutWithNotes_bool,
}
\ExplSyntaxOff

\PassOptionsToClass{aspectratio=169}{beamer}

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}
\ProcessKeysOptions{ptxcd/beamer}
\ProcessOptions\relax

\ExplSyntaxOn
\bool_if:NT \g__ptxcd_beamerarticle_bool {
	\LoadClassWithOptions{bfhpub}
	\endinput
}
\ExplSyntaxOff

%% Option Processing END
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\LoadClass{beamer}

\ExplSyntaxOn
\dim_new:N \g__ptxcd_logo_height_dim
\dim_gset:Nn  \g__ptxcd_logo_height_dim {0.125\paperheight}

\setbeamersize{
	text~margin~left=.6\g__ptxcd_logo_height_dim, text~margin~right=.6\g__ptxcd_logo_height_dim
}

\ExplSyntaxOff

\usetheme{BFH}

\ExplSyntaxOn
\bool_if:NT \g__ptxcd_handoutWithNotes_bool {
	\RequirePackage{handoutWithNotes}
	\pgfpagesuselayout{3~on~1~with~notes}[a4paper,border~shrink=5mm]
}
\ExplSyntaxOff


\RequirePackage{bfhmodule}

\endinput