summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bfh-ci/bfhmodule.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/bfh-ci/bfhmodule.sty')
-rw-r--r--Master/texmf-dist/tex/latex/bfh-ci/bfhmodule.sty59
1 files changed, 59 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/bfh-ci/bfhmodule.sty b/Master/texmf-dist/tex/latex/bfh-ci/bfhmodule.sty
new file mode 100644
index 00000000000..cf1856d984a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/bfh-ci/bfhmodule.sty
@@ -0,0 +1,59 @@
+%% This is file `bfhmodule.sty' 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}
+\ProvidesExplPackage{bfhmodule}{2022/01/25}{2.1.0}{BFH module package -- modular extensions for bfh-ci}
+
+\msg_new:nnn {bfhmodule} {module-not-found} {
+ You~tried~to~load~the~BFH~layout~module~#1.\\
+ I~could~not~find~a~file~named~bfh-layout-#1.cfg.
+}
+
+\msg_new:nnn {bfhmodule} {module-already-loaded} {
+ You~tried~to~load~the~BFH~layout~module~#1.\\
+ This~module~has~already~been~loaded.
+}
+
+\seq_new:N \g__ptxcd_module_seq
+
+\newcommand*\LoadBFHModule[1]{
+ \clist_map_inline:nn {#1} {
+ \seq_if_in:NnTF \g__ptxcd_module_seq {##1} {
+ \msg_warning:nnn {bfhmodule} {module-already-loaded} {##1}
+ }{
+ \file_if_exist_input:nF {bfh-layout-##1.cfg}
+ {\msg_error:nnn {bfhmodule} {module-not-found} {##1}}
+ \seq_gpush:Nn \g__ptxcd_module_seq {##1}
+ }
+ }
+ \ExplSyntaxOff
+}
+
+\endinput