diff options
author | Karl Berry <karl@freefriends.org> | 2021-12-24 21:44:20 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-12-24 21:44:20 +0000 |
commit | d83b0843ec7f0347b5b5ad6febcc570e205606a3 (patch) | |
tree | 7fe32918b62a77cf1fb790250ebb2589bf9fd1c8 /Master/texmf-dist/tex/latex/bfh-ci/bfhbeamer.cls | |
parent | 9a38eb266007b59968d897aa16afed1ef9f99897 (diff) |
bfh-ci (24dec21)
git-svn-id: svn://tug.org/texlive/trunk@61397 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bfh-ci/bfhbeamer.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/bfh-ci/bfhbeamer.cls | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/bfh-ci/bfhbeamer.cls b/Master/texmf-dist/tex/latex/bfh-ci/bfhbeamer.cls new file mode 100644 index 00000000000..66da85d5f57 --- /dev/null +++ b/Master/texmf-dist/tex/latex/bfh-ci/bfhbeamer.cls @@ -0,0 +1,107 @@ +%% This is file `bfhbeamer.cls' version 2.0.0 (2021/12/23), +%% it is part of +%% BFH-CI -- Corporate Design for Bern University of Applied Sciences +%% ---------------------------------------------------------------------------- +%% +%% Copyright (C) 2021 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}[2021/12/23 v2.0.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] +} + + +\msg_new:nnn {bfhbeamer} {module-not-found} { + You~tried~to~load~the~BFH~layout~module~#1.\\ + I~could~not~find~a~file~named~bfh-layout-#1.cfg. +} + +\newcommand*\LoadBFHModule[1]{ + \clist_map_inline:nn {#1} { + \file_if_exist_input:nF {bfh-layout-##1.cfg} + {\msg_error:nnn {bfhbeamer} {module-not-found} {##1}} + } +} + +\ExplSyntaxOff + +\LoadBFHModule{tabular} + +\endinput |