diff --git a/CELbeamer.cls b/CELbeamer.cls index 3e20a6e..26cddff 100644 --- a/CELbeamer.cls +++ b/CELbeamer.cls @@ -24,6 +24,8 @@ \spaceforfacefalse \newif\ifoverviewatsection \overviewatsectionfalse +\newif\ifshowallatfirstoverview +\showallatfirstoverviewtrue \def\groupname#1{\def\@groupname{#1}} \def\groupnamewidth#1{\def\@groupnamewidth{#1}} @@ -612,7 +614,20 @@ \newgeometry{top=0.5cm,bottom=0cm,left=\kitoutermargin,right=\dimexpr\paperwidth-#1+\kitcolumnsep\relax} \setbeamertemplate{background}{\hskip#1\includegraphics[height=\paperheight]{\@titleimage}} } - + +% siehe README.md +\define@key{beamerframe}{picture}{% + \titleimage{#1} +} + +\define@key{beamerframe}{kitlogo}[rgb]{% + \titlelogo{#1} +} + +% ┌──────────────────┐ +% │ /Special-Layouts │ +% └──────────────────┘ + % ┏━━━━━━━━━━━━━━━━━━━┓ % ┃ Table of contents ┃ % ┗━━━━━━━━━━━━━━━━━━━┛ @@ -643,23 +658,40 @@ \end{textblock*} } +\AtBeginSection{% +\ifoverviewatsection +\ifnum\value{section}=1 +{ + \begin{frame}[tableofcontents=blue]{Overview} + \tableofcontents[subsectionstyle=show/show/hide] + \end{frame} +} +\else +{ + \begin{frame}[tableofcontents=blue]{Overview} + \tableofcontents[currentsection, subsectionstyle=shaded/show/hide] + \end{frame} +} +\fi +} + +%% ┏━━━━━━━━━━━━━━━━━━━━━┓ +%% ┃ 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} + +%% ┏━━━━━━━━━━━━━━━━━━━━━━┓ +%% ┃ /TOC sections styles ┃ +%% ┗━━━━━━━━━━━━━━━━━━━━━━┛ + % ┏━━━━━━━━━━━━━━━━━━━┓ % ┃ /Table of contents ┃ % ┗━━━━━━━━━━━━━━━━━━━┛ -% siehe README.md -\define@key{beamerframe}{picture}{% - \titleimage{#1} -} - -\define@key{beamerframe}{kitlogo}[rgb]{% - \titlelogo{#1} -} - -% ┌──────────────────┐ -% │ /Special-Layouts │ -% └──────────────────┘ - %% ┏━━━━━━━━━━━━━━━━┓ %% ┃ /Frame-Layout ┃ %% ┗━━━━━━━━━━━━━━━━┛ @@ -1106,26 +1138,13 @@ %% ┗━━━━━━━━━┛ -%% ┏━━━━━━━━━━━━━━━━━━━━━┓ -%% ┃ 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-Definitionen ┃ +%% ┃ Block-Definitions ┃ %% ┗━━━━━━━━━━━━━━━━━━━━┛ % 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} { diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d6c491..7889591 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,15 +2,15 @@ All changes of this template is documented in this file. ## [2025.08.14 v1.0.0] Modifications from sdqbeamer.cls -- Changed position and size of subtitle and authors in the title page - 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 KIT logo in the header -- Disabled navigation bar by default - 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 mode to leave space on the right for recording -- Added a newif for overview at section option !!! Modification is still needed \ No newline at end of file +- Added the spaceforface option to leave space on the right for recording +- Added the overviewatsection option \ No newline at end of file diff --git a/README.md b/README.md index 111b084..6a5871d 100644 --- a/README.md +++ b/README.md @@ -44,10 +44,11 @@ E.g., `\only<2|handout:0>{This is not shown in handout mode.}`, `\item<1-|handou - 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 in \setlength{\spaceforface}{} in `CELbeamer.cls`. -Example: `\documentclass[de, navbaron, kitgrid, handout]{CELbeamer}` +- The `overviewatsection` option displays the table of contents at each section. Only subsections of the current section is shown. + +Example: `\documentclass[de, navbaron, kitgrid, handout, overviewatsection]{CELbeamer}` ## Title Slide ------------ Setup: `\begin{frame}[title white vertical, picture=images/...., fundings=]` 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. @@ -62,8 +63,7 @@ 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 --------------- +## 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. diff --git a/presentation.tex b/presentation.tex index 1d18567..64b0194 100644 --- a/presentation.tex +++ b/presentation.tex @@ -4,7 +4,7 @@ %% Modified by: Hedongliang Liu %% Last modified on: 14.08.2025 %%%%%%%%%%% CEL beamer class %%%%%%%%%%%%%%% -\documentclass[overviewatsection]{CELbeamer} +\documentclass[handout, overviewatsection]{CELbeamer} %% default options: en, helvet, bigfoot (12pt) %% other options: de, franklin, smallfoot (11pt), navbaron, kitgrid, handout, %% spaceforface, overviewatsection @@ -15,15 +15,8 @@ \input{\templates/booleans.tex} % \input{\templates/modifications.tex} % \input{\templates/makros_own.tex} -\overviewatsectiontrue% toggles to show the toc -\AtBeginSection{% -\ifoverviewatsection -\begin{frame}[tableofcontents=blue]{Overview} - \tableofcontents[currentsection, subsectionstyle=show/show/hide] -\end{frame} -\fi -} +% \showallatfirstoverviewfalse % uncomment to not show all sections at the first section %%%%%%%%%%% Group info: logo must be in the directory logos/ %%%%%%%%%%%%%%% %% If no group logo is desired, please call \grouplogo{} @@ -59,15 +52,16 @@ % Start of the presentation % Title page -\begin{frame}[title white vertical, picture=images/schloss_back_cut.jpg] +\begin{frame}[title white vertical, picture=images/castleflagcut] \titlepage \end{frame} -\begin{frame}[tableofcontents=blue]{Overview} - \tableofcontents -\end{frame} +% \begin{frame}[tableofcontents=blue]{Overview} +% \tableofcontents +% \end{frame} \section{Basic Usage} +\subsection{Options} \begin{frame}{Usages Options} The following options can be used by putting the \texttt{