All options implemented; Basic usage added onto slides

This commit is contained in:
Hedongliang Liu 2025-08-19 19:02:29 +02:00
parent 2531c2bdcb
commit 58fed8303d
4 changed files with 133 additions and 162 deletions

View File

@ -24,6 +24,8 @@
\spaceforfacefalse \spaceforfacefalse
\newif\ifoverviewatsection \newif\ifoverviewatsection
\overviewatsectionfalse \overviewatsectionfalse
\newif\ifshowallatfirstoverview
\showallatfirstoverviewtrue
\def\groupname#1{\def\@groupname{#1}} \def\groupname#1{\def\@groupname{#1}}
\def\groupnamewidth#1{\def\@groupnamewidth{#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} \newgeometry{top=0.5cm,bottom=0cm,left=\kitoutermargin,right=\dimexpr\paperwidth-#1+\kitcolumnsep\relax}
\setbeamertemplate{background}{\hskip#1\includegraphics[height=\paperheight]{\@titleimage}} \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 % Table of contents
% %
@ -643,23 +658,40 @@
\end{textblock*} \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 % /Table of contents
% %
% siehe README.md
\define@key{beamerframe}{picture}{%
\titleimage{#1}
}
\define@key{beamerframe}{kitlogo}[rgb]{%
\titlelogo{#1}
}
%
% /Special-Layouts
%
%% %%
%% /Frame-Layout %% /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 % Original von tex/latex/beamer/beamerinnerthemedefault.sty
% Originally from 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 % colsep* is replaced by colsep, so that the blocks do not exceed the grid
\defbeamertemplate*{block begin}{KIT 2025} \defbeamertemplate*{block begin}{KIT 2025}
{ {

View File

@ -2,15 +2,15 @@
All changes of this template is documented in this file. All changes of this template is documented in this file.
## [2025.08.14 v1.0.0] Modifications from sdqbeamer.cls ## [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 - 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 - Changed the font size of TOC page
- Added KIT logo in the header
- Changed the logo in the footer to group logo - Changed the logo in the footer to group logo
- Removed date in footer - 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 option for adding fundinglogos onto the title page
- Added the group logo onto overview page - Added the group logo onto overview page
- Changed the normal fontsize to 19pt - Changed the normal fontsize to 19pt
- Added the spaceforface mode to leave space on the right for recording - Added the spaceforface option to leave space on the right for recording
- Added a newif for overview at section option !!! Modification is still needed - Added the overviewatsection option

View File

@ -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 <width> in \setlength{\spaceforface}{<width>} in `CELbeamer.cls`. - 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`.
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 ## Title Slide
-----------
Setup: `\begin{frame}[title white vertical, picture=images/...., fundings=]` 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. 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]` 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=<color>`, where `color` can be either `blue` or `green`. The table of contents will then be shown on a fully colored slide. 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.
There are also special layouts for divider slides with large images. You can select them using frame options. There are also special layouts for divider slides with large images. You can select them using frame options.

View File

@ -4,7 +4,7 @@
%% Modified by: Hedongliang Liu %% Modified by: Hedongliang Liu
%% Last modified on: 14.08.2025 %% Last modified on: 14.08.2025
%%%%%%%%%%% CEL beamer class %%%%%%%%%%%%%%% %%%%%%%%%%% CEL beamer class %%%%%%%%%%%%%%%
\documentclass[overviewatsection]{CELbeamer} \documentclass[handout, overviewatsection]{CELbeamer}
%% default options: en, helvet, bigfoot (12pt) %% default options: en, helvet, bigfoot (12pt)
%% other options: de, franklin, smallfoot (11pt), navbaron, kitgrid, handout, %% other options: de, franklin, smallfoot (11pt), navbaron, kitgrid, handout,
%% spaceforface, overviewatsection %% spaceforface, overviewatsection
@ -15,15 +15,8 @@
\input{\templates/booleans.tex} \input{\templates/booleans.tex}
% \input{\templates/modifications.tex} % \input{\templates/modifications.tex}
% \input{\templates/makros_own.tex} % \input{\templates/makros_own.tex}
\overviewatsectiontrue% toggles to show the toc
\AtBeginSection{% % \showallatfirstoverviewfalse % uncomment to not show all sections at the first section
\ifoverviewatsection
\begin{frame}[tableofcontents=blue]{Overview}
\tableofcontents[currentsection, subsectionstyle=show/show/hide]
\end{frame}
\fi
}
%%%%%%%%%%% Group info: logo must be in the directory logos/ %%%%%%%%%%%%%%% %%%%%%%%%%% Group info: logo must be in the directory logos/ %%%%%%%%%%%%%%%
%% If no group logo is desired, please call \grouplogo{} %% If no group logo is desired, please call \grouplogo{}
@ -59,15 +52,16 @@
% Start of the presentation % Start of the presentation
% Title page % Title page
\begin{frame}[title white vertical, picture=images/schloss_back_cut.jpg] \begin{frame}[title white vertical, picture=images/castleflagcut]
\titlepage \titlepage
\end{frame} \end{frame}
\begin{frame}[tableofcontents=blue]{Overview} % \begin{frame}[tableofcontents=blue]{Overview}
\tableofcontents % \tableofcontents
\end{frame} % \end{frame}
\section{Basic Usage} \section{Basic Usage}
\subsection{Options}
\begin{frame}{Usages Options} \begin{frame}{Usages Options}
The following options can be used by putting the \texttt{<option>} in the \texttt{\textbackslash documentclass[<option>]\{CELbeamer.cls\}} command: The following options can be used by putting the \texttt{<option>} in the \texttt{\textbackslash documentclass[<option>]\{CELbeamer.cls\}} command:
\begin{itemize} \begin{itemize}
@ -76,9 +70,9 @@
\item \texttt{bigfoot} \textit{(default)} for 12pt font size, \texttt{smallfoot} for 11pt font size \item \texttt{bigfoot} \textit{(default)} for 12pt font size, \texttt{smallfoot} for 11pt font size
\item \texttt{navbaron} to show the navigation bar \item \texttt{navbaron} to show the navigation bar
\item \texttt{kitgrid} to show the grid of rows and columns \item \texttt{kitgrid} to show the grid of rows and columns
\item \texttt{handout} to create a handout version of the slides \item<2-> \texttt{handout} to create a handout version of the slides
\item \texttt{spaceforface} to leave space for face in recording \item<2-> \texttt{spaceforface} to leave space for face in recording
\item \texttt{overviewatsection} to show the table of contents at each section \item<2-> \texttt{overviewatsection} to show the table of contents at each section
\end{itemize} \end{itemize}
\end{frame} \end{frame}
\begin{frame}{Font Size Examples} \begin{frame}{Font Size Examples}
@ -103,86 +97,7 @@
\Huge Huge (capital H) text \Huge Huge (capital H) text
\end{frame} \end{frame}
\subsection{Row/Column Split} \subsection{Color Boxes}
\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}{Row Split}
\begin{columns}
\column{\kitfourcolumns}
% \includegraphics[width=\linewidth, trim={0 2cm 0 2cm}, clip]{images/palladio_bauplan.jpg}
\lipsum[1][1-8]
\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{frame}{Color Blocks}{in the KIT Color Scheme}
\begin{columns} \begin{columns}
\column{\kittwocolumns} \column{\kittwocolumns}
@ -243,19 +158,73 @@
\begin{columns} \begin{columns}
\column{\kittwocolumns} \column{\kittwocolumns}
\begin{contentblock}{Contentblock} \begin{contentblock}{Contentblock}
(farblos) This is a content block without color.
\end{contentblock} \end{contentblock}
\column{\kittwocolumns} \column{\kittwocolumns}
\column{\kittwocolumns} \column{\kittwocolumns}
\end{columns} \end{columns}
% For more colors, see \ref{frame:kit-colors}. % For more colors, see \ref{frame:kit-colors}.
\end{frame} \end{frame}
\begin{frame}{Color Boxes}{with Filled Background}
\begin{columns}
\column{\kitthreecolumns}
\begin{standardbox}
Standard box
\end{standardbox}
\column{\kitthreecolumns}
\begin{highlightbox}
Highlight box
\end{highlightbox}
\end{columns}
\vspace{\kitrowsep}
\begin{columns}
\column{\kittwocolumns}
\begin{grayhighlightbox}
Gray highlight box
\end{grayhighlightbox}
\column{\kittwocolumns}
\begin{lightgrayhighlightbox}
Light gray highlight box
\end{lightgrayhighlightbox}
\end{columns}
\end{frame}
\begin{frame}{Slide Layout via Column Split}
The pre-defined lengths \texttt{$\backslash$kitcolumn, $\backslash$kittwocolumns}, ..., \texttt{ $\backslash$kitsixcolumns} can be used to create columns of different widths.
\vspace{\kitrowsep}
\begin{columns}
\column{\kitthreecolumns}
This is a three-column layout. \\
\lipsum[1][1-4]
\column{\kitthreecolumns}
This is another three-column layout. \\
\lipsum[1][1-4]
\end{columns}
\vspace{\kitrowsep}
\begin{columns}
\column{\kittwocolumns}
\begin{standardbox}
Two column box
\end{standardbox}
\column{\kittwocolumns}
\begin{highlightbox}
Two column box
\end{highlightbox}
\column{\kittwocolumns}
\begin{grayhighlightbox}
Two column box
\end{grayhighlightbox}
\end{columns}
\end{frame}
\section{Frames}
\subsection{Title and Footer} \subsection{Title and Footer}
\begin{frame}[t]{Title}{Subtitle}
% 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} \begin{frame}
% Bei Frames ohne Titel wird die Kopfzeile nicht angezeigt, und With frames without a title, the free space for title can be used for content.
% 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} \end{frame}
\begin{frame}[plain] \begin{frame}[plain]
@ -263,16 +232,13 @@
With frames with the option \texttt{[plain]}, neither header nor footer are displayed. With frames with the option \texttt{[plain]}, neither header nor footer are displayed.
\end{frame} \end{frame}
\begin{frame}[t]{Example} \subsection{Footnotes}
% Bei Frames mit Option \texttt{[t]} werden die Inhalte nicht vertikal zentriert, sondern an der Oberkante begonnen. \begin{frame}{Footnotes}
With frames with the option \texttt{[t]}, the content is not vertically centered but started at the top edge. \lipsum[1][1-8]\footnote{This is a footnote.}
\end{frame} \end{frame}
\begin{frame}{Citation} \section{Other Tips}
Citing literature: \cite{klare2021jss} \subsection{Citations}
\end{frame}
\section{Citations}
\begin{frame}{Citations} \begin{frame}{Citations}
Citations in beamer were often dealed by pasting the full text in the footnote. The biblatex package provides a solution allowing you reuse your .bib file for presentations. Here are several ways of usage:\\[-.5em] Citations in beamer were often dealed by pasting the full text in the footnote. The biblatex package provides a solution allowing you reuse your .bib file for presentations. Here are several ways of usage:\\[-.5em]
\begin{itemize} \begin{itemize}
@ -286,6 +252,9 @@
You can print all references that are cited at the end of presentation, as shown in the next slide. You can print all references that are cited at the end of presentation, as shown in the next slide.
\end{frame} \end{frame}
\begin{frame}{Citation}
Citing literature: \cite{klare2021jss}
\end{frame}
\subsection{Handout Mode} \subsection{Handout Mode}
\begin{frame}{Itemize List in Handout Mode} \begin{frame}{Itemize List in Handout Mode}
@ -297,25 +266,8 @@
\item<only@3|handout:2>{Three: This will be shown on a new page in the handout mode.} \item<only@3|handout:2>{Three: This will be shown on a new page in the handout mode.}
\item<only@4|handout:2>{Four: This is the fourth item.} \item<only@4|handout:2>{Four: This is the fourth item.}
\end{itemize} \end{itemize}
% Text
% \begin{itemize}
% \item Item\\ new line
% \item Item
% \begin{itemize}
% \item Item
% \item Item
% \end{itemize}
% \end{itemize}
\begin{enumerate}
\item enumeration \lipsum[1][1-8]
\item enumeration
\item enumeration
\end{enumerate}
\end{frame} \end{frame}
\begin{frame}{Footnotes}
\lipsum[1][1-8]\footnote{Dies ist eine Fußnote.}
\end{frame}
\appendix \appendix
\beginbackup \beginbackup