From 8919861d2d055bc378173a8ecf1b71bfc677fcc6 Mon Sep 17 00:00:00 2001 From: Hedongliang Liu Date: Wed, 13 Aug 2025 23:14:39 +0200 Subject: [PATCH] see diff in CHANGELOG.nd --- CELbeamer.cls | 68 +++++++++++++++++++++--------------------------- CHANGELOG.md | 5 +++- README.md | 12 +-------- presentation.tex | 13 ++++----- 4 files changed, 42 insertions(+), 56 deletions(-) diff --git a/CELbeamer.cls b/CELbeamer.cls index fa5174e..e7cc230 100644 --- a/CELbeamer.cls +++ b/CELbeamer.cls @@ -309,15 +309,14 @@ \BeforeBeginEnvironment{frame}{% \restoregeometry - % Section-Navigation wieder auf Paketoption zurücksetzen % Section navigation reset to package option \ifsectionnavigationoption\sectionnavigationtrue\else\sectionnavigationfalse\fi - % KIT-Logo bunt + % KIT-Logo rgb \footlinelogo{rgb} \setbeamertemplate{frametitle}[KIT 2025]{\paperwidth} \setbeamertemplate{footline}[KIT 2025] \setbeamertemplate{background}[default] - \setbeamertemplate{logo}{} % originally was {logo}{} + \setbeamertemplate{logo}[KIT 2025 title/toc]{kitlogo_rgb} % orignally was {logo}{} \ifkitgrid\setbeamertemplate{background canvas}[kitgrid]\fi } @@ -325,7 +324,7 @@ % │ Header │ % └───────────┘ -% #1 = Breite / textwidth of the title +% #1 = textwidth of the title \defbeamertemplate{frametitle}{KIT 2025}[1]{ % Oberkante Titeltext / Top title text \begin{textblock*}{#1}[0,0](\kitoutermargin,\kitoutermargin)% @@ -339,11 +338,10 @@ % #1 = logo \defbeamertemplate{logo}{KIT 2025 title/toc}[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 + \begin{textblock*}{28mm}(297.5mm, \kitoutermargin) % originally {24mm} \ifdefined\@footlinelogo\else\footlinelogo{rgb}\fi % KIT - \includegraphics[width=24mm]{logos/#1} + \includegraphics[width=\linewidth]{logos/#1} \end{textblock*} \vspace{37mm}% } @@ -462,19 +460,15 @@ \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}% @@ -486,12 +480,10 @@ \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]{}% @@ -500,22 +492,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{\dimexpr251mm-\kitfootergroupwidth\relax}% + \kitfootlinetitle{\dimexpr285mm-\kitfootergroupwidth\relax}% originally 251mm; added the width of removed date width and reduced logo width \ifdefined\@groupname% \kitfootlinegroupname% \fi% }% - % KIT logo - \ifdefined\@footlinelogo\else\footlinelogo{rgb}\fi - \kitfootlinelogo{kitlogo_\@footlinelogo}% + % logo in footline + % \ifdefined\@footlinelogo\else\footlinelogo{rgb}\fi + \kitfootlinelogo{CEL_logo}% originally was {kitlogo_\@footlinelogo} } -% Footer variable width for slides with full-screen image content: without section navigation, without group name +% Footer variable width for slides with full-screen image content: without section navigation, group name, and group logo \defbeamertemplate{footline}{KIT 2025 picture}[1]{% \usebeamerfont{footer}% % Set the baseline so that the text is approximately centered @@ -523,7 +515,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}{% @@ -531,10 +523,10 @@ \kitfootlinetitle{#1}% }% % Kein Gruppenname - \hskip\dimexpr251mm-#1\relax% - % KIT logo - \ifdefined\@footlinelogo\else\footlinelogo{rgb}\fi - \kitfootlinelogo{kitlogo_\@footlinelogo}% + \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 + % \ifdefined\@footlinelogo\else\footlinelogo{rgb}\fi + % \kitfootlinelogo{kitlogo_\@footlinelogo}% } % Page nummer @@ -545,19 +537,18 @@ \end{beamercolorbox}% } -% Datum -\newcommand{\kitfootlinedate}{% - \begin{beamercolorbox}[wd=31mm, ht=\kitbottomheight, dp=\kitbottomdepth]{footer}% - \usebeamerfont{date in head/foot}% - \strut\insertshortdate% - \end{beamercolorbox}% -} +% % Date +% \newcommand{\kitfootlinedate}{% +% \begin{beamercolorbox}[wd=31mm, ht=\kitbottomheight, dp=\kitbottomdepth]{footer}% +% \usebeamerfont{date in head/foot}% +% \strut\insertshortdate% +% \end{beamercolorbox}% +% } -% Autor/Titel in Breite #1 +% Autor/Titel in width #1 \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 + % 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 \vbox to\kitbottom{\vfill\vskip\kitfooterbaselinecorrection% \strut\beamer@shortauthor\ifx\beamer@shortauthor\empty\else: \fi\beamer@shorttitle% \vfill}% @@ -573,10 +564,10 @@ \end{beamercolorbox}% } -% KIT-Logo, Dateiname #1 +% Group Logo in footer, file name #1 \newcommand{\kitfootlinelogo}[1]{% - \begin{beamercolorbox}[wd=18mm, ht=\kitbottomheight, dp=\kitbottomdepth]{footer} - \raisebox{-4pt}{ + \begin{beamercolorbox}[wd=15mm, ht=\kitbottomheight, dp=\kitbottomdepth]{footer} + \raisebox{-8pt}{ \includegraphics[width=\linewidth]{logos/#1} } \end{beamercolorbox}% @@ -609,6 +600,7 @@ \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}} @@ -698,7 +690,7 @@ \setbeamertemplate{background}[KIT 2025 title horizontal] \setbeamertemplate{frametitle}[KIT 2025 title horizontal] \setbeamertemplate{footline}[KIT 2025 title horizontal] - % KIT-Logo nach Definition, sonst bunt + % KIT-Logo according to definition, otherwise rgb \ifdefined\@titlelogo\else\titlelogo{rgb}\fi \setbeamertemplate{logo}[KIT 2025 title/toc]{kitlogo_\@titlelogo} \setbeamertemplate{title page}[KIT 2025 horizontal] diff --git a/CHANGELOG.md b/CHANGELOG.md index 4aa2493..62944b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,4 +4,7 @@ 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 +- Changed the font size of TOC page +- Changed the logo in the footer to group logo +- Removed date in footer +- Added KIT logo in the header \ No newline at end of file diff --git a/README.md b/README.md index bad6a16..6ec9342 100644 --- a/README.md +++ b/README.md @@ -78,16 +78,6 @@ There are also special layouts for divider slides with large images. You can sel 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 ------------------------------------------------- @@ -99,7 +89,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{Software Design and Quality}` +`\groupname{Communication Engineering Lab}` 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. diff --git a/presentation.tex b/presentation.tex index 2828238..3d89626 100644 --- a/presentation.tex +++ b/presentation.tex @@ -5,7 +5,7 @@ %% Last modified on: 14.08.2025 %% Example presentation -\documentclass[]{CELbeamer} +\documentclass[kitgrid]{CELbeamer} %% default options: en, helvet, bigfoot (12pt) %% other options: de, franklin, smallfoot (11pt), navbaroff, kitgrid @@ -15,7 +15,8 @@ %% Gruppenname und Breite (Standard: 89 mm) \groupname{Communication Engineering Lab (CEL)} -%\groupnamewidth{89mm} +% \groupname{} +\groupnamewidth{80mm} % addjust this to change the distance between the group name and the group logo in the footer % Beginn der Präsentation @@ -214,7 +215,7 @@ \column{\kittwocolumns} \column{\kittwocolumns} \end{columns} - For more colors, see \ref{frame:kit-colors}. + % For more colors, see \ref{frame:kit-colors}. \end{frame} \subsection{Spezial Frames} @@ -236,7 +237,7 @@ \end{frame} \begin{frame}[picture vertical=20,picture=images/palladio_bauplan,kitlogo=white]{Slide with Picture in Variable Size (20\%)} - \lipsum[1][1-16] + \lipsum[1][1-16]\footnote{This is a footnote on a page without the navigation bar.} \end{frame} \subsection{Title and Footer} @@ -256,8 +257,8 @@ With frames with the option \texttt{[t]}, the content is not vertically centered but started at the top edge. \end{frame} -\begin{frame}{Example: Literature} - Literaturzitat: \cite{klare2021jss} +\begin{frame}{Citation} + Citing literature: \cite{klare2021jss} \end{frame} \section{Mode Options}