initialized CELbeamer.cls, modified from sdqbeamer.cls

This commit is contained in:
Hedongliang Liu 2025-08-13 21:36:07 +02:00 committed by Andrej Rode
parent b022765596
commit a3c0be18f5
5 changed files with 296 additions and 1631 deletions

View File

@ -12,23 +12,14 @@
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
% \RequirePackage{pgffor}
\newif\ifsectionnavigationoption
\newif\ifsectionnavigation
\sectionnavigationoptionfalse
\sectionnavigationoptiontrue
\newif\ifgerman
\newif\iffranklin
\newif\ifsmallfooterfont
\smallfooterfontfalse
\newif\ifkitgrid
\newif\ifspaceforface
\spaceforfacefalse
\newif\ifoverviewatsection
\overviewatsectionfalse
\newif\ifshowallatfirstoverview
\showallatfirstoverviewtrue
\newif\ifshowsubsectionsatfirstoverview
\showsubsectionsatfirstoverviewfalse
\def\groupname#1{\def\@groupname{#1}}
\def\groupnamewidth#1{\def\@groupnamewidth{#1}}
@ -41,8 +32,8 @@
\DeclareOption{de}{
\germantrue
}
\DeclareOption{navbaron}{
\sectionnavigationoptiontrue
\DeclareOption{navbaroff}{
\sectionnavigationoptionfalse
}
\DeclareOption{smallfoot}{
\smallfooterfonttrue
@ -59,17 +50,8 @@
\DeclareOption{kitgrid}{
\kitgridtrue
}
\DeclareOption{spaceforface}{
\spaceforfacetrue
}
\DeclareOption{overviewatsection}{
\overviewatsectiontrue
}
\DeclareOption{showsubsectionsatfirstoverview}{
\showsubsectionsatfirstoverviewtrue
}
\ExecuteOptions{en,small,helvet}
\ExecuteOptions{en,bigfoot,helvet}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}
@ -91,12 +73,10 @@
%
% onlytextwidth allows columns to appear only within the margins.
\LoadClass[17pt,utf8,onlytextwidth]{beamer}
% \renewcommand{\normalsize}{20pt}
\renewcommand{\normalsize}{\fontsize{18pt}{24pt}\selectfont}
% If German language is used, the babel package is required.
% For English, it is not required, but it ensures consistent hyphenation and date formats.
% Babel-Paket wird nur bei deutscher Sprache benötigt
\ifgerman
\RequirePackage[ngerman]{babel}
\RequirePackage[ngerman]{babel}
\fi
\RequirePackage{csquotes}
\RequirePackage{hyperref}
@ -111,7 +91,7 @@
\RequirePackage{helvet}
\RequirePackage[scaled=.92]{beramono}
\RequirePackage{libertineRoman}
\RequirePackage{lmodern}
% Semibold
\DeclareRobustCommand{\sbseries}{\fontseries{sb}\selectfont}
\DeclareTextFontCommand{\textsb}{\sbseries}
@ -128,9 +108,9 @@
\setbeamerfont{framesubtitle}{series=\bfseries,size=\LARGE}
\fi
\setbeamerfont{subtitle}{family*=phv,series=\bfseries,size=\Large} % originally was \normalsize
\setbeamerfont{author}{family*=phv,series=\mdseries,size=\large}
\setbeamerfont{date}{family*=phv,series=\mdseries,size=\large}
\setbeamerfont{subtitle}{family*=phv,series=\bfseries,size=\normalsize}
\setbeamerfont{author}{family*=phv,series=\mdseries,size=\normalsize}
\setbeamerfont{date}{family*=phv,series=\mdseries,size=\normalsize}
% Aufzählungen
\setbeamertemplate{itemize items}[square]
@ -145,7 +125,7 @@
%%
%%
%% Frame-Layout
%% Folien-Layout
%%
% Seitenverhältnis
@ -171,7 +151,7 @@
\newlength{\kitrowsep}
\setlength{\kitrowsep}{0.6cm}
% Position of the vertical helper lines
% Position der vertikalen Hilfslinien
\newlength{\kitcolumnoneleft}
\setlength{\kitcolumnoneleft}{\kitoutermargin}
\newlength{\kitcolumnoneright}
@ -228,7 +208,7 @@
\newlength{\kitrowfivebottom}
\setlength{\kitrowfivebottom}{\dimexpr\kitoutermargin+5\kitrow+4\kitrowsep\relax}
% Width of elements that span multiple columns
% Breite von Elementen, die mehrere Spalten umfassen
\newlength{\kitonecolumn}
\setlength{\kitonecolumn}{\kitcolumn}
\newlength{\kittwocolumns}
@ -242,7 +222,7 @@
\newlength{\kitsixcolumns}
\setlength{\kitsixcolumns}{\dimexpr6\kitcolumn+5\kitcolumnsep\relax}
% Height of elements that span multiple rows
% Breite von Elementen, die mehrere Zeilen umfassen
\newlength{\kitonerow}
\setlength{\kitonerow}{\kitrow}
\newlength{\kittworows}
@ -254,7 +234,8 @@
\newlength{\kitfiverows}
\setlength{\kitfiverows}{\dimexpr5\kitrow+4\kitrowsep\relax}
% Background grid visible
% Hintergrund-Raster sichtbar / Background grid visible
% Nach Vorlagen-pptx
\defbeamertemplate{background canvas}{kitgrid}{
\begin{pgfpicture}{0pt}{0pt}{\paperwidth}{\paperheight}
% horizontal
@ -309,14 +290,8 @@
\end{pgfpicture}%
}
% Outside edges
\ifspaceforface
\newlength{\spaceforface}
\setlength{\spaceforface}{\kittwocolumns}
\setbeamersize{text margin left=\kitoutermargin,text margin right=\spaceforface}
\else
\setbeamersize{text margin left=\kitoutermargin,text margin right=\kitoutermargin}
\fi
% Ränder außen / Outside edges
\setbeamersize{text margin left=\kitoutermargin,text margin right=\kitoutermargin}
% keine Navigationssymbole
\setbeamertemplate{navigation symbols}{}
@ -334,22 +309,23 @@
\BeforeBeginEnvironment{frame}{%
\restoregeometry
% Section-Navigation wieder auf Paketoption zurücksetzen
% Section navigation reset to package option
\ifsectionnavigationoption\sectionnavigationtrue\else\sectionnavigationfalse\fi
% KIT-Logo rgb
% KIT-Logo bunt
\footlinelogo{rgb}
\setbeamertemplate{frametitle}[KIT 2025]{\paperwidth}
\setbeamertemplate{footline}[KIT 2025]
\setbeamertemplate{background}[default]
\setbeamertemplate{logo}[KIT 2025 title/toc]{kitlogo_rgb} % orignally was {logo}{}
\setbeamertemplate{logo}{} % originally was {logo}{}
\ifkitgrid\setbeamertemplate{background canvas}[kitgrid]\fi
% \setbearmertemplate{fundings}{}
}
%
% Header
%
% #1 = textwidth of the title
% #1 = Breite / textwidth of the title
\defbeamertemplate{frametitle}{KIT 2025}[1]{
% Oberkante Titeltext / Top title text
\begin{textblock*}{#1}[0,0](\kitoutermargin,\kitoutermargin)%
@ -357,13 +333,17 @@
\ifx\insertframesubtitle\@empty\else\\\fi
{\usebeamercolor[fg]{framesubtitle}\usebeamerfont{framesubtitle}\insertframesubtitle}%
\end{textblock*}%
% Rand oben entsprechend KIT-Vorlage
\vspace{37mm}%
}
% #1 = logo
\defbeamertemplate{logo}{KIT 2025 title/toc}[1]{
\begin{textblock*}{28mm}(297.5mm, \kitoutermargin) % originally {24mm}
\includegraphics[width=\linewidth]{logos/#1}
\begin{textblock*}{24mm}(297.5mm, \kitoutermargin) % originally 297.5mm = A4 width - 1.03cm (outer margin)
% setting 297.5mm to 304.3mm will make the KIT logo right-alighed to the margin
\ifdefined\@footlinelogo\else\footlinelogo{rgb}\fi
% KIT
\includegraphics[width=24mm]{logos/#1}
\end{textblock*}
\vspace{37mm}%
}
@ -379,6 +359,10 @@
% The footer is adjusted for two-line titles
\newlength{\kitfooterbaselinecorrection}
% Logo color scheme (rgb, white, black) in footline
\def\footlinelogo#1{\def\@footlinelogo{#1}}
% kleiner Text nur, wenn "smallfoot" gewählt
% small text only if "smallfoot" option is chosen
\ifsmallfooterfont
% 11pt wie in offiziellen Vorlage
@ -478,14 +462,19 @@
\newlength{\kitbottomheight}
\newlength{\kitfootergroupwidth}
% Standardfußzeile Vollbreite
% Standard footer full width
\defbeamertemplate{footline}{KIT 2025}{%
%% die "%" am Ende sind nötig, damit keine Abstände eingefügt werden
%% The "%" at the end are necessary to avoid adding spaces
% Falls kein Gruppenname angegeben, die ganze Breite der Fußzeile für den Titel nutzen.
% If no group name is given, use the entire width of the footer for the title.
\ifdefined\@groupname%
\ifx\@groupname\empty%
\setlength{\kitfootergroupwidth}{0mm}%
\else%
% Falls die Breite des Gruppennamens definiert ist, diese nehmen, sonst 89 mm
% If the width of the group name is defined, use that, otherwise 89 mm
\ifdefined\@groupnamewidth%
\setlength{\kitfootergroupwidth}{\@groupnamewidth}%
@ -497,10 +486,12 @@
\setlength{\kitfootergroupwidth}{0mm}%
\fi%
\usebeamerfont{footer}%
% Baseline so setzen, dass Text ungefähr mittig
% Set the baseline so that the text is approximately centered
\setlength{\kitbottomdepth}{\dimexpr.5\kitbottom-.3\baselineskip\relax}%
\setlength{\kitbottomheight}{\dimexpr.5\kitbottom+.7\baselineskip\relax}%
%
% Ränder rechts und links optisch durch Ausprobieren gesetzt
% Right and left margins set visually by trial and error
\ifsectionnavigation%
\begin{beamercolorbox}[wd=\paperwidth, leftskip=7.5mm, rightskip=7.5mm]{}%
@ -509,21 +500,22 @@
\fi%
\leavevmode%
\kitfootlinepagenumber%
% \kitfootlinedate%
\kitfootlinedate%
% The boxes with the title and group name are vertically centered, so that even two-line texts look nice
% Therefore, they must be shifted down by \kitbottomdepth
\raisebox{-\kitbottomdepth}{%
% The box therefore has a height of \kitbottom and a depth of 0mm
\kitfootlinetitle{\dimexpr285mm-\kitfootergroupwidth\relax}% originally 251mm; added the width of removed date width and reduced logo width
\kitfootlinetitle{\dimexpr251mm-\kitfootergroupwidth\relax}%
\ifdefined\@groupname%
\kitfootlinegroupname%
\fi%
}%
% logo in footline
\kitfootlinelogo{CEL_logo}%
% KIT logo
\ifdefined\@footlinelogo\else\footlinelogo{rgb}\fi
\kitfootlinelogo{kitlogo_\@footlinelogo}%
}
% Footer variable width for slides with full-screen image content: without section navigation, group name, and group logo
% Footer variable width for slides with full-screen image content: without section navigation, without group name
\defbeamertemplate{footline}{KIT 2025 picture}[1]{%
\usebeamerfont{footer}%
% Set the baseline so that the text is approximately centered
@ -531,7 +523,7 @@
\setlength{\kitbottomheight}{\dimexpr.5\kitbottom+.7\baselineskip\relax}%
\leavevmode%
\kitfootlinepagenumber%
% \kitfootlinedate%
\kitfootlinedate%
% The box with the title is vertically centered, so that even two-line texts look nice
% Therefore, they must be shifted down by \kitbottomdepth
\raisebox{-\kitbottomdepth}{%
@ -539,9 +531,10 @@
\kitfootlinetitle{#1}%
}%
% Kein Gruppenname
\hskip\dimexpr285mm-#1\relax% originally 251mm; added the width of removed date width
% This is a picture frame, don't put logo in the footline
% \kitfootlinelogo{CEL_logo}%
\hskip\dimexpr251mm-#1\relax%
% KIT logo
\ifdefined\@footlinelogo\else\footlinelogo{rgb}\fi
\kitfootlinelogo{kitlogo_\@footlinelogo}%
}
% Page nummer
@ -552,18 +545,19 @@
\end{beamercolorbox}%
}
% % Date
% \newcommand{\kitfootlinedate}{%
% \begin{beamercolorbox}[wd=31mm, ht=\kitbottomheight, dp=\kitbottomdepth]{footer}%
% \usebeamerfont{date in head/foot}%
% \strut\insertshortdate%
% \end{beamercolorbox}%
% }
% Datum
\newcommand{\kitfootlinedate}{%
\begin{beamercolorbox}[wd=31mm, ht=\kitbottomheight, dp=\kitbottomdepth]{footer}%
\usebeamerfont{date in head/foot}%
\strut\insertshortdate%
\end{beamercolorbox}%
}
% Autor/Titel in width #1
% Autor/Titel in Breite #1
\newcommand{\kitfootlinetitle}[1]{%
\begin{beamercolorbox}[wd=#1, ht=\kitbottom, dp=0mm]{footer}%
% Content vertically centered; adjustment by 1.5 pt so that with single-line content the baseline of the blocks with page number is exactly hit
% Inhalt vertikal zentrieren; Anpassung um 1.5 pt, damit bei einzeiligem Inhalt genau die Baseline der Blöcke mit Seitenzahl und Datum getroffen wird
% Content vertically centered; adjustment by 1.5 pt so that with single-line content the baseline of the blocks with page number and date is exactly hit
\vbox to\kitbottom{\vfill\vskip\kitfooterbaselinecorrection%
\strut\beamer@shortauthor\ifx\beamer@shortauthor\empty\else: \fi\beamer@shorttitle%
\vfill}%
@ -579,17 +573,17 @@
\end{beamercolorbox}%
}
% Group Logo in footer, file name #1
% KIT-Logo, Dateiname #1
\newcommand{\kitfootlinelogo}[1]{%
\begin{beamercolorbox}[wd=15mm, ht=\kitbottomheight, dp=\kitbottomdepth]{footer}
\raisebox{-8pt}{
\begin{beamercolorbox}[wd=18mm, ht=\kitbottomheight, dp=\kitbottomdepth]{footer}
\raisebox{-4pt}{
\includegraphics[width=\linewidth]{logos/#1}
}
\end{beamercolorbox}%
}
%
% / Footer
% /Fußzeile
%
%
@ -615,38 +609,16 @@
\newcommand{\kitpicturevertical}[1]{
\setbeamertemplate{frametitle}[KIT 2025]{\dimexpr#1-\kitoutermargin-\kitcolumnsep\relax}
\setbeamertemplate{logo}{}
\setbeamertemplate{footline}[KIT 2025 picture]{\dimexpr#1-\kitoutermargin-\kitcolumn\relax}
\newgeometry{top=0.5cm,bottom=0cm,left=\kitoutermargin,right=\dimexpr\paperwidth-#1+\kitcolumnsep\relax}
\setbeamertemplate{background}{\hskip#1\includegraphics[height=\paperheight]{\@titleimage}}
}
% Table of contents
% siehe README.md
\define@key{beamerframe}{picture}{%
\titleimage{#1}
}
\define@key{beamerframe}{kitlogo}[rgb]{%
\titlelogo{#1}
}
%
% /Special-Layouts
%
%
% Table of contents
%
\define@key{beamerframe}{tableofcontents}[blue]{%
\define@key{beamerframe}{tableofcontents}[green]{%
\setbeamertemplate{background}{
\begin{beamercolorbox}[ht=\paperheight,wd=\kitcolumnsixleft]{#1 block}
\end{beamercolorbox}%
\begin{beamercolorbox}[ht=\paperheight,wd=\dimexpr\kitcolumn+\kitoutermargin\relax,center,rightskip=\kitoutermargin]{title logo box}
\ifspaceforface{}
\else\kittitlegrouplogo
\fi
\vskip\kitbottom
\end{beamercolorbox}
}
\setbeamercolor{section in toc}{fg=white}
@ -664,56 +636,32 @@
\end{textblock*}
}
\AtBeginSection{%
\ifoverviewatsection
\ifnum\value{section}=1
{
\begin{frame}[tableofcontents=blue]{Overview}
\ifshowsubsectionsatfirstoverview{
\tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=hide/hide/hide]
}
\else{\tableofcontents[subsectionstyle=hide/hide/hide]}
\fi
\end{frame}
}
\else
{
\begin{frame}[tableofcontents=blue]{Overview}
\tableofcontents[currentsection, subsectionstyle=shaded/show/hide]
\end{frame}
}
\fi
% siehe README.md
\define@key{beamerframe}{picture}{%
\titleimage{#1}
}
%%
%% TOC sections styles
%%
% \setbeamertemplate{section in toc}{{\inserttocsectionnumber.~\inserttocsection}\\[.2em]}
\setbeamertemplate{section in toc}{{-~\inserttocsection}\\[.2em]}
\setbeamercolor{section in toc}{fg=kit-royalblue}
\setbeamerfont{section in toc}{size=\Large, series=\bfseries}
\setbeamerfont{subsection in toc}{size=\large}
\define@key{beamerframe}{kitlogo}[rgb]{%
\titlelogo{#1}
\footlinelogo{#1}
}
%%
%% /TOC sections styles
%%
%
% /Table of contents
%
%
% /Special-Layouts
%
%%
%% /Frame-Layout
%% /Frame-Layout
%%
%%
%% Titel page
%% Titelseite
%%
\def\titleimage#1{\def\@titleimage{#1}}
\def\titlelogo#1{\def\@titlelogo{#1}}
\def\grouplogo#1{\def\@grouplogo{#1}}
\def\fundinglogos#1{\def\@fundinglogos{#1}}
%% Frame options
% vertical Layouts
@ -723,8 +671,7 @@
\setbeamercolor*{title text box}{parent=green block}
\setbeamercolor*{title logo box}{parent=white block}
\setbeamertemplate{background}[KIT 2025 title vertical]
\setbeamertemplate{logo}[KIT 2025 title/toc]{kitlogo_rgb} % logo in the header
% \setbeamertemplate{fundings}[KIT 2025 title vertical]
\setbeamertemplate{logo}[KIT 2025 title/toc]{kitlogo_rgb}
\setbeamertemplate{title page}[KIT 2025 vertical]
\setbeamertemplate{frametitle}{}
\setbeamertemplate{footline}{}
@ -751,7 +698,7 @@
\setbeamertemplate{background}[KIT 2025 title horizontal]
\setbeamertemplate{frametitle}[KIT 2025 title horizontal]
\setbeamertemplate{footline}[KIT 2025 title horizontal]
% KIT-Logo according to definition, otherwise rgb
% KIT-Logo nach Definition, sonst bunt
\ifdefined\@titlelogo\else\titlelogo{rgb}\fi
\setbeamertemplate{logo}[KIT 2025 title/toc]{kitlogo_\@titlelogo}
\setbeamertemplate{title page}[KIT 2025 horizontal]
@ -793,17 +740,18 @@
\newcommand{\kittitletitle}[2]{
\begin{textblock*}{#2}(\kitoutermargin,#1)
\begin{beamercolorbox}[wd=#2]{title}
\usebeamerfont*{title}\inserttitle \ifx\@subtitle\@empty\else\\[.4em]\fi %
\usebeamerfont*{title}\inserttitle \ifx\@subtitle\@empty\else\\[.2em]\fi %
\usebeamerfont*{subtitle}\insertsubtitle %
\end{beamercolorbox}
\end{textblock*}
}
% Author/Date at the bottom with width #1
\newcommand{\kittitleauthors}[1]{
% Untertitle/Author/Date at the bottom with width #1
\newcommand{\kittitlesubtitle}[1]{
\begin{textblock*}{#1}[0,1](\kitoutermargin,\dimexpr\paperheight-\kitbottom\relax)
\begin{beamercolorbox}[wd=#1]{subtitle}
\usebeamerfont*{author}\insertauthor \ifx\@date\@empty\else\\[.4em]\fi %
% \usebeamerfont*{subtitle}\insertsubtitle \ifx\@author\@empty\else\\[.2em]\fi %
\usebeamerfont*{author}\insertauthor \ifx\@date\@empty\else\\[.2em]\fi %
\usebeamerfont*{date}\insertdate %
\end{beamercolorbox}
\end{textblock*}
@ -816,8 +764,7 @@
\newcommand{\kittitlegrouplogo}{
\ifdefined\@grouplogo
\ifx\@grouplogo\empty \else
\includegraphics[width=30mm,keepaspectratio]{logos/\@grouplogo} % originally width was 37mm
% height=20mm,
\includegraphics[width=37mm,height=20mm,keepaspectratio]{logos/\@grouplogo} % originally width was 37mm
\fi % if \grouplogo{} is called, do not include group logo
\else % if \grouplogo is not called at all, show text
\colorbox{kit-purple100!20}{\parbox[b][18mm][c]{35mm}{\color{kit-purple100}\scriptsize\centering
@ -830,44 +777,28 @@
\fi
}
%%
%% Funding logos
%%
\newcommand{\fundinglogo}[1]{
\includegraphics[width=30mm, keepaspectratio]{logos/Funding-logos/#1} % heightg = 20mm
}
%%
%% Title page Template Definitions
%%
\defbeamertemplate{title page}{KIT 2025 vertical}{
\kittitletitle{\kitoutermargin}{\dimexpr\kitthreecolumns-\kitcolumnsep\relax}
\kittitleauthors{\dimexpr\kitthreecolumns-\kitcolumnsep\relax}
\kittitlesubtitle{\dimexpr\kitthreecolumns-\kitcolumnsep\relax}
}
% vertical Layout
\defbeamertemplate{background}{KIT 2025 title vertical}{
\begin{beamercolorbox}[ht=\paperheight,wd=\kitcolumnthreeright]{title text box}
\end{beamercolorbox}%
% \ifspaceforface{}
% \else
\begin{beamercolorbox}[ht=\paperheight,wd=\dimexpr2\kitcolumn+3\kitcolumnsep\relax]{title logo box}%
\ifdefined\@titleimage%
\ifx\@titleimage\empty\else%
\includegraphics[height=\paperheight]{\@titleimage}%
\fi%
\begin{beamercolorbox}[ht=\paperheight,wd=\dimexpr2\kitcolumn+3\kitcolumnsep\relax]{title logo box}%
\ifdefined\@titleimage%
\ifx\@titleimage\empty\else%
\includegraphics[height=\paperheight]{\@titleimage}%
\fi%
\fi%
\end{beamercolorbox}%
% \fi
\begin{beamercolorbox}[ht=\paperheight,wd=\dimexpr\kitcolumn+\kitoutermargin\relax,center,rightskip=\kitoutermargin]{title logo box}
\ifdefined\@fundinglogos%
\ifx\@fundinglogos\empty\else%
\foreach \logo in \@fundinglogos {
\fundinglogo{\logo}
\vskip\kitoutermargin
}
\fi%
\begin{beamercolorbox}[ht=\paperheight,wd=\dimexpr\kitcolumn+\kitoutermargin\relax,right,rightskip=\kitoutermargin]{title logo box}
\kittitlegrouplogo
\vskip\kitbottom
\end{beamercolorbox}
@ -877,7 +808,7 @@
\defbeamertemplate{title page}{KIT 2025 horizontal}{
\kittitletitle{\kitrowfourtop}{\kitfivecolumns}
\kittitleauthors{\kitfivecolumns}
\kittitlesubtitle{\kitfivecolumns}
\frametitle{none} % The upper half is rendered
}
@ -1108,7 +1039,6 @@
\setbeamercolor*{itemize item}{fg=kit-green100}
\setbeamercolor*{itemize subitem}{fg=kit-green100}
\setbeamercolor*{itemize subsubitem}{fg=kit-green100}
\setbeamertemplate{itemize/enumerate subbody begin}{\normalsize}
\setbeamercolor*{block title}{fg=white,bg=kit-green100}
\setbeamercolor*{block title alerted}{use=alerted text,fg=white,bg=alerted text.fg!75!black}
@ -1149,13 +1079,26 @@
%%
%%
%% TOC sections styles
%%
\setbeamertemplate{section in toc}{{\inserttocsectionnumber.~\inserttocsection}\\[.2em]}
\setbeamercolor{section in toc}{fg=kit-royalblue}
\setbeamerfont{section in toc}{size=\Large, series=\bfseries}
\setbeamerfont{subsection in toc}{size=\large}
%%
%% /TOC sections styles
%%
%%
%% Block-Definitions
%% Block-Definitionen
%%
% Original von tex/latex/beamer/beamerinnerthemedefault.sty
% Originally from beamerinnerthemedefault.sty
% colsep* durch colsep ersetzt, damit die Blöcke nicht über das Raster herausragen
% colsep* is replaced by colsep, so that the blocks do not exceed the grid
\defbeamertemplate*{block begin}{KIT 2025}
{

View File

@ -1,20 +1,7 @@
# Changelog
All changes of this template is documented in this file.
## [2025.08.28 v1.0.1] CEL citation style
- Simplified \addreference(s) and \citereference by using \supercite and \fullcite
- TODO: integrate the \supercite from the old CEL template
## [2025.08.22 v1.0.0] Modifications from sdqbeamer.cls
## [2025.08.13 v1.0.0] Modifications from sdqbeamer.cls
- Changed position of subtitle from above authors to below title
- Changed default beamer-class options to en, helvet
- Disabled navigation bar by default
- Changed position and size of subtitle and authors in the title page
- Changed the font size of TOC page
- Added KIT logo in the header
- Changed the logo in the footer to group logo
- Removed date in footer
- Added the option for adding fundinglogos onto the title page
- Added the group logo onto overview page
- Changed the normal fontsize to 19pt
- Added the spaceforface option to leave space on the right for recording
- Added the overviewatsection, showsubsectionsatfirstoverview option
- Added the CEL citation style
- Changed the font size of TOC page

View File

@ -8,11 +8,10 @@ See https://sdq.kastel.kit.edu/wiki/Dokumentvorlagen
Modified by: [Dr.-Ing. Hedongliang Liu]
Compile the `introduction.tex` to see an example.
# Usage
=====
## `Options` for the "CELbeamer" document class
## Options for the `CELbeamer` document class
------------------------------------------
The font size in the footer is set larger by default than in the PowerPoint template. This can be enforced to match the original specification using the `smallfoot` option.
@ -35,24 +34,22 @@ Slide titles are set in Helvetica. If you want Franklin Gothic for everything, y
| Franklin Gothic | `franklin` |
| Helvetica | `helvet` (default) |
### Other options
- The navigation bar in the footer can be enabled using the `navbaron` option.
The navigation bar in the footer can be disabled using the `navbaroff` option.
- With the `kitgrid` option, the grid of the slides can be displayed.
With the `kitgrid` option, the grid of the slides can be displayed.
- The `handout` option turns off the animations. Multiple slides for the same frame will be shown on one slide, or according to the commands in the animation instructions.
E.g., `\only<2|handout:0>{This is not shown in handout mode.}`, `\item<1-|handout:2>{This shows only on the second slide of the frame in the handout mode.}`
- The `spaceforface` option leaves extra space on the right-hand-side of the frame to put presenter's video. The width of the space can be adjusted by changing the <width> in \setlength{\spaceforface}{<width>} in `CELbeamer.cls`.
- The `overviewatsection` option displays the table of contents at each section. Only subsections of the current section is shown.
- The `showsubsectionsatfirstoverview` option shows all the subsections at the first overview. This requires `overviewatsection` option.
Example: `\documentclass[de, navbaron, kitgrid, handout, overviewatsection]{CELbeamer}`
Example: `\documentclass[de,smallfoot, navbaroff]{CELbeamer}`
## Title Slide
Setup: `\begin{frame}[title white vertical, picture=images/...., fundings=]`
-----------
There are several layouts for the title slide. You can select them using frame options:
| Layout | Frame Option |
| ------------------- | ------------------------- |
| green/white vertical| `title white vertical` |
| green/blue vertical | `title white vertical` |
| white horizontal | `title white horizontal` |
| green horizontal | `title green horizontal` |
The image on the title slide can be set with the `picture=` option. For vertical layouts, the image fits the height; for horizontal layouts, it fits the width.
@ -66,11 +63,10 @@ Additionally, for horizontal layouts, you can choose the color of the KIT logo.
Example: `\begin{frame}[title white horizontal, picture=images/palladio_bauplan, kitlogo=black]`
## Special Slides
### Table of content
Special Slides
--------------
For tables of contents, you can specify the option `tableofcontents=<color>`, where `color` can be either `blue` or `green`. The table of contents will then be shown on a fully colored slide.
### Image slides
There are also special layouts for divider slides with large images. You can select them using frame options.
| Vertical image share: | Frame Option |
@ -82,6 +78,16 @@ There are also special layouts for divider slides with large images. You can sel
The image is set with the option `picture=<path>`, where `path` must be given relative to the main document.
Additionally, you can choose the color of the KIT logo in the footer, as it appears above the image.
| KIT logo color | Frame Option |
| -------------- | ------------------------ |
| colored | `kitlogo=rgb` |
| white | `kitlogo=white` |
| black | `kitlogo=black` |
Example: `\begin{frame}[picture 66 vertical,picture=images/palladio_bauplan,kitlogo=black]{Slide with image}`
Logo and Name of Department/KIT Faculty/Institute
-------------------------------------------------
@ -93,7 +99,7 @@ To use your own logo, place the file (e.g., `mylogo.pdf`) in the `logos/` direct
The group name can be set with the following command:
`\groupname{Communication Engineering Lab}`
`\groupname{Software Design and Quality}`
The group name appears in the footer at the bottom right. Long names will be wrapped into two lines. If the group name is left empty (`\groupname{}`), the full width of the footer will be used for author names and title.
@ -122,15 +128,6 @@ https://sdq.kastel.kit.edu/wiki/BibTeX-Literaturlisten
---------------
Document class for CEL presentations in KIT design.
`preambles/packages.tex`
-----------------------
A TeX file to load all the necessary packages. Current version inherient from the old (before 2025) CEL beamer template.
`preambles/macros.tex`
--------------------
A TeX file containing some commonly used macros.
`introduction.tex` includes examples of some predefiend macros.
`logos/`
--------
This directory contains the KIT, CEL, and funding logos in various color variants as PDF.

View File

@ -2,28 +2,28 @@
%% Modified from the KIT-Design by SDQ in February 2025
%% See https://sdq.kastel.kit.edu/wiki/Dokumentvorlagen
%% Modified by: Hedongliang Liu
%% Last modified on: 12.08.2025
%% Last modified on: 14.08.2025
%% Beispiel-Präsentation
\documentclass[en, helvet]{sdqbeamer}
%% default options: bigfoot (12pt), de, franklin
%% other options: smallfoot (11pt), navbaroff, kitgrid
%% Example presentation
\documentclass[]{CELbeamer}
%% default options: en, helvet, bigfoot (12pt)
%% other options: de, franklin, smallfoot (11pt), navbaroff, kitgrid
%% Gruppenlogo, muss im Verezeichnis logos/ liegen
%% falls kein Gruppenlogo gewünscht, bitte \grouplogo{} aufrufen
\grouplogo{sdqlogo}
\grouplogo{CEL_logo.pdf}
%% Gruppenname und Breite (Standard: 89 mm)
\groupname{Software Design and Quality}
\groupname{Communication Engineering Lab (CEL)}
%\groupnamewidth{89mm}
% Beginn der Präsentation
\title[CEL-Slide-template]{Presentation with \emph{CEL} template}
\subtitle{based on the KIT-Design in February 2025}
\author[Doe \& Liu]{\underline{Jone Doe} and Hedongliang Liu}
\title[short title]{Title: Presentation with \emph{CEL} template}
\subtitle{Subtitle: Example Presentation with CEL Template}
\author[Doe, Liu \& Schmalen]{\underline{Jone Doe}, Hedongliang Liu and Laurent Schmalen}
\date[12.\,8.\,2025]{12. August 2025}
\date[]{\today}
% Literatur
@ -40,31 +40,116 @@
\titlepage
\end{frame}
\begin{frame}[title blue vertical, picture=images/palladio_bauplan]
\begin{frame}[title white vertical, picture=images/schloss_back_cut.jpg]
\titlepage
\end{frame}
\begin{frame}[title green horizontal, picture=images/palladio_bauplan, kitlogo=white]
\begin{frame}[title white vertical, picture=images/schloss_schmal.jpg]
\titlepage
\end{frame}
% \begin{frame}[title blue vertical, picture=images/schloss_back_cut.jpg]
% \titlepage
% \end{frame}
% \begin{frame}[title green horizontal, picture=images/schloss, kitlogo=white]
% \titlepage
% \end{frame}
\begin{frame}[title white horizontal, picture=images/schloss, kitlogo=white]
\titlepage
\end{frame}
\begin{frame}[title white horizontal, picture=images/palladio_bauplan, kitlogo=white]
\titlepage
\end{frame}
%Inhaltsverzeichnis
\begin{frame}[tableofcontents=green]{Inhaltsverzeichnis}
% Table of contents
\begin{frame}[tableofcontents=green]{Overview}
\tableofcontents
\end{frame}
\begin{frame}[tableofcontents=blue]{Inhaltsverzeichnis}
\begin{frame}[tableofcontents=blue]{Overview}
\tableofcontents
\end{frame}
\section{Erster Abschnitt}
\subsection{Inhaltselemente}
\section{Basic options}
\subsection{Row/Column Split}
\begin{frame}{Column Split}
\begin{columns}
\column{\kitcolumn}
\begin{standardbox}
Ich bin ein Blindtext.
\end{standardbox}
\column{\kitcolumn}
\begin{highlightbox}
Ich bin ein Blindtext.
\end{highlightbox}
\column{\kitcolumn}
\begin{grayhighlightbox}
This is in a gray highlight box.
\end{grayhighlightbox}
\column{\kitcolumn}
\begin{lightgrayhighlightbox}
This is in a light gray highlight box.
\end{lightgrayhighlightbox}
\column{\kitcolumn}
\begin{standardbox}
Ich bin ein Blindtext.
\end{standardbox}
\column{\kitcolumn}
\begin{standardbox}
Ich bin ein Blindtext.
\end{standardbox}
\end{columns}
\vspace{1em}
\begin{columns}
\column{\kittwocolumns}
\begin{standardbox}
Ich bin ein Blindtext.
\end{standardbox}
\column{\kittwocolumns}
\begin{highlightbox}
Ich bin ein Blindtext.
\end{highlightbox}
\column{\kittwocolumns}
\begin{grayhighlightbox}
Ich bin ein Blindtext.
\end{grayhighlightbox}
\end{columns}
\vspace{1em}
\begin{columns}
\column{\kitthreecolumns}
\begin{standardbox}
This is in a standardbox.
\end{standardbox}
\column{\kitthreecolumns}
\begin{highlightbox}
This is in a highlightbox.
\end{highlightbox}
\end{columns}
\end{frame}
\begin{frame}{Blöcke}{in den KIT-Farben}
\begin{frame}{Row Split}
\begin{columns}
\column{\kitfourcolumns}
\includegraphics[width=\linewidth, trim={0 2cm 0 2cm}, clip]{images/palladio_bauplan.jpg}
\column{\kittwocolumns}
\begin{standardbox}
Beschreibung
\end{standardbox}
\vspace{1em}
\begin{highlightbox}
Dies ist ein Bauplan der berühmten Villa Rotonda.
\end{highlightbox}
\vspace{1em}
\begin{grayhighlightbox}
Foto: Klaus Krogmann
\end{grayhighlightbox}
\end{columns}
\end{frame}
\begin{frame}{Color Blocks}{in the KIT Color Scheme}
\begin{columns}
\column{\kittwocolumns}
\begin{greenblock}{Greenblock}
@ -129,113 +214,19 @@
\column{\kittwocolumns}
\column{\kittwocolumns}
\end{columns}
\end{frame}
\begin{frame}{Auflistungen}
Text
\begin{itemize}
\item Auflistung\\ Umbruch
\item Auflistung
\begin{itemize}
\item Auflistung
\item Auflistung
\end{itemize}
\end{itemize}
\begin{enumerate}
\item Aufzählung
\item Aufzählung
\item Aufzählung
\end{enumerate}
For more colors, see \ref{frame:kit-colors}.
\end{frame}
\begin{frame}{Spalten}
\begin{columns}
\column{\kitcolumn}
\begin{standardbox}
Ich bin ein Blindtext.
\end{standardbox}
\column{\kitcolumn}
\begin{highlightbox}
Ich bin ein Blindtext.
\end{highlightbox}
\column{\kitcolumn}
\begin{grayhighlightbox}
Ich bin ein Blindtext.
\end{grayhighlightbox}
\column{\kitcolumn}
\begin{lightgrayhighlightbox}
Ich bin ein Blindtext.
\end{lightgrayhighlightbox}
\column{\kitcolumn}
\begin{standardbox}
Ich bin ein Blindtext.
\end{standardbox}
\column{\kitcolumn}
\begin{standardbox}
Ich bin ein Blindtext.
\end{standardbox}
\end{columns}
\vspace{1em}
\begin{columns}
\column{\kittwocolumns}
\begin{standardbox}
Ich bin ein Blindtext.
\end{standardbox}
\column{\kittwocolumns}
\begin{highlightbox}
Ich bin ein Blindtext.
\end{highlightbox}
\column{\kittwocolumns}
\begin{grayhighlightbox}
Ich bin ein Blindtext.
\end{grayhighlightbox}
\end{columns}
\vspace{1em}
\begin{columns}
\column{\kitthreecolumns}
\begin{standardbox}
Ich bin ein Blindtext.
\end{standardbox}
\column{\kitthreecolumns}
\begin{highlightbox}
Ich bin ein Blindtext.
\end{highlightbox}
\end{columns}
\end{frame}
\begin{frame}{Spalten}
\begin{columns}
\column{\kitfourcolumns}
\includegraphics[width=\linewidth, trim={0 2cm 0 2cm}, clip]{images/palladio_bauplan.jpg}
\column{\kittwocolumns}
\begin{standardbox}
Beschreibung
\end{standardbox}
\vspace{1em}
\begin{highlightbox}
Dies ist ein Bauplan der berühmten Villa Rotonda.
\end{highlightbox}
\vspace{1em}
\begin{grayhighlightbox}
Foto: Klaus Krogmann
\end{grayhighlightbox}
\end{columns}
\end{frame}
\section{Spezialframes}
\begin{frame}[picture 66 vertical,picture=images/palladio_bauplan,kitlogo=black]{Folie mit Bild auf $\frac{2}{3}$ Größe}
\subsection{Spezial Frames}
\begin{frame}[picture 66 vertical,picture=images/palladio_bauplan,kitlogo=black]{Slide with Picture in $\frac{2}{3}$ Size}
\lipsum[1][1-8]
\end{frame}
\begin{frame}[picture 50 vertical,picture=images/palladio_bauplan,kitlogo=black]{Folie mit Bild auf halber Größe}
\begin{frame}[picture 50 vertical,picture=images/palladio_bauplan,kitlogo=black]{Slide with Picture in $\frac{1}{2}$ Size}
\lipsum[1][1-16]
\end{frame}
\begin{frame}[picture 33 vertical,picture=images/palladio_bauplan,kitlogo=white]{Folie mit Bild auf $\frac{1}{3}$ Größe}
\begin{frame}[picture 33 vertical,picture=images/palladio_bauplan,kitlogo=white]{Slide with Picture in $\frac{1}{3}$ Size}
\begin{columns}
\column{\kittwocolumns}
\lipsum[1][1-8]
@ -244,46 +235,67 @@
\end{columns}
\end{frame}
\begin{frame}[picture vertical=20,picture=images/palladio_bauplan,kitlogo=white]{Folie mit Bild auf variabler Größe (20 \%)}
\begin{frame}[picture vertical=20,picture=images/palladio_bauplan,kitlogo=white]{Slide with Picture in Variable Size (20\%)}
\lipsum[1][1-16]
\end{frame}
\section{Titel-/Fußzeile}
\subsection{Title and Footer}
\begin{frame}
Bei Frames ohne Titel wird die Kopfzeile nicht angezeigt, und
der freie Platz kann für Inhalte genutzt werden.
% Bei Frames ohne Titel wird die Kopfzeile nicht angezeigt, und
% der freie Platz kann für Inhalte genutzt werden.
With frames without a title, the header is not displayed, and the free space can be used for content.
\end{frame}
\begin{frame}[plain]
Bei Frames mit Option \texttt{[plain]} werden weder Kopf- noch Fußzeile angezeigt.
% Bei Frames mit Option \texttt{[plain]} werden weder Kopf- noch Fußzeile angezeigt.
With frames with the option \texttt{[plain]}, neither header nor footer are displayed.
\end{frame}
\begin{frame}[t]{Beispielinhalt}
Bei Frames mit Option \texttt{[t]} werden die Inhalte nicht vertikal zentriert, sondern an der Oberkante begonnen.
\begin{frame}[t]{Example}
% Bei Frames mit Option \texttt{[t]} werden die Inhalte nicht vertikal zentriert, sondern an der Oberkante begonnen.
With frames with the option \texttt{[t]}, the content is not vertically centered but started at the top edge.
\end{frame}
\begin{frame}{Beispielinhalt: Literatur}
\begin{frame}{Example: Literature}
Literaturzitat: \cite{klare2021jss}
\end{frame}
\section{Mode Options}
\subsection{Handout Mode}
\subsection{Face-to-Face Mode}
\begin{frame}{Itemize List}
Text
\begin{itemize}
\item Item\\ new line
\item Item
\begin{itemize}
\item Item
\item Item
\end{itemize}
\end{itemize}
\begin{enumerate}
\item enumeration
\item enumeration
\item enumeration
\end{enumerate}
\end{frame}
\begin{frame}{Footnotes}
\lipsum[1][1-8]\footnote{Dies ist eine Fußnote.}
\end{frame}
\appendix
\beginbackup
\begin{frame}{Literatur}
\begin{exampleblock}{Backup-Teil}
Folien, die nach \texttt{\textbackslash beginbackup} eingefügt werden, zählen nicht in die Gesamtzahl der Folien.
\begin{exampleblock}{Backup Parts}
% Folien, die nach \texttt{\textbackslash beginbackup} eingefügt werden, zählen nicht in die Gesamtzahl der Folien.
Slides that are inserted after \texttt{\textbackslash beginbackup} do not count towards the total number of slides.
\end{exampleblock}
\printbibliography
\end{frame}
\section{Farben}
%% ----------------------------------------
%% | Test-Folie mit definierten Farben |
%% ----------------------------------------
\begin{frame}{Farbpalette}
\begin{frame}{KIT Color Palette}\label{frame:kit-colors}
\newcommand{\csq}{\strut\hskip1.2em}
\begin{tabular}{rccccccccccccc}
& 100 & 90 & 80 & 70 & 60 & 50 & 40 & 30 & 25 & 20 & 15 & 10 & 5\\
@ -439,9 +451,7 @@
& \colorbox{kit-cyan5}{\csq}\\[.5em]
\end{tabular}
\end{frame}
%% ----------------------------------------
%% | /Test-Folie mit definierten Farben |
%% ----------------------------------------
\backupend
\end{document}

File diff suppressed because it is too large Load Diff