Debian Codegraph @

texmf-dist/doc/latex/rwth-ci/examples/DEMO-RWTHBeamer.tex

raw
1 %% This is file `DEMO-RWTHBeamer.tex' version 1.2 (2026-04-03),
2 %% it is part of
3 %% RWTH-CI -- Corporate Design for RWTH Aachen University
4 %% ----------------------------------------------------------------------------
5 %%
6 %% Copyright (C) 2025–2026 by Marei Peischl <[email protected]>
7 %%
8 %% ============================================================================
9 %% This work may be distributed and/or modified under the
10 %% conditions of the LaTeX Project Public License, either version 1.3c
11 %% of this license or (at your option) any later version.
12 %% The latest version of this license is in
13 %% http://www.latex-project.org/lppl.txt
14 %% and version 1.3c or later is part of all distributions of LaTeX
15 %% version 2008/05/04 or later.
16 %%
17 %% This work has the LPPL maintenance status `maintained'.
18 %%
19 %% The current maintainer of this work is
20 %% Marei Peischl <[email protected]>
21 %%
22 %% The development repository can be found at
23 %% https://gitlab.git.nrw/rwth-it-center/rwth-latex-templates/rwth-ci
24 %% Please use the issue tracker for feedback!
25 %%
26 %% If you need a compiled version of this document, have a look at
27 %% http://mirror.ctan.org/macros/latex/contrib/rwth-ci/doc
28 %% or at the documentation directory of this package (if installed)
29 %% <path to your LaTeX distribution>/doc/latex/rwth-ci
30 %% ============================================================================
31 %%
32 % !TeX program = lualatex
33 %%
34 \documentclass[
35 english,% Main language as global option
36 % titlegraphic=1:3,% adjust size of the colored area/titlegraphic possible values: 1:3 or 2:3
37 % titlepage=plain,% title page variant without titlegraphics
38 % titlesepline=false,% disable the separation rule in the middle of the title if titlepage=plain or for section pages
39 % logofile=example-image-plain,% Select your logo file
40 % accept-missing-logos=true,% No error in case logo files are not available
41 ]{rwth-beamer}
42
43 %%%%%%%%%%%%%%%%%%%
44 % Language setup
45 %%%%%%%%%%%%%%%%%%%
46 \usepackage[english]{babel}
47 \usepackage[autostyle]{csquotes}% \enquote, to simplify use of quotation marks
48
49 %%%%%%%%%%%%%%%%%%%
50 % Document specific setup for demonstration, generally not needed!
51 %%%%%%%%%%%%%%%%%%%
52 \newcommand*{\code}[1]{\texttt{#1}}
53 %%%%%%%%%%%%%%%%%%%
54 % End of demo specific setup
55 %%%%%%%%%%%%%%%%%%%
56
57 \title{RWTH-Beamer}
58 \subtitle{\LaTeX~Beamer using the CI of RWTH Aachen University}
59 \author[M. Peischl]{Marei Peischl}
60 \institute{pei\TeX}
61
62 % Replace the colored area by a titlegraphic
63 % manually scale:
64 % \titlegraphic{\rule{\width}{\height}}
65 % automatically scaled and clipped:
66 % \titlegraphic*{\includegraphics{example-image-plain}}
67
68 \AtBeginSection{\sectionpage}% Enable section pages
69
70 \begin{document}
71
72 \maketitle
73
74 % example using a different ratio
75 \maketitle[titlegraphic=2:3]
76
77 \section{Basic Documentation}
78
79 \begin{frame}{The rwth-beamer class}
80 \begin{itemize}
81 \item Basic usage identical to beamer
82 \item No special syntax required
83 \end{itemize}
84 \end{frame}
85
86 \begin{frame}[fragile]{Additional Commands}
87 \begin{verbatim}
88 \footlinetext{%
89 Additional text to be placed in the foot line, can be separated into chunks using\\
90 here is a second part to illustrate this
91 }
92 \end{verbatim}
93 \end{frame}
94
95 \begin{frame}[fragile]{Scaling the titlegraphic}
96 As usual for beamer the titlegraphic is set via
97
98 \begin{verbatim}
99 \titlegraphic{<image code>}
100 \end{verbatim}
101
102 \begin{itemize}
103 \item The command shown above supports \code{\textbackslash{}height}/\code{\textbackslash{}width} to adjust the size to be used for graphic scaling.
104 \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.
105 \end{itemize}
106 \end{frame}
107
108
109 \section{Slide examples}
110
111 \begin{frame}{Frame with a subtitle}
112 \framesubtitle{Subtitle}
113 An example.
114 \end{frame}
115
116 \begin{frame}{Remark on vertical alignment (especially columns)}
117 The vertical alignment has been changed from \code{c} to \code{t} in contrast to beamers default setup.
118 Therefore frame content will be top aligned as required by the design guideline.
119 This is leading to some side effects, e\,g. with the columns environment.
120
121 To resolve this one can either globally add the \code{c} option to restore beamer's default or pass it to the environment itself.
122
123 \begin{columns}[onlytextwidth,c]
124 \column{.8\linewidth}
125 \begin{itemize}
126 \item one
127 \item two
128 \end{itemize}
129 \column{.2\linewidth}
130 \includegraphics[width=\linewidth]{example-image-plain}
131 \end{columns}
132 \end{frame}
133 \end{document}
134 %% End of file `DEMO-RWTH-Beamer.tex'.