%% This is file `DEMO-RWTHBeamer.tex' version 1.1 (2026-02-13),
%% it is part of
%% RWTH-CI -- Corporate Design for RWTH Aachen
%% ----------------------------------------------------------------------------
%%
%% Copyright (C) 2025–2026 by Marei Peischl <marei@peitex.de>
%%
%% ============================================================================
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2008/05/04 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%%
%% The current maintainer of this work is
%%   Marei Peischl <rwth-ci@peitex.de>
%%
%% The development repository can be found at
%% https://gitlab.git.nrw/rwth-it-center/rwth-latex-templates/rwth-ci
%% Please use the issue tracker for feedback!
%%
%% If you need a compiled version of this document, have a look at
%% http://mirror.ctan.org/macros/latex/contrib/rwth-ci/doc
%% or at the documentation directory of this package (if installed)
%% <path to your LaTeX distribution>/doc/latex/rwth-ci
%% ============================================================================
%%
% !TeX program = lualatex
%%
\documentclass[
english,% Main language as global option
% titlegraphic=1:3,% adjust size of the colored area/titlegraphic possible values: 1:3 or 2:3
% titlepage=plain,% title page variant without titlegraphics
% titlesepline=false,% disable the separation rule in the middle of the title if titlepage=plain or for section pages
% logofile=example-image-plain,% Select your logo file
% accept-missing-logos=true,% No error in case logo files are not available
]{rwth-beamer}

%%%%%%%%%%%%%%%%%%%
% Language setup
%%%%%%%%%%%%%%%%%%%
\usepackage[english]{babel}
\usepackage[autostyle]{csquotes}% \enquote, to simplify use of quotation marks

%%%%%%%%%%%%%%%%%%%
% Document specific setup for demonstration, generally not needed!
%%%%%%%%%%%%%%%%%%%
\newcommand*{\code}[1]{\texttt{#1}}
%%%%%%%%%%%%%%%%%%%
% End of demo specific setup
%%%%%%%%%%%%%%%%%%%

\title{RWTH-Beamer}
\subtitle{\LaTeX~Beamer using the CI of RWTH Aachen}
\author[M. Peischl]{Marei Peischl}
\institute{pei\TeX}

% Replace the colored area by a titlegraphic
% manually scale:
% \titlegraphic{\rule{\width}{\height}}
% automatically scaled and clipped:
% \titlegraphic*{\includegraphics{example-image-plain}}

\AtBeginSection{\sectionpage}% Enable section pages

\begin{document}

\maketitle

% example using a different ratio
\maketitle[titlegraphic=2:3]

\section{Basic Documentation}

\begin{frame}{The rwth-beamer class}
\begin{itemize}
\item Basic usage identical to beamer
\item No special syntax required
\end{itemize}
\end{frame}

\begin{frame}[fragile]{Additional Commands}
\begin{verbatim}
\footlinetext{%
	Additional text to be placed in the foot line, can be separated into chunks using\\
	here is a second part to illustrate this
}
\end{verbatim}
\end{frame}

\begin{frame}[fragile]{Scaling the titlegraphic}
As usual for beamer the titlegraphic is set via

\begin{verbatim}
\titlegraphic{<image code>}
\end{verbatim}

\begin{itemize}
\item The command shown above supports \code{\textbackslash{}height}/\code{\textbackslash{}width} to adjust the size to be used for graphic scaling.
\item It also has  a starred variant (e.\,g. \code{\textbackslash{}titlegraphic*\{\textbackslash{}includegraphics\{example-image-plain\}\}}). This will automatically scale/clip the logo/image to desired size.
\end{itemize}
\end{frame}


\section{Slide examples}

\begin{frame}{Frame with a subtitle}
\framesubtitle{Subtitle}
An example.
\end{frame}

\begin{frame}{Remark on vertical alignment (especially columns)}
The vertical alignment has been changed from \code{c} to \code{t} in contrast to beamers default setup.
Therefore frame content will be top aligned as required by the design guideline.
This is leading to some side effects,  e\,g. with the columns environment.

To resolve this one can either globally add the \code{c} option to restore beamer's default or pass it to the environment itself.

\begin{columns}[onlytextwidth,c]
\column{.8\linewidth}
\begin{itemize}
\item one
\item two
\end{itemize}
\column{.2\linewidth}
\includegraphics[width=\linewidth]{example-image-plain}
\end{columns}
\end{frame}
\end{document}
%% End of file `DEMO-RWTH-Beamer.tex'.
