From 41baa3fc38fdb0dfd5f1825d8548a999ab07bf5d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sat, 25 Dec 2021 03:01:41 +0000 Subject: CTAN sync 202112250301 --- .../bfh-ci/example/DEMO-BFHBeamer-Sidebar.tex | 115 ++++++ .../contrib/bfh-ci/example/DEMO-BFHBeamer.tex | 92 +++++ .../contrib/bfh-ci/example/DEMO-BFHFactsheet.tex | 112 +++++ .../contrib/bfh-ci/example/DEMO-BFHFromaddress.lco | 40 ++ .../contrib/bfh-ci/example/DEMO-BFHLetter.tex | 66 +++ .../bfh-ci/example/DEMO-BFHProjektProposal.tex | 75 ++++ .../latex/contrib/bfh-ci/example/DEMO-BFHPub.tex | 453 +++++++++++++++++++++ .../contrib/bfh-ci/example/DEMO-BFHSciPoster.tex | 149 +++++++ .../contrib/bfh-ci/example/DEMO-BFHThesis.tex | 56 +++ 9 files changed, 1158 insertions(+) create mode 100644 macros/latex/contrib/bfh-ci/example/DEMO-BFHBeamer-Sidebar.tex create mode 100644 macros/latex/contrib/bfh-ci/example/DEMO-BFHBeamer.tex create mode 100644 macros/latex/contrib/bfh-ci/example/DEMO-BFHFactsheet.tex create mode 100644 macros/latex/contrib/bfh-ci/example/DEMO-BFHFromaddress.lco create mode 100644 macros/latex/contrib/bfh-ci/example/DEMO-BFHLetter.tex create mode 100644 macros/latex/contrib/bfh-ci/example/DEMO-BFHProjektProposal.tex create mode 100644 macros/latex/contrib/bfh-ci/example/DEMO-BFHPub.tex create mode 100644 macros/latex/contrib/bfh-ci/example/DEMO-BFHSciPoster.tex create mode 100644 macros/latex/contrib/bfh-ci/example/DEMO-BFHThesis.tex (limited to 'macros/latex/contrib/bfh-ci/example') diff --git a/macros/latex/contrib/bfh-ci/example/DEMO-BFHBeamer-Sidebar.tex b/macros/latex/contrib/bfh-ci/example/DEMO-BFHBeamer-Sidebar.tex new file mode 100644 index 0000000000..ce4e8ac4e2 --- /dev/null +++ b/macros/latex/contrib/bfh-ci/example/DEMO-BFHBeamer-Sidebar.tex @@ -0,0 +1,115 @@ +\documentclass[ + ngerman,%globale Übergabe der Hauptsprache +% aspectratio=169,%Beamer eigene Option zum Umschalten des Formates +% logofile=example-image, %Falls die Logo Dateien nicht vorliegen + ]{bfhbeamer} + +%will also be acessible via option sidebar=true/false +\useoutertheme{BFH-sidebar} + + +\usepackage[main=ngerman]{babel} + +% Der folgende Block ist nur bei pdfTeX auf Versionen vor April 2018 notwendig +\usepackage{iftex} +\ifPDFTeX +\usepackage[utf8]{inputenc}%kompatibilität mit TeX Versionen vor April 2018 +\fi + + +%Makros für Formatierungen der Doku +%Im Allgemeinen nicht notwendig! +\let\code\texttt + +\title{\LaTeX-Beamer using BFH CI} +\subtitle{Version 0.4} +\author[M. Peischl]{Marei Peischl} +\institute{pei\TeX} +\titlegraphic*{\includegraphics{example-image}}%is only used with BFH-graphic and BFH-fullgraphic + +%Activate the output of a frame number: +\setbeamertemplate{page number in head/foot}[framenumber] + +\begin{document} + +\maketitle + +%second title variant +\setbeamertemplate{title page}[BFH-Orange] +\maketitle + +\setbeamertemplate{title page}[BFH-graphic] + +\maketitle + +\setbeamertemplate{title page}[BFH-fullgraphic] +\maketitle + +%plain titlepages +\frame[plain]{\maketitle} + +%second title variant +\setbeamertemplate{title page}[BFH] +\frame[plain]{\maketitle} + + +\setbeamertemplate{title page}[BFH-graphic] +\frame[plain]{\maketitle} + +\setbeamertemplate{title page}[BFH-fullgraphic] +\frame[plain]{\maketitle} + + +\section{Example Frames} + +\begin{frame}{Frame with a subtitle} + \framesubtitle{Subtitle} + Example Content. +\end{frame} + +\begin{frame}{Blocks} + \begin{block}{Block with a title} + Content. + \end{block} + \begin{block}{} + Without title + \end{block} +\end{frame} + +\begin{frame}{Block types} + \begin{exampleblock}{Exampleblock} + Content. + \end{exampleblock} + \begin{alertblock}{Alertblock} + Content. + \end{alertblock} + \begin{example}[Example environment] + Content. + \end{example} +\end{frame} + +\section{section pages} +%These can be automaticlly called by using \AtBeginSection{\sectionpage} + +\frame{\sectionpage} + +\setbeamertemplate{section page}[BFH-ruled] + +\frame{\sectionpage} + +%Change base color scheme (option can be added) + +\setbeamercolor{BFH}{parent=BFH-Orange} + + +\frame{\sectionpage} + +\setbeamertemplate{section page}[BFH] + +\frame{\sectionpage} + +\frame[plain]{\sectionpage} + +\end{document} + + diff --git a/macros/latex/contrib/bfh-ci/example/DEMO-BFHBeamer.tex b/macros/latex/contrib/bfh-ci/example/DEMO-BFHBeamer.tex new file mode 100644 index 0000000000..9c75482600 --- /dev/null +++ b/macros/latex/contrib/bfh-ci/example/DEMO-BFHBeamer.tex @@ -0,0 +1,92 @@ +\documentclass[ + ngerman,%globale Übergabe der Hauptsprache +% logofile=example-image, %Falls die Logo Dateien nicht vorliegen + authorontitle=true, + ]{bfhbeamer} + + +%\usepackage[main=ngerman]{babel} + +% Der folgende Block ist nur bei pdfTeX auf Versionen vor April 2018 notwendig +\usepackage{iftex} +\ifPDFTeX +\usepackage[utf8]{inputenc}%kompatibilität mit TeX Versionen vor April 2018 +\fi + + +%Makros für Formatierungen der Doku +%Im Allgemeinen nicht notwendig! +\let\code\texttt + +\title{\LaTeX-Beamer using BFH CI} +\subtitle{Version 0.4} +\author[M. Peischl]{Marei Peischl} +\institute{pei\TeX} +\titlegraphic*{\includegraphics{example-image}}%is only used with BFH-graphic and BFH-fullgraphic + +%Activate the output of a frame number: +%\setbeamertemplate{page number in head/foot}[framenumber] + +\begin{document} + +\maketitle + +%second title variant +\setbeamertemplate{title page}[BFH-Orange] +\maketitle + +\setbeamertemplate{title page}[BFH-graphic] +\maketitle + +\setbeamertemplate{title page}[BFH-fullgraphic] +\maketitle + +\section{Example Frames} + +\begin{frame}{Frame with a subtitle} + \framesubtitle{Subtitle} + Example Content. +\end{frame} + +\begin{frame}{Blocks} + \begin{block}{Block with a title} + Content. + \end{block} + \begin{block}{} + Without title + \end{block} +\end{frame} + +\begin{frame}{Block types} + \begin{exampleblock}{Exampleblock} + Content. + \end{exampleblock} + \begin{alertblock}{Alertblock} + Content. + \end{alertblock} + \begin{example}[Example environment] + Content. + \end{example} +\end{frame} + +\section{section pages} +%These can be automaticlly called by using \AtBeginSection{\sectionpage} + +\frame{\sectionpage} + +\setbeamertemplate{section page}[BFH-ruled] + +\frame{\sectionpage} + +%Change base color scheme (option can be added) + +\setbeamercolor{BFH}{parent=BFH-Orange} + +\frame{\sectionpage} + +\setbeamertemplate{section page}[BFH] + +\frame{\sectionpage} + +\end{document} + diff --git a/macros/latex/contrib/bfh-ci/example/DEMO-BFHFactsheet.tex b/macros/latex/contrib/bfh-ci/example/DEMO-BFHFactsheet.tex new file mode 100644 index 0000000000..4ea00704fb --- /dev/null +++ b/macros/latex/contrib/bfh-ci/example/DEMO-BFHFactsheet.tex @@ -0,0 +1,112 @@ +\documentclass[ + trilingual, + type=factsheet, + headings=big, +]{bfhpub} + +\usepackage[french,ngerman,main=english]{babel} +%--------------------------------------------------------------------------- +% Hyperref Package (Create links in a pdf) +%--------------------------------------------------------------------------- +\usepackage[ + hidelinks + ,plainpages=false + ,pdfpagelabels + ,pdfusetitle + ,hypertexnames = {true} % no failures "same page(i)" +]{hyperref} + + +\newcommand*{\pkg}[1]{\texttt{#1}} +\newcommand*{\cls}[1]{\texttt{#1}} +\newcommand*{\code}[1]{\texttt{#1}} + +\RequirePackage{blindtext} +\begin{document} + +%enable the placement of BFH logo in the head of every page +\enableHeadLineLogo + +%---------------- BFH tile page ----------------------------------------- +\title{BFH factsheet demo} +\subtitle{A demo document and documentation for the fact sheet mode of BFHpub} + +\subject{Das ist ein Teaser auf dem Titelblatt. Inveniat odis vid quist eos ut + odicidi psandaest, omnis ex et re laborep eribusamet es ulluptaquia + suntur se nihic in eum dero eossit, nihil imaximi llatus repta.} + +\department{Leistungsbereich oder Organisationseinheit} +\titlefooterright{Homepage} + +%The starred variant will automatically scale and clip the image. the non-starred one will allow you to set the size yourself +% \titlegraphic*{\includegraphics{example-image}} + +\maketitle + +\section{Headline which spans across both columns} + +\subsection{Subtitle} +Ich bin ein Fliesstext. Ex eria int. Untur, quam et etum quam is +abo. Ut officabo. Nequate sumet ut rem qui reptatincil iunt dio. Lo +moluptat hil mo etur, sit liatur solum quamet et earum quiasi do- +luptae. Modi int ea quam sim ut et dunt liqui di doluptur accabor +min nis audis dic te ea velitati offic teserehent erciunt, et verum, +apero conectae rae sam dit omnis ped moluptia des as dolum eos +voluptatendi ad qui con rem as dolorem poreprori ut endia acestis +et as maximint et aborro doluptatas vention restiam iusape officia +sequias pos apis nustiaestem ullitem quam susandi sanis quatque +volorem abo. Et re et fuga. Um et fugit voluptat volendem dolut +voluptate nobist omnis non es ut excepta menducim autem nost +harcid ut repratis es que landa alit et occate po + +\subsection{Olorum iunt ipsum harchit} + +\begin{itemize} + \item Adia des nam, voloratem Namd modippidis + \item Itamusdantur? Quis et qui nos si acimagni tem. Et qui cum que + volora nos volum quia voluptatem reperum quid eum labo. Ped + evelit alissus aliquasit faccab inci dendiatquid qui: + \item Dolorem nam sam et laudiss umquos + \item Doluptam abor + \item Mod dolore perum aspis maximinusti cus +\end{itemize} + +\bfhRule + +%disable the headline logo also starts a new page +\disableHeadlineLogo + +%switch to twocolumn mode. globally this is also possibly by setting twocolumn class option +\twocolumn[\section{Headline which spans across both columns}] + +\subsection{Subtitle} +Ich bin ein Fliesstext. Ex eria int. Untur, quam et etum quam is +abo. Ut officabo. Nequate sumet ut rem qui reptatincil iunt dio. Lo +moluptat hil mo etur, sit liatur solum quamet et earum quiasi do- +luptae. Modi int ea quam sim ut et dunt liqui di doluptur accabor +min nis audis dic te ea velitati offic teserehent erciunt, et verum, +apero conectae rae sam dit omnis ped moluptia des as dolum eos +voluptatendi ad qui con rem as dolorem poreprori ut endia acestis +et as maximint et aborro doluptatas vention restiam iusape officia +sequias pos apis nustiaestem ullitem quam susandi sanis quatque +volorem abo. Et re et fuga. Um et fugit voluptat volendem dolut +voluptate nobist omnis non es ut excepta menducim autem nost +harcid ut repratis es que landa alit et occate po + +\subsection{Olorum iunt ipsum harchit} + +\begin{itemize} + \item Adia des nam, voloratem Namd modippidis + \item Itamusdantur? Quis et qui nos si acimagni tem. Et qui cum que + volora nos volum quia voluptatem reperum quid eum labo. Ped + evelit alissus aliquasit faccab inci dendiatquid qui: + \item Dolorem nam sam et laudiss umquos + \item Doluptam abor + \item Mod dolore perum aspis maximinusti cus +\end{itemize} + +\noindent\includegraphics[width=\linewidth]{example-image} + +\bfhRule + +\end{document} diff --git a/macros/latex/contrib/bfh-ci/example/DEMO-BFHFromaddress.lco b/macros/latex/contrib/bfh-ci/example/DEMO-BFHFromaddress.lco new file mode 100644 index 0000000000..dd074d1506 --- /dev/null +++ b/macros/latex/contrib/bfh-ci/example/DEMO-BFHFromaddress.lco @@ -0,0 +1,40 @@ +%% 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 +%% Andreas HABEGGER +%% +%% The development respository can be found at +%% https://gitlab.ti.bfh.ch/bfh-latex/bfh-ci/ +%% Please use the issue tracker for feedback! +%% +%% ============================================================================ +%% +% !TeX program = lualatex +%% +\ProvidesFile{DEMO-BFHFromaddress.lco}[2021/12/23 Address demo LCO file for BFH-CI] + +%Institute +\setkomavar{frominstitution}{Institut für Musterforschung} + +\setkomavar{fromaddress}{Strasse Nr\\Postfach\\PLZ Ort} +%optional backaddress which is predefined as: +%\setkomavar{backaddress}{BFH\\\usekomavar{fromname}\\\usekomavar{fromaddress}} + +%personal data +\setkomavar{fromname}{Max Mustermann} +\setkomavar{fromfunction}{Funktion Team} +\setkomavar{fromphone}{+41\,00\,000\,00\,00} +\setkomavar{fromfax}{+41\,00\,000\,00\,00} +\setkomavar{fromemail}{max.mustermann@bfh.ch} +\setkomavar{fromurl}{www.bfh.ch} + +\endinput \ No newline at end of file diff --git a/macros/latex/contrib/bfh-ci/example/DEMO-BFHLetter.tex b/macros/latex/contrib/bfh-ci/example/DEMO-BFHLetter.tex new file mode 100644 index 0000000000..aa051223d5 --- /dev/null +++ b/macros/latex/contrib/bfh-ci/example/DEMO-BFHLetter.tex @@ -0,0 +1,66 @@ +%% 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 +%% Andreas Habegger +%% +%% The development respository can be found at +%% https://gitlab.ti.bfh.ch/bfh-latex/bfh-ci/ +%% Please use the issue tracker for feedback! +%% +%% ============================================================================ +%% +% !TeX program = lualatex +%% +\documentclass[ + english,%language as global option +]{scrartcl}% could also be used with bfhpub + +\usepackage{bfhletter} + +\usepackage{babel}%language selection + +\LoadLetterOption{DEMO-BFHFromaddress}%load personal address config + +\begin{document} + +\begin{letter}{% + Vorname Nachname\\ + Strasse Nr\\ + PLZ Ort +} + +\setkomavar{subject}{\LaTeX{} letters using BFH-CI} +%\setkomavar{date}{\today} + +\opening{} + +Letter contents… + +\closing{} + +%%% ---- postscript +%\ps P.S.: \dots + +%%% ---- enclosures +\encl{Sources to generate this document:\\ + \texttt{DEMO-BFHLetter.tex} (the letter itself),\\ + \texttt{DEMO-BFHFromaddress.lco} (address data) +} + +%%% ---- additional recipients +%\cc{ A \\ +% B +%} + +\end{letter} + +\end{document} diff --git a/macros/latex/contrib/bfh-ci/example/DEMO-BFHProjektProposal.tex b/macros/latex/contrib/bfh-ci/example/DEMO-BFHProjektProposal.tex new file mode 100644 index 0000000000..f0f35c9b2b --- /dev/null +++ b/macros/latex/contrib/bfh-ci/example/DEMO-BFHProjektProposal.tex @@ -0,0 +1,75 @@ +\documentclass[ + trilingual, + type=projectproposal, + twocolumn +]{bfhpub} +% Include Packages +\usepackage[french,ngerman,main=english]{babel} + +\begin{document} + +\title{BFH projectproposal demo} +\subject{Das ist ein Teaser auf dem Titelblatt. Inveniat odis vid quist eos ut + odicidi psandaest, omnis ex et re laborep eribusamet es ulluptaquia + suntur se nihic in eum dero eossit, nihil imaximi llatus repta.} + +\department{Leistungsbereich oder Organisationseinheit} +\titlefooterright{Homepage} + +\advisor{Prof. Dr. S. Smart} +\coadvisor{Dr. M. Smart} +\expert{EXPERT NAME} +\projectpartner{COMPANY NAME} + +% +\projectstartdate{24. Dezember 2000} +\studysubmissiondate{24. Dezember 2000} +\reportsubmissiondate{24. Dezember 2000} +\presentationdate{Prüfungs/Präsentationsdatum} + + +\begin{ProjectDescription} +\section{Projektbeschreibung} +Es sollen Testverfahren ausgearbeitet und anhand einer konkreten Anwendung überprüft werden, um die Echtzeitfähigkeit eines Linux basierten Embedded Systems zu charakte-risieren\cite{lamport94}. Zur Realisierung der Echtzeitfähigkeit im Linux Kernel wurden verschiedene Echtzeit-Patches entwickelt. Seit 2020 ist der RT Patch in der Kernel-Mainline. +Weiter soll untersucht werden, ob und wann es sinnvoll ist ein Embedded Linux System mit einem Echtzeitbetriebssystem zu ergänzen. +\end{ProjectDescription} + +\maketitle + +\section{Projektziele} +\begin{itemize} + \item In Betrieb nehmen der STM32MP1 basierten Entwicklungsplattform. + \item Testkriterien für die Charakterisierung festlegen. + \item Schnittstelle zur konkreten Testanwendung festlegen und umsetzen. + \item Linux System mit RT Patch und einer Echtzeitanwendung realisieren. +\end{itemize} + +\vfill + +\includegraphics[width=\linewidth]{example-image} +\par\nointerlineskip\bfhRule + +\newpage +\begin{thebibliography}{9} + + \bibitem{lamport94} + Leslie Lamport, + \textit{\LaTeX: a document preparation system}, + Addison Wesley, Massachusetts, + 2nd edition, + 1994. + +\end{thebibliography} + +\vfill +\DisplayCompetenceRatingChart{ + Experimental=2, + Mechanical=3, + Programming=1, + Electrical=2, + Conceptual=6 +} + + + +\end{document} diff --git a/macros/latex/contrib/bfh-ci/example/DEMO-BFHPub.tex b/macros/latex/contrib/bfh-ci/example/DEMO-BFHPub.tex new file mode 100644 index 0000000000..18d4887a46 --- /dev/null +++ b/macros/latex/contrib/bfh-ci/example/DEMO-BFHPub.tex @@ -0,0 +1,453 @@ +\documentclass[ +% invert-title=true, +% titlepage=false, +% titleimage-ratio=34 +]{bfhpub} % KOMA-script report +%----------------- Base packages -------------------------------------- +% Include Packages +\usepackage[french,ngerman,main=english]{babel} +%--------------------------------------------------------------------------- +% Hyperref Package (Create links in a pdf) +%--------------------------------------------------------------------------- +\usepackage[ + hidelinks, + pdfusetitle +]{hyperref} + + +% document specific setup. +% Should not be included for own documents! +\usepackage{multicol} + +\newcommand*{\pkg}[1]{\texttt{#1}} +\newcommand*{\cls}[1]{\texttt{#1}} +\newcommand*{\code}[1]{\texttt{#1}} +\newcommand*{\file}[1]{\texttt{#1}} +\newcommand*{\opt}[1]{\texttt{#1}} + +\newcommand\BFHcolorBox[1]{\textcolor{#1}{\rule{2em}{1em}}\hspace{0.5em}#1} + +\LoadBFHModule{terminal,boxes,rules} + +%\tcbuselibrary{minted} +\begin{document} + + %---------------- BFH tile page ----------------------------------------- + \title{BFH-CI} + \subtitle{\LaTeX{} Bundle for Bern University of Applied Sciences} + \author{Marei Peischl\thanks{bfh-ci@peitex.de}} +% \subject{Subject} + \publishers{pei\TeX{}} + \institution{Bern University of Applied Sciences} +% \department{} +% \institute{Mikro- und Medizintechnik} + \version{2.0.0} + \date{2021/12/23} + %The starred variant will automatically scale and clip the image. the non-starred one will allow you to set the size yourself + \titlegraphic*{\includegraphics{example-image}} + + \maketitle + %------------ TABLEOFCONTENTS --------------- + \tableofcontents + + +\section{Quickstart} +BFH-CI provides mechanisms for different types of documents. +Most mechanisms exist among all types. These can be extended by using the BFHModule mechanism (see \autoref{sec:bfhmodule}). + +The release includes the following example files: + +\begin{description} + \item[DEMO-BFHPub.tex] The source to this document. General example for print publications. There are some more specific variants for project proposals (\file{DEMO-BFHProjektProposal.tex}) or fact sheets (\file{DEMO-BFHFactsheet.tex}). + \item[DEMO-BFHBeamer.tex] Beamer presentations. There's also a variant with a sidebar in \file{DEMO-BFHBeamer-Sidebar.tex} + \item[DEMO-BFHThesis.tex] Thesis template including an affidavit and additional title fields. + \item[DEMO-BFHLetter.tex] Letters using \pkg{bfhletter} a layouting wrapper package for \pkg{scrletter}. + \item[DEMO-BFHSciPoster.tex] Scientific posters based on \pkg{tcolorbox}'s poster library. +\end{description} + +\noindent It might be useful to start a new document using one of these example files. +An extended variant of this documentation and general advice for LaTeX users can be found at \url{https://latex.ti.bfh.ch} + +\section{Helper packages} + + +The basic design elements for BFH-CI are implemented by the packages \pkg{bfhcolors}, \pkg{bfhfonts} and \pkg{bfhlogo}. +The latter one is not included in the CTAN Releas due to trademark restrictions. +Users can download it from the internal GitLab. +Detailed Information can be found at the installation instructions at \url{https://latex.ti.bfh.ch}. + +These packages will be loaded automatically if one of the bfh-classes or the letter package are loaded. + +The classes \cls{bfhpub} and \cls{bfhthesis} as well as the beamerarticle-mode of bfhbeamer also load the \pkg{bfhlayout} package. +It provides the basic layout functionality without a documentclass requirement. +Though it should not be loaded without a \KOMAScript{} class. + + +\subsection{bfhcolors} + +\subsubsection{Available Colors} + +The following table shows all by \pkg{bfhcolors} defined colors. For their usage please have a look at the \pkg{xcolor} documentation. + +\medskip +\begin{tabular}{@{}lll} + \BFHcolorBox{BFH-DarkBlue} & \BFHcolorBox{BFH-MediumBlue} & \BFHcolorBox{BFH-LightBlue} \\ + \BFHcolorBox{BFH-DarkGreen} & \BFHcolorBox{BFH-MediumGreen} & \BFHcolorBox{BFH-LightGreen} \\ + \BFHcolorBox{BFH-DarkPurple} & \BFHcolorBox{BFH-MediumPurple} & \BFHcolorBox{BFH-LightPurple} \\ + \BFHcolorBox{BFH-DarkOcher} & \BFHcolorBox{BFH-MediumOcher} & \BFHcolorBox{BFH-LightOcher} \\ + \BFHcolorBox{BFH-DarkRed} & \BFHcolorBox{BFH-MediumRed} & \BFHcolorBox{BFH-LightRed} \\[1em] + \BFHcolorBox{BFH-Orange} &\BFHcolorBox{BFH-Gray} +\end{tabular} + + +\subsubsection{Package Options} + +The \opt{colormode} option can be used to select the correct definitions for the output. +The names match the design guideline. + +\begin{description} + \item[colormode=4CU] 4 colors uncoated paper (default) + \item[colormode=4CC] 4 colors coated paper + \item[colorode=RGB] RGB colors for screens or beamer presentations + \item[colormode=SW] grayscale for internal documents +\end{description} + +\subsection{bfhfonts} + +The CI guideline generally requires the Fonts Unit Slab Pro and Unit Rounded Pro. +Due to license restrictions these cannot be published together with BFH-CI. +BFH-CI provides fallbacks for Source Serif Pro and Nunito which will be loaded if the official fonts cannot be found. +If you want to use the official fonts please have a look at the installation instructions at \url{https://latex.ti.bfh.ch}. + +These changes have been approved by the communications department and can be used as full replacements. + +\pkg{bfhfonts} will try to load fontspec and only use Type 1 fonts if pdf\LaTeX{} is used to compile the documents. + +\subsection{bfhlogo} + +The \pkg{bfhlogo} package provides translations of the word marks of the BFH logo. +Generally this package will use the base language but there's also an option to provide multi language support. + +\subsubsection{Package options} + +\begin{description} + \item[language=] The language options accepts the self explaining values \verb+de+, \verb+fr+, \verb+en+, \verb+de_fr+, \verb+de_fr_en+. + \item[invert-logo-colors=true/false] This option can be used to invert the logo colors. It's internally used in some poster and beamer elements. + \item[trilingual/bilingual/monolingual] These keys only exist for compatibility reasons and will be mapped to the corresponding \verb+language=+ options. +\end{description} + +\section{The base layout for text documents} +The base mechanism for all text documents is provided using the \pkg{bfhlayout} package. +\cls{bfhpub} and \cls{bfhthesis} load this package. The other bfh-classes provide the functionality differently. +Please have a look at the corresponding demo files if you use want to create another document type. + +\cls{bfhpub} and \cls{bfhthesis} will pass all their document class options to this package. +\begin{description} + \item[titleimage-ratio=] This choice key accepts the values \code{12} (1:2),\code{13} (1:3), \code{23} (2:3), \code{34} (3:4), \code{56} (5:6) , \code{1011} (10:11). + It will adjust the size of the colored area or titlegraphic on the titlepage. + For \cls{bfhthesis} some values might be forbidden if the title information takes too much space. + + The value is initialized to \code{titleimage-ratio=12}. the value will be ignored if no titlepage is generated e.\,g. with \code{titlepage=false}. + + \item[invert-title=true/false] This switch toggles the color of text \& logo on the titlepage. If set to true, the base colors of titlepage (BFH-Orange/BFH-Gray) are switched. +\end{description} + + +\section{Additional layout modules} +\label{sec:bfhmodule} + +To support some layout elements among all document types BFH-CI introduces the Macro +\begin{verbatim} + \LoadBFHModule{} +\end{verbatim} + +These modules can be used to extend the basic mechanisms on additional elements. + +Currently there are 3 Modules prepared: +\begin{itemize} + \item table + \item listings + \item terminal + \item boxes + \item rules +\end{itemize} + +The corresponding filenames following the structure \file{bfh-layout-.cfg}. User defined modules can be added. + +\subsection{table module} + +This module is automatically loaded by all document types beside \cls{bfhletter.cls}. + +\begin{verbatim} + \LoadBFHModule{table} +\end{verbatim} + +BFH-CI should used colored tabulars. It combined all necessary adjustments in the \verb+\setupBfhTabular+ macro. It will adjust the rowcolor using \pkg{xcolor}. To use the recommended tabular setup one could use + +\begin{verbatim} +\begin{table} + \centering + \setupBfhTabular + \begin{tabular}{lll} + \rowcolor{BFH-tablehead} + Header 1&Header 2&Header3\\\hline + Content 11&Content 12&Content 13\\\hline + Content 21&Content 22&Content 23 + \end{tabular} + \caption{table caption} + \label{table-label} +\end{table} +\end{verbatim} + +\begin{table}[ht] + \centering + \setupBfhTabular + \begin{tabular}{lll} + \rowcolor{BFH-tablehead} + Header 1&Header 2&Header3\\\hline + Content 11&Content 12&Content 13\\\hline + Content 21&Content 22&Content 23 + \end{tabular} + \caption{table caption} + \label{table-label} +\end{table} + +To simplify the usage the \pkg{bfhlayout} also provides a \verb+bfhTabular+ environment. The upper example would be equal to: + +\begin{verbatim} +\begin{table} + \begin{bfhTabular}{lll} + Header 1&Header 2&Header3\\ + Content 11&Content 12&Content 13\\ + Content 21&Content 22&Content 23 + \end{bfhTabular} + \caption{table caption} + \label{table-label} +\end{table} +\end{verbatim} + +In case the package \pkg{tabularray} ist loaded the table module will also implement a tblr environ to use the layout. +For further usage information please have a look at the \pkg{tabularray} documentation. + +\begin{verbatim} +\begin{bfhTblr}{lll} + Header 1&Header 2&Header3\\ + Content 11&Content 12&Content 13\\ + Content 21&Content 22&Content 23 +\end{bfhTblr} +\end{verbatim} + +\subsection{listings module} + +Loades the \pkg{listings} package and adjusts colors for the listing environments to match the CI. + +\subsection{terminal module} + +Provides some terminal mechanisms to be similar to OSX and ubuntu terminals. +The mechanism is based on \pkg{tcolorbox} and either \pkg{listings} or \pkg{minted} can be used as listing engine. + +The syntax was adapted from internal packages providing this functionality. +Therefore the syntax for adjusting the terminal propmts is slightly different for the minted engine in contrast to listings. + +The following examples show the difference. + +Please pay attention to the fact that the current implementation to change the prompt needs global assignments. A reset at start of a new terminal environment might be required. + + +\begin{multicols}{2}[\subsubsection{terminal using listings}] +\tcbset{listing engine=listings} +\setupLinuxPrompt{student} +\begin{ubuntu} + whoami `\StartConsole` + student `\setupLinuxPrompt{student}` + sudo su `\setupLinuxPrompt{root}` + hostname `\StartConsole` + ubuntu`\setupLinuxPrompt{root}` + ssh bob@remotehost`\StartConsole` + student@remotehost's`\ `password: + Linux remote host 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 + You have mail. + Last login: Wed Oct 16 01:12:35 2012 from localhost`\setupLinuxPrompt{remote}` + whoami`\StartConsole` + user`\setupLinuxPrompt{remote}` + _ +\end{ubuntu} + +\begin{macos} + whoami `\StartConsole` + root `\setupOSXPrompt{root}` + hostname `\StartConsole` + ubuntu`\setupOSXPrompt{root}` + ssh bob@remotehost`\StartConsole` + bob@remotehost's`\ `password: + Linux remote host 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 + You have mail. + Last login: Wed Oct 16 01:12:35 2012 from localhost`\setupOSXPrompt{remote}` + whoami`\StartConsole` + user`\setupOSXPrompt{remote}` + _ +\end{macos} +\end{multicols} + +\subsubsection{terminal using minted} + +This section is commented because minted has to be set up to use it. +In case this should be used minted has been loaded before the terminal module. + +%\tcbset{listing engine=minted} +%\begin{multicols}{2} +%\setupLinuxPrompt{student} +%\begin{ubuntu} +% whoami +% student `\StartConsole` +% sudo su `\setupLinuxPrompt{student}` +% hostname `\setupLinuxPrompt{root}` +% ubuntu`\StartConsole` +% ssh bob@remotehost`\setupLinuxPrompt{root}` +% student@remotehost's`\ `password: `\StartConsole` +% Linux remotehost 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 +% You have mail. +% Last login: Wed Oct 16 01:12:35 2012 from localhost +% whoami`\setupLinuxPrompt{remote}` +% user`\StartConsole` +% _`\setupOSXPrompt{remote}` +%\end{ubuntu} +% +%\setupOSXPrompt{student} +%\begin{macos} +% whoami +% root`\StartConsole` +% hostname`\setupOSXPrompt{root}` +% ubuntu`\StartConsole` +% ssh bob@remotehost`\setupOSXPrompt{root}` +% bob@remotehost's`\ `password:`\StartConsole` +% Linux remotehost 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 +% You have mail. +% Last login: Wed Oct 16 01:12:35 2012 from localhost +% whoami`\setupOSXPrompt{remote}` +% user`\StartConsole` +% _`\setupOSXPrompt{remote}` +%\end{macos} +%\end{multicols} + +\subsection{boxes module} + +The boxes module provides box environments based on the BFH coporate identity. +All of them follow the same syntax: + +\begin{verbatim} + \begin{ENV_TYPE}[COLOR_OPTION]{BOX TITLE} + Some text displayed in the color box. + \end{ENV_TYPE} +\end{verbatim} + +General use of the BFH notification box environment. +\begin{verbatim} + \begin{NOTIFICATION_TYPE} + Some text displayed in the color box. + \end{NOTIFICATION_TYPE} +\end{verbatim} + + +\subsubsection{The general purpose box} +The BFH color box using the option to set user defined color. + +\begin{verbatim} + \begin{bfhBox}[BFH-MediumBlue]{\texttt{bfhBox}} + Color provided by \texttt{bfhcolors} package: \texttt{BFH-MediumBlue} + \end{bfhBox} +\end{verbatim} + + +\begin{bfhBox}[BFH-MediumBlue]{\texttt{bfhBox}} + Color provided by \texttt{bfhcolors} package: \texttt{BFH-MediumBlue} +\end{bfhBox} + +The box without the color option falls back to default color box in BFH medium green. + +\begin{verbatim} + \begin{bfhBox}{\texttt{bfhBox}} + Color provided by \texttt{bfhcolors} package: \texttt{BFH-MediumGreen} + Default color + \end{bfhBox} +\end{verbatim} + +\begin{bfhBox}{\texttt{bfhBox}} + Color provided by \texttt{bfhcolors} package: \texttt{BFH-MediumGreen} + Default color +\end{bfhBox} + + +\subsubsection{Theme boxes} + +\begin{verbatim} + \begin{bfhAlertBox} + Some text to emphasis. + \end{bfhAlertBox} +\end{verbatim} + +\begin{bfhAlertBox} + An alert box. +\end{bfhAlertBox} + +\begin{verbatim} + \begin{bfhWarnBox} + Some text to emphasis. + \end{bfhWarnBox} +\end{verbatim} + +\begin{bfhWarnBox} + A warning box. +\end{bfhWarnBox} + +\begin{verbatim} + \begin{bfhNoteBox} + Some text to emphasis. + \end{bfhNoteBox} +\end{verbatim} + +\begin{bfhNoteBox} + A note box. +\end{bfhNoteBox} + +\begin{verbatim} + \begin{bfhRecycleBox} + Some text to emphasis. + \end{bfhRecycleBox} +\end{verbatim} + +\begin{bfhRecycleBox} + A recycle box. +\end{bfhRecycleBox} + +\begin{verbatim} + \begin{bfhReadBox} + Some text to emphasis. + \end{bfhReadBox} +\end{verbatim} + +\begin{bfhReadBox} + A read box. +\end{bfhReadBox} + + +\begin{verbatim} + \begin{bfhProcessingBox} + Some text to emphasis. + \end{bfhProcessingBox} +\end{verbatim} + +\begin{bfhProcessingBox} + A processing box. +\end{bfhProcessingBox} + +\subsection{rules module} +The rules module adds user macros to create separation rules as described in the CI guideline. + +\begin{verbatim} + \bfhRule[optional length] +\end{verbatim} + +\bfhRule + +\end{document} diff --git a/macros/latex/contrib/bfh-ci/example/DEMO-BFHSciPoster.tex b/macros/latex/contrib/bfh-ci/example/DEMO-BFHSciPoster.tex new file mode 100644 index 0000000000..4713ff94dc --- /dev/null +++ b/macros/latex/contrib/bfh-ci/example/DEMO-BFHSciPoster.tex @@ -0,0 +1,149 @@ +% !TeX program = lualatex +%% + +\documentclass[ + paper=a0,%Voreinstellung wäre a1 +% boxstyle= framed, % Boxen mit abgerundeten Ecken, farbigem Titelblock +% boxstyle=colored % Boxen mit farbigen Hintergrund +% boxstyle=default % Voreinstellung, keine sichtbare Box, farbiger Titel +% logofile=example-image, %Falls die Logo Dateien nicht vorliegen + style=ruled, % Stil für Header/Footer einzeln wählbar über title-style/footer-style, default ist plain +% logo=head,% Logo im Titelblock anstatt der Fusszeile +% invert-colors % Orange/Blau im title,footer,logo getauscht. einzeln anwählbar über invert-title-colors,invert-footer-colors,invert-logo-colors + ]{bfhsciposter} + +%Sprache +\usepackage[nswissgerman]{babel} +\usepackage[autostyle]{csquotes} + + +%Makros für dieses Beispieldokument. Im Allgemeinen nicht notwendig. +\newcommand{\tbs}{\textbackslash} +\newcommand{\repl}[1]{<\textit{#1}>} +\let\code\texttt +\newcommand*{\macro}[1]{\code{\tbs#1}} +\let\file\texttt +\let\pck\textsf +\let\cls\textsf + + +\begin{document} + +\title{\pck{tcolorbox}-Poster-Template\\ + der Berner Fachhochschule} +\author{Marei Peischl\inst{*}\thanks{kontakt@peitex.de} \and der \TeX-Löwe} +\institute{\inst{*}pei\TeX{} \TeX{}nical Solutions, Hamburg, Deutschland} +%\inst kann in den Autor und Institutsfeldern genutzt werden um eine Zuordnung zu ermöglichen. Bei Nummerierung ist der Nutzer dafür verantwortlich Konflikte mit \thanks zu vermeiden. +%\titlegraphic{\includegraphics[width=10cm]{example-image}} +\footerqrcode{https://www.peitex.de} +\footer{Fusszeile: Falls neben den Logos andere Angaben erforderlich sind} + +%Instituts/Sponsorenlogos von links nach rechts +\footergraphics{ + \includegraphics[height=\height]{example-image} + \includegraphics[height=\height]{example-image} +} + +\begin{tcbposter}[ + poster={ + columns=4, + rows=7, + spacing=1cm, +% showframe, %Gitter einblenden. Für Platzierung häufig hilfreich + },] + +\begin{posterboxenv}[,BFH-abstract,title=Zusammenfassung]{name=intro,column=1,row=1,span=4} + Die \cls{bfhsciposter}-Klasse basiert auf dem \pck{tcolorbox} Paket von Thomas F. Sturm. + Sie versucht einen einfachen Weg zu bieten, wissenschaftliche Poster im Stil des Vorporate Design der Berner Fachhochschule zu erstellen. Dieses Dokument dient zur Dokumentation und als Verwendungsbeispiel. + + Dieses Dokument verwendet unterschiedliche Boxentypen. Dies ist selbstverständlich für die praktische Verwendung nicht empfehlenswert. Dieser Modus dient lediglich Demonstrationszwecken. +\end{posterboxenv} + +% Titelei +\begin{posterboxenv}[title=Titelei]{name=title, row=2, span=2, rowspan=2} + Die Definition des Titelblockes lehnt sich an die Standard-\LaTeX{}-Strukturierung mit Hilfe von \macro{maketitle} an. + + Für die Datenübergabe stehen die Makros \macro{title}, \macro{author}, \macro{institute} und \macro{titlegraphic} zur Verfügung. Letztere wird Links vom Titelblock platziert, die Breite des Titels wird automatisch angepasst. + + Zusätzlich zu den Titeldaten stehen über \macro{setqrcode} und \macro{setfoot} Makros zur Verfügung, die die Fusszeile füllen. +\end{posterboxenv} + +% Fusszeile +\begin{posterboxenv}[title=Fusszeile]{name=footer,below=title, span=2, rowspan=2 } + Die Fusszeile ist grundsätzlich aktiviert, kann jedoch mit Hilfe der Klassenoption \code{footer=false} ausgeschaltet werden. In diesem Fall werden jedoch mit \macro{thanks} übergebene zusätzliche Titeldaten nicht angezeigt. + + Für die Übergabe weiterer Daten stehen die Makros \macro{footer}, \macro{footergraphics} und \macro{footerqrcode} zur Verfügung. + + \macro{footergraphics} ist für die Übergabe von Logos gedacht und \macro{footerqrcode} übernimmt einen URL die anschliessend in der rechten unteren Ecke als QRCode platziert wird. + + Die Fusszeile selbst erhält die Daten aus \macro{thanks}, kann jedoch ergänzt werden. Sie hat die Breite des Satzspiegels abzüglich der Logos/QRcode. + + Der Abstand zwischen Logo und den Inhalten des Fußes, sowie zu den Logos und dem QRcode im Fuß wird über die Länge \macro{footerhsep} gesteuert. Änderung ist über \macro{setlength} möglich. +\end{posterboxenv} + +% Platzierung der Boxen +\begin{posterboxenv}[title=Platzierung der Boxen]{name=positioning, below=footer, span=2} + Bei der \pck{poster}-Bibliothek des \pck{tcolorbox} Paketes, werden die Boxen manuell positioniert. + + Dies benötigt zwar einen zusätzlichen Arbeitsschritt, erlaubt jedoch einer feinere Ausrichtung der Boxen, auch relativ zueinander. + + Diese Mechanismen ermöglichen auch, Querverweise einfacher zu positionieren. Hierfür ist ein Blick in die \pck{tcolorbox}-Dokumentation hilfreich. +\end{posterboxenv} + +% Eine Box im Stil BFH-framed +\begin{posterboxenv}[title=Eine Box im Stil BFH-framed, BFH-framed]{name=framed, column=3, row=2, span=2} + Die Boxen können in verschiedenen Varianten gestaltet werden. Die Voreinstellung entspricht den offiziellen Vorgaben, jedoch kann es aus unterschiedlichen Gründen notwendig sein, eine klarere Abgrenzung zu setzen (lobale Klassenoption \code{boxstyle=framed} oder lokaler Stil \code{BFH-framed}). +\end{posterboxenv} + +%% Eine Box im Stil BFH-colored +\begin{posterboxenv}[title=Eine Box im Stil BFH-colored, BFH-colored]{name=colored, column=3, row=3, span=2} + Boxentyp zwischen dem Stil \code{framed} und dem Stil \code{official}. + + Einstellung dieser Option ist sowohl über die Nutzung der globalen Klassenoption \code{style=colored} als auch durch die Verwendung des lokalen Stils\code{BFH-colored} möglich. + +\end{posterboxenv} +% +% Box ohne Titel mit Abbildung +\begin{posterboxenv}[BFH-colored]{name=colored-notitle,column=3,row=4, rowspan=2} + \includegraphics[width=\linewidth]{example-image} + \captionof{figure}{Ein Beispielbild, in einer Box ohne Titel (\code{framed-notitle}). In diesem Fall sind der Stil {BFH} und BFH-colored identisch} +\end{posterboxenv} + +% Box ohne Titel +\begin{posterboxenv}[BFH-framed]{name=notitle, column=4, below=colored} + Ein Beispiel für den Stil \code{framed} ohne einen eigenen Titel. +\end{posterboxenv} + + Box mit Verweis +\begin{posterboxenv}[title=Box mit Verweis,BFH-framed]{name=verweis,column=4, above=row6} + Beispielbox mit Pfeil, um zwei Boxen miteinander zu verknüpfen oder Leseabzweigungen zu generieren. +\end{posterboxenv} + +Zwischen den Boxen kann direkt TikZ-Code eingegeben werden. Das Namensschema der Boxen als Koordinaten lautet + TCBPOSTER@.ankerpunkt + Für genauere Erläuterungen zur Syntax, bietet die tikz-Anleitung genauere Angaben, weitere benannte Koordinaten finden sich in der tcolorbox-Dokumentation +\draw[BFH-Orange,line width=4pt,->] ([yshift=-1cm]TCBPOSTER@verweis.east) -| ([xshift=1cm]TCBPOSTER@colored.east) -- (TCBPOSTER@colored.east); + +% Relative Positionierung +\begin{posterboxenv}[title=Relative Positionierung,BFH-framed]{name=relative, column=4, between=notitle and verweis} + Diese Box wird zwischen den beiden Boxen \code{notitle} und \code{verweis} platziert. +\end{posterboxenv} + +% Papierformat +\begin{posterboxenv}[title=Papierformat]{name=paper,column=3,span=2,below=row5} + Die Klasse \cls{BFHsciposter} unterstützt die Papierformate A0, A1, A2 und A3. Der Wert wird über die Klassenoption \code{paper} ausgewählt: + +\begin{verbatim} +paper=a0 +\end{verbatim} + Die Voreinstellung entspricht \code{a1}. + Die Änderung des Papierformates ist keine Skalierung, da Schriftgrössen nicht direkt skalieren. + + Um eine Skalierung eines grösseren auf ein kleineres Design zu erreichen, empfiehlt es sich, das Ausgangsformat beim Druck zu skalieren (Drucken in eine Datei mit Skalierung) oder ggf. die PDF-Datei mit Paketen wie \pck{pdfpages} umzurechnen. +\end{posterboxenv} + +\end{tcbposter} + +\end{document} + + diff --git a/macros/latex/contrib/bfh-ci/example/DEMO-BFHThesis.tex b/macros/latex/contrib/bfh-ci/example/DEMO-BFHThesis.tex new file mode 100644 index 0000000000..06ef7515cc --- /dev/null +++ b/macros/latex/contrib/bfh-ci/example/DEMO-BFHThesis.tex @@ -0,0 +1,56 @@ +%============================ MAIN DOCUMENT ================================ +% define document class +\documentclass[ + a4paper % paper format +% ,10.5pt % fontsize +% ,BCOR=18mm % Binding correction + ,bibliography=totoc % If enabled add bibliography to TOC + ,listof=totoc % If enabled add lists to TOC +% ,bilingual + ,monolingual +]{bfhthesis} % KOMA-script report + +\usepackage[ + hidelinks, + pdfusetitle, +]{hyperref} + +\begin{document} + +\frontmatter + +\title{Bachelor's Thesis} +\subtitle{Thesis subject} +\author{Anton Muster \and Cindy Example} +\institution{Bern University of Applied Sciences} +\department{Technik und Informatik} +\institute{Mikro- und Medizintechnik} +\version{1.0} +\titlegraphic{\includegraphics[width=\width]{example-image}} +\advisor{Prof. Dr. Super Smart} +\coadvisor{PhD A. Smart} +\projectpartner{proj partner} +\expert{Some expert} +\degreeprogram{Bachelor of Science in Computer Science} + +%---------------- BFH tile page ----------------------------------------- +\maketitle + +\addchap{Abstract} +Here an abstract might be placed. + + +%------------ TABLEOFCONTENTS ---------------- +\tableofcontents + +%------------ START MAIN PART ---------------- +\mainmatter + +\chapter{First chapter of the main part} + +\appendix + +\chapter{First appendix Chapter} + + +\end{document} -- cgit v1.2.3