diff --git a/sdqbeamer.cls b/CELbeamer.cls similarity index 89% rename from sdqbeamer.cls rename to CELbeamer.cls index 8854d1d..fa5174e 100644 --- a/sdqbeamer.cls +++ b/CELbeamer.cls @@ -1,11 +1,14 @@ -%% Vorlage für Präsentationen mit LaTeX Beamer im KIT-Design -%% entsprechend den Gestaltungsrichtlinien vom Februar 2025 -%% -%% Siehe https://sdq.kastel.kit.edu/wiki/Dokumentvorlagen - +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% CELbeamer.cls +%% Provided as a template class for presentations +%% Modified from sdqbeamer.cls (v4.0.0, 2025 Feb.) in KIT-Design +%% See changelog.md for detailed changes +%% Last modified on: 15.08.2025 +%% For the original sdqbeamer.cls, see https://sdq.kastel.kit.edu/wiki/Dokumentvorlagen +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{sdqbeamer}[2025-03-01 v4.0.0 SDQ Beamer class] +\ProvidesClass{CELbeamer}[2025-08-15 v1.0.0 CEL Beamer class] \RequirePackage[utf8]{inputenc} \RequirePackage[T1]{fontenc} @@ -21,13 +24,13 @@ \def\groupname#1{\def\@groupname{#1}} \def\groupnamewidth#1{\def\@groupnamewidth{#1}} -% siehe README.md -\DeclareOption{de}{ - \germantrue - \PassOptionsToPackage{autostyle}{csquotes} - } +% see README.md \DeclareOption{en}{ \germanfalse + \PassOptionsToPackage{autostyle}{csquotes} + } +\DeclareOption{de}{ + \germantrue } \DeclareOption{navbaroff}{ \sectionnavigationoptionfalse @@ -48,14 +51,13 @@ \kitgridtrue } -\ExecuteOptions{de,bigfoot,franklin} +\ExecuteOptions{en,bigfoot,helvet} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}} \ProcessOptions\relax -% In der PowerPoint-Vorlage ist die Schrift 16 pt groß. Dies wird von LaTeX aber standardmäßig nicht angeboten. -% Daher wurden 17 pt als Standardschriftgröße gewählt. Das ergibt: +% The standard font sizes are: % % \tiny = 10pt % \scriptsize = 11pt @@ -69,7 +71,7 @@ % \Huge = 48pt % \HUGE = 60pt % -% onlytextwidth läßt Spalten nur innerhalb der Ränder erscheinen. +% onlytextwidth allows columns to appear only within the margins. \LoadClass[17pt,utf8,onlytextwidth]{beamer} % Babel-Paket wird nur bei deutscher Sprache benötigt @@ -232,7 +234,7 @@ \newlength{\kitfiverows} \setlength{\kitfiverows}{\dimexpr5\kitrow+4\kitrowsep\relax} -% Hintergrund-Raster sichtbar +% Hintergrund-Raster sichtbar / Background grid visible % Nach Vorlagen-pptx \defbeamertemplate{background canvas}{kitgrid}{ \begin{pgfpicture}{0pt}{0pt}{\paperwidth}{\paperheight} @@ -288,13 +290,15 @@ \end{pgfpicture}% } -% Ränder außen +% Ränder außen / Outside edges \setbeamersize{text margin left=\kitoutermargin,text margin right=\kitoutermargin} % keine Navigationssymbole \setbeamertemplate{navigation symbols}{} \setbeamercovered{invisible} -\beamer@compresstrue % Miniframes (Navigations-Punkte) für Subsections immer in einer Zeile, ohne Umbrüche +\beamer@compresstrue +% Miniframes (Navigations-Punkte) für Subsections immer in einer Zeile, ohne Umbrüche +% Miniframes (navigation points) for subsections always in one line, without breaks % Mehrere Folienlayouts erlauben % siehe https://stackoverflow.com/questions/3158665/having-multiple-slide-templates-in-latex-beamer @@ -306,23 +310,24 @@ \BeforeBeginEnvironment{frame}{% \restoregeometry % Section-Navigation wieder auf Paketoption zurücksetzen + % Section navigation reset to package option \ifsectionnavigationoption\sectionnavigationtrue\else\sectionnavigationfalse\fi % KIT-Logo bunt \footlinelogo{rgb} \setbeamertemplate{frametitle}[KIT 2025]{\paperwidth} \setbeamertemplate{footline}[KIT 2025] \setbeamertemplate{background}[default] - \setbeamertemplate{logo}{} + \setbeamertemplate{logo}{} % originally was {logo}{} \ifkitgrid\setbeamertemplate{background canvas}[kitgrid]\fi } % ┌───────────┐ -% │ Kopfzeile │ +% │ Header │ % └───────────┘ -% #1 = Breite +% #1 = Breite / textwidth of the title \defbeamertemplate{frametitle}{KIT 2025}[1]{ - % Oberkante Titeltext + % Oberkante Titeltext / Top title text \begin{textblock*}{#1}[0,0](\kitoutermargin,\kitoutermargin)% {\usebeamercolor[fg]{frametitle}\usebeamerfont{frametitle}\insertframetitle}% \ifx\insertframesubtitle\@empty\else\\\fi @@ -334,27 +339,31 @@ % #1 = logo \defbeamertemplate{logo}{KIT 2025 title/toc}[1]{ - \begin{textblock*}{24mm}(297.5mm,\kitoutermargin) + \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}% } % ┌────────────┐ -% │ /Kopfzeile │ +% │ /Header │ % └────────────┘ % ┌──────────┐ -% │ Fußzeile │ +% │ Footer │ % └──────────┘ -% Anpassung der Fußzeile für zweizeilige Titel +% The footer is adjusted for two-line titles \newlength{\kitfooterbaselinecorrection} -% KIT-Logo (rgb, white, black) +% 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 \setbeamerfont{footer}{size=\scriptsize} @@ -366,9 +375,9 @@ \fi % -% Section-Punkte, die mit der Schriftgröße skalieren +% Section points that scale with the font size % -% angepaßt von https://tex.stackexchange.com/questions/292070/beamer-navigation-bar-too-long +% adjusted from https://tex.stackexchange.com/questions/292070/beamer-navigation-bar-too-long \defbeamertemplate{mini frame}{scaled circle} {% \usebeamerfont{footer}% @@ -444,7 +453,7 @@ \setbeamertemplate{mini frame in current subsection}[scaled circle] %% -%% /Section-Punkte, die mit der Schriftgröße skalieren +%% /Section points that scale with the font size %% \setbeamerfont{page number in head/foot}{series=\bfseries} @@ -454,14 +463,19 @@ \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}% \else% @@ -473,10 +487,12 @@ \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]{}% \insertnavigation{\dimexpr\paperwidth-15mm\relax}% @@ -485,10 +501,10 @@ \leavevmode% \kitfootlinepagenumber% \kitfootlinedate% - % Die Boxen mit dem Titel und dem Gruppennamen sind vertikal zentriert, damit auch zweizeilige Texte schön aussehen - % Daher müssen sie um \kitbottomdepth nach unten verschoben werden + % 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}{% - % Die Box hat daher auch Höhe \kitbottom und Tiefe 0mm + % The box therefore has a height of \kitbottom and a depth of 0mm \kitfootlinetitle{\dimexpr251mm-\kitfootergroupwidth\relax}% \ifdefined\@groupname% \kitfootlinegroupname% @@ -499,17 +515,17 @@ \kitfootlinelogo{kitlogo_\@footlinelogo}% } -% Fußzeile variabler Breite für Folien mit vollflächigem Bild-Anteil: ohne Section-Navigation, ohne Gruppennamen +% Footer variable width for slides with full-screen image content: without section navigation, without group name \defbeamertemplate{footline}{KIT 2025 picture}[1]{% \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}% \leavevmode% \kitfootlinepagenumber% \kitfootlinedate% - % Die Box mit dem Titel ist sind vertikal zentriert, damit auch zweizeilige Texte schön aussehen - % Daher müssen sie um \kitbottomdepth nach unten verschoben werden + % 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}{% % Die Box hat daher auch Höhe \kitbottom und Tiefe 0mm \kitfootlinetitle{#1}% @@ -521,7 +537,7 @@ \kitfootlinelogo{kitlogo_\@footlinelogo}% } -% Seitennummer +% Page nummer \newcommand{\kitfootlinepagenumber}{% \begin{beamercolorbox}[wd=\dimexpr\kitoutermargin+16mm\relax, ht=\kitbottomheight, dp=\kitbottomdepth, leftskip=\kitoutermargin]{footer} \usebeamerfont{page number in head/foot}% @@ -541,6 +557,7 @@ \newcommand{\kitfootlinetitle}[1]{% \begin{beamercolorbox}[wd=#1, ht=\kitbottom, dp=0mm]{footer}% % 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}% @@ -570,10 +587,10 @@ % └───────────┘ % ┌─────────────────┐ -% │ Spezial-Layouts │ +% │ Special-Layouts │ % └─────────────────┘ -% Text/Bild vertikal geteilt +% Text/image vertically split \define@key{beamerframe}{picture 33 vertical}[true]{% \kitpicturevertical{\kitcolumnfiveleft} } @@ -597,7 +614,7 @@ \setbeamertemplate{background}{\hskip#1\includegraphics[height=\paperheight]{\@titleimage}} } -% Inhaltsverzeichnis +% Table of contents \define@key{beamerframe}{tableofcontents}[green]{% \setbeamertemplate{background}{ @@ -614,7 +631,7 @@ \defbeamertemplate{frametitle}{KIT 2025 title in toc}{ \begin{textblock*}{\kitcolumn}(\kitoutermargin,\kitoutermargin) \begin{beamercolorbox}[wd=\kitcolumn]{} - \usebeamerfont*{frametitle}{\large\color{white}\insertframetitle} + \usebeamerfont*{frametitle}{\color{white}\insertframetitle} % 2025KIT-template has \large \end{beamercolorbox} \end{textblock*} } @@ -630,11 +647,11 @@ } % ┌──────────────────┐ -% │ /Spezial-Layouts │ +% │ /Special-Layouts │ % └──────────────────┘ %% ┏━━━━━━━━━━━━━━━━┓ -%% ┃ /Folien-Layout ┃ +%% ┃ /Frame-Layout ┃ %% ┗━━━━━━━━━━━━━━━━┛ %% ┏━━━━━━━━━━━━┓ @@ -645,9 +662,9 @@ \def\titlelogo#1{\def\@titlelogo{#1}} \def\grouplogo#1{\def\@grouplogo{#1}} -%% Frame-Optionen +%% Frame options -% vertikale Layouts +% vertical Layouts \define@key{beamerframe}{title white vertical}[true]{% \setbeamercolor*{title}{parent=title on green} \setbeamercolor*{subtitle}{parent=subtitle on green} @@ -672,7 +689,7 @@ \setbeamertemplate{footline}{} } -% horizontale Layouts +% horizontal Layouts \define@key{beamerframe}{title green horizontal}[true]{% \setbeamercolor*{title}{parent=title on green} \setbeamercolor*{subtitle}{parent=subtitle on green} @@ -702,15 +719,15 @@ } %% -%% Absolut positionierte Elemente +%% Absolute position elements %% % % From textpos documentation (https://ctan.org/pkg/textpos) % -% \begin{textblock}{}[,](,) -% The coordinates and are fractions of the width and height of the text +% \begin{textblock}{}[,](,) +% The coordinates and are fractions of the width and height of the text % box, respectively, and state that the box is to be placed so that the reference point -% (,) within the box is to be placed at the point (,) on the page. +% (,) within the box is to be placed at the point (,) on the page. % KIT-Logo \newcommand{\kittitlekitlogo}[1]{ @@ -719,36 +736,37 @@ \end{textblock*} } -% Titel auf vertikaler Höhe #1 mit Breite #2 +% Title at vertical height #1 with width #2 \newcommand{\kittitletitle}[2]{ \begin{textblock*}{#2}(\kitoutermargin,#1) \begin{beamercolorbox}[wd=#2]{title} - \usebeamerfont*{title}\inserttitle + \usebeamerfont*{title}\inserttitle \ifx\@subtitle\@empty\else\\[.2em]\fi % + \usebeamerfont*{subtitle}\insertsubtitle % \end{beamercolorbox} \end{textblock*} } -% Untertitel/Autor/Datum an Unterkante mit Breite #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*{subtitle}\insertsubtitle \ifx\@author\@empty\else\\[.2em]\fi % - \usebeamerfont*{author}\insertauthor \ifx\@date\@empty\else~\textbar~\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*} } %% -%% Gruppenlogo +%% Group logo %% \newcommand{\kittitlegrouplogo}{ \ifdefined\@grouplogo \ifx\@grouplogo\empty \else - \includegraphics[width=37mm,height=20mm,keepaspectratio]{logos/\@grouplogo} - \fi % falls \grouplogo{} aufgerufen wird, kein Gruppenlogo einbinden - \else % falls \grouplogo gar nicht aufgerufen wurde, Text anzeigen + \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 \ifgerman Bitte Logo über \texttt{\textbackslash grouplogo\{\}} festlegen. @@ -760,7 +778,7 @@ } %% -%% Template-Definitionen +%% Title page Template Definitions %% \defbeamertemplate{title page}{KIT 2025 vertical}{ @@ -768,7 +786,7 @@ \kittitlesubtitle{\dimexpr\kitthreecolumns-\kitcolumnsep\relax} } -% vertikales Layout +% vertical Layout \defbeamertemplate{background}{KIT 2025 title vertical}{ \begin{beamercolorbox}[ht=\paperheight,wd=\kitcolumnthreeright]{title text box} @@ -791,10 +809,10 @@ \defbeamertemplate{title page}{KIT 2025 horizontal}{ \kittitletitle{\kitrowfourtop}{\kitfivecolumns} \kittitlesubtitle{\kitfivecolumns} - \frametitle{none} % Damit die obere Hälfte gerendert wird + \frametitle{none} % The upper half is rendered } -% Im horizontalen Modus ist der Frametitle die obere Hälfte des Titels +% In horizontal mode, the frametitle is the upper half of the title \defbeamertemplate{frametitle}{KIT 2025 title horizontal}{ \begin{beamercolorbox}[ht=\kitrowthreebottom,wd=\paperwidth]{title logo box}% \ifdefined\@titleimage% @@ -805,7 +823,7 @@ \end{beamercolorbox}% } -% Im horizontalen Modus ist die Footline die untere Hälfte des Titels +% In horizontal mode, the footline is the lower half of the title \defbeamertemplate{footline}{KIT 2025 title horizontal}{ \begin{beamercolorbox}[ht=\dimexpr2\kitrowsep+2\kitrow+\kitbottom\relax,wd=\paperwidth,right,rightskip=\kitoutermargin]{title logo box}% \kittitlegrouplogo% @@ -814,13 +832,13 @@ } %% ┏━━━━━━━━━━━━━┓ -%% ┃ /Titelseite ┃ +%% ┃ /Titel page ┃ %% ┗━━━━━━━━━━━━━┛ %% ┏━━━━━━━━┓ -%% ┃ Farben ┃ +%% ┃ Colors ┃ %% ┗━━━━━━━━┛ -%% KIT-Farbschema +%% KIT-Color scheme % KIT color green : \definecolor{kit-green}{RGB}{0, 150, 130} @@ -875,7 +893,7 @@ \definecolor{kit-iceblue50}{RGB}{168, 185, 196} \definecolor{kit-iceblue30}{RGB}{218, 225, 230} -% KIT color red : +% KIT color red : \definecolor{kit-red}{RGB}{162, 34, 35} \colorlet{kit-red100}{kit-red} \colorlet{kit-red90}{kit-red!90!white} @@ -891,7 +909,7 @@ \colorlet{kit-red10}{kit-red!10!white} \colorlet{kit-red5}{kit-red!5!white} -% KIT color yellow : +% KIT color yellow : \definecolor{kit-yellow}{RGB}{252, 229, 0} \colorlet{kit-yellow100}{kit-yellow} \colorlet{kit-yellow90}{kit-yellow!90!white} @@ -907,7 +925,7 @@ \colorlet{kit-yellow10}{kit-yellow!10!white} \colorlet{kit-yellow5}{kit-yellow!5!white} -% KIT color orange : +% KIT color orange : \definecolor{kit-orange}{RGB}{223, 155, 27} \colorlet{kit-orange100}{kit-orange} \colorlet{kit-orange90}{kit-orange!90!white} @@ -923,7 +941,7 @@ \colorlet{kit-orange10}{kit-orange!10!white} \colorlet{kit-orange5}{kit-orange!5!white} -% KIT color lightgreen : +% KIT color lightgreen : \definecolor{kit-lightgreen}{RGB}{140, 182, 60} \colorlet{kit-lightgreen100}{kit-lightgreen} \colorlet{kit-lightgreen90}{kit-lightgreen!90!white} @@ -940,7 +958,7 @@ \colorlet{kit-lightgreen5}{kit-lightgreen!5!white} -% KIT color purple : +% KIT color purple : \definecolor{kit-purple}{RGB}{163, 16, 124} \colorlet{kit-purple100}{kit-purple} \colorlet{kit-purple90}{kit-purple!90!white} @@ -956,7 +974,7 @@ \colorlet{kit-purple10}{kit-purple!10!white} \colorlet{kit-purple5}{kit-purple!5!white} -% KIT color brown : +% KIT color brown : \definecolor{kit-brown}{RGB}{167, 130, 46} \colorlet{kit-brown100}{kit-brown} \colorlet{kit-brown90}{kit-brown!90!white} @@ -972,7 +990,7 @@ \colorlet{kit-brown10}{kit-brown!10!white} \colorlet{kit-brown5}{kit-brown!5!white} -% KIT color cyan : +% KIT color cyan : \definecolor{kit-cyan}{RGB}{35, 161, 224} \colorlet{kit-cyan100}{kit-cyan} \colorlet{kit-cyan90}{kit-cyan!90!white} @@ -988,7 +1006,7 @@ \colorlet{kit-cyan10}{kit-cyan!10!white} \colorlet{kit-cyan5}{kit-cyan!5!white} -% KIT color gray : +% KIT color gray : \definecolor{kit-gray}{RGB}{0, 0, 0} \colorlet{kit-gray100}{kit-gray} \colorlet{kit-gray90}{kit-gray!90!white} @@ -1057,20 +1075,31 @@ \setbeamercolor{section in head/foot}{fg=kit-royalblue100!50!white} %% ┏━━━━━━━━━┓ -%% ┃ /Farben ┃ +%% ┃ /Colors ┃ %% ┗━━━━━━━━━┛ + +%% ┏━━━━━━━━━━━━━━━━━━━━━┓ +%% ┃ TOC sections styles ┃ +%% ┗━━━━━━━━━━━━━━━━━━━━━┛ \setbeamertemplate{section in toc}{{\inserttocsectionnumber.~\inserttocsection}\\[.2em]} \setbeamercolor{section in toc}{fg=kit-royalblue} -\setbeamerfont{section in toc}{size=\huge, series=\bfseries} +\setbeamerfont{section in toc}{size=\Large, series=\bfseries} \setbeamerfont{subsection in toc}{size=\large} +%% ┏━━━━━━━━━━━━━━━━━━━━━━┓ +%% ┃ /TOC sections styles ┃ +%% ┗━━━━━━━━━━━━━━━━━━━━━━┛ + %% ┏━━━━━━━━━━━━━━━━━━━━┓ %% ┃ 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} { \par\vskip\medskipamount% @@ -1225,7 +1254,7 @@ \endgroup} %% -%% Boxen +%% Boxs %% \newenvironment<>{standardbox}{% @@ -1260,7 +1289,7 @@ %% ┃ /Block-Definitionen ┃ %% ┗━━━━━━━━━━━━━━━━━━━━━┛ -%% Appendix-Seiten zählen nicht in die Gesamtfolienzahl +%% Appendix pages do not count in the total number of slides \newcommand{\beginbackup}{ \newcounter{framenumbervorappendix} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..4aa2493 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,7 @@ +# Changelog +All changes of this template is documented in this file. + +## [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 +- Changed the font size of TOC page \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..bad6a16 --- /dev/null +++ b/README.md @@ -0,0 +1,145 @@ +LaTeX Template for Presentations +================================ + +This package serves as a template for presentations in the [Corporate Design of KIT](https://kit-cd.sts.kit.edu/praesentationen.php) (version from February 2025). + +It is modified from the template developed by the research group [DSiS](https://dsis.kastel.kit.edu) at the KIT Faculty of Computer Science and is based on [LaTeX Beamer](https://ctan.org/pkg/beamer). +See https://sdq.kastel.kit.edu/wiki/Dokumentvorlagen + +Modified by: [Dr.-Ing. Hedongliang Liu] + +# Usage +===== + +## 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. + +| Footer font size | Option | +| --------------------- | -------------------- | +| slightly larger (12pt) | `bigfoot` (default) | +| KIT specification (11pt) | `smallfoot` | + +German and English are available as languages. The language selection automatically sets the appropriate formats (e.g., quotation marks, date). + +| Language | Option | +| --------- | --------------- | +| German | `de` | +| English | `en` (default) | + +Slide titles are set in Helvetica. If you want Franklin Gothic for everything, you can define this. + +| Title font | Option | +| ----------------- | --------------------- | +| Franklin Gothic | `franklin` | +| Helvetica | `helvet` (default) | + +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. + +Example: `\documentclass[de,smallfoot, navbaroff]{CELbeamer}` + +## Title Slide +----------- +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. + +Additionally, for horizontal layouts, you can choose the color of the KIT logo. + +| KIT logo color | Frame Option | +| -------------- | ------------------------ | +| colored | `kitlogo=rgb` | +| white | `kitlogo=white` | +| black | `kitlogo=black` | + +Example: `\begin{frame}[title white horizontal, picture=images/palladio_bauplan, kitlogo=black]` + +Special Slides +-------------- +For tables of contents, you can specify the option `tableofcontents=`, where `color` can be either `blue` or `green`. The table of contents will then be shown on a fully colored slide. + +There are also special layouts for divider slides with large images. You can select them using frame options. + +| Vertical image share: | Frame Option | +| --------------------- | ------------------------------ | +| 33% | `picture 33 vertical` | +| 50% | `picture 50 vertical` | +| 66% | `picture 66 vertical` | +| arbitrary | `picture vertical=`| + +The image is set with the option `picture=`, 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 +------------------------------------------------- + +The logo at the bottom right of the title slide can be set with the following command: + +`\grouplogo{mylogo}` (without file extension) + +To use your own logo, place the file (e.g., `mylogo.pdf`) in the `logos/` directory and adjust the command. If no logo should be included, use `\grouplogo{}`. + +The group name can be set with the following command: + +`\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. + +The default width of the group name is 89 mm. It can be changed with + +`\groupnamewidth{120mm}` + +which also adjusts the width of the author and title text field accordingly. Line breaks are possible with `\\`. Instead of two-line footers, the `smallfoot` option may be preferable. + +General LaTeX +------------- +See https://sdq.kastel.kit.edu/wiki/LaTeX + +Directory Structure +=================== +`presentation.tex` +------------------ +Main file of the LaTeX document. + +`presentation.bib` +------------------ +Sample file for BibTeX references +https://sdq.kastel.kit.edu/wiki/BibTeX-Literaturlisten + +`CELbeamer.cls` +--------------- +Document class for CEL presentations in KIT design. + +`logos/` +-------- +This directory contains the KIT, CEL, and funding logos in various color variants as PDF. + +`images/` +--------- +This directory contains the background image for the title slide as JPG. + +`CHANGELOG.md` +-------------- +Documentation of changes in each version. + +`README.md` +----------- +This file. \ No newline at end of file diff --git a/logos/CEL_logo.pdf b/logos/CEL_logo.pdf new file mode 100644 index 0000000..a3027f0 Binary files /dev/null and b/logos/CEL_logo.pdf differ diff --git a/presentation.tex b/presentation.tex index 25c2b65..2828238 100644 --- a/presentation.tex +++ b/presentation.tex @@ -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}