summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tuda-ci/example/DEMO-TUDaBeamer2023.tex
blob: f9d90c3229484af1f0f1d62fb04eba5ebf213b06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
%% This is file `DEMO-TUDaBeamer2023.tex' version 3.35 (2023-12-11),
%% it is part of
%% TUDa-CI -- Corporate Design for TU Darmstadt
%% ----------------------------------------------------------------------------
%%
%%  Copyright (C) 2018--2023 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 Maintainers of this work are
%%   Marei Peischl <tuda-ci@peitex.de>
%%   Markus Lazanowski <latex@ce.tu-darmstadt.de>
%%
%% The development respository can be found at
%% https://github.com/tudace/tuda_latex_templates
%% 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/tuda-ci/doc
%% or at the documentation directory of this package (if installed)
%% <path to your LaTeX distribution>/doc/latex/tuda-ci
%% ============================================================================
%%
% !TeX program = lualatex
%%

\documentclass[
	english, % main language as globale option
%	logofile=example-image, % in case you are missing the logo files
	design=2023, % new slide design - will be default after official release
	]{tudabeamer}
	
\usepackage[main=english]{babel}

% Der folgende Block ist nur bei pdfTeX auf Versionen vor April 2018 notwendig
\usepackage{iftex}
\ifPDFTeX
\usepackage[utf8]{inputenc}%kompatibilität mit TeX Versionen vor April 2018
\fi


% document specific setup, you will not need that one in your files!
\newcommand*{\code}[1]{\texttt{#1}}

\title[TUDaBeamer2023]{\LaTeX~beamer using TU Darmstadts Corporate Design}
\subtitle{Design2023-beta}
\author[M. Peischl]{Marei Peischl}
\department{\TeX/\LaTeX}
\institute{pei\TeX}

% Scaling for additional logos and titlegraphic is described on slide “Scaling logos/titlegraphic”

% sublogo/partnerlogo will be placed in the headline/sidebar

\sublogo{\color{blue!50}\rule{\width}{\height}}
\partnerlogo*{\includegraphics{example-image}}

%  titlegraphic will be placed behind the title
%\titlegraphic*{\includegraphics{example-image}}
\date{2023-10-02}

\begin{document}

\maketitle

\tableofcontents

\section{Documentation}
\sectionpage

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

\begin{frame}{Additional Features for titlegraphic/logos}
\begin{itemize}
	\item \code{\textbackslash{}partnerlogo} additional logo next to TUDa logo
	\item \code{\textbackslash{}sublogo} additional logo below TUDa logo
	\item \code{\textbackslash{}titlegraphic} place image as a background for title slide
\end{itemize}
	The additional option \code{authorontitle=true/false} allows to place author/institue below the title.
\end{frame}

\begin{frame}{Scaling logos/titlegraphic}
\begin{itemize}
\item The commands shown on previous slide support \code{\textbackslash{}height}/\code{\textbackslash{}width} to adjust the size to be used for graphic scaling.
\item All have a starred variant (e.\,g. \code{\textbackslash{}sublogo*\{\textbackslash{}includegraphics\{example-image\}\}}). This will automaticcaly scale/clip the logo/image to desired size.
\end{itemize}
\end{frame}

\begin{frame}{Table of Contents}
By design the toc is structured in two columns. This layout doesn't really support subsections or subsubsections.

To be able to use the new design with old content, the mechanism was extended to support those. This will automatically switch to a single columns toc.

In case you want to disable that mechanism there is the class option \code{toc-columns=one/two/auto} which can also be adjusted locally be directly setting it with the command: \code{\textbackslash{}tableofcontents[columns=two]}.

Please be also aware of beamer's mechanism to filter the toc, e.g. by \code{\textbackslash{}tableofcontents[hideallsubsections]}, see the beamer documentation for details.
\end{frame}

\section{Slide examples}

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

\textcolor{TUDa-dark1}{test}

\begin{frame}{Color Scheme}
The new design introduces new colors to be used to highlight content.

The additional colors are:
\par
\UseName{clist_map_inline:nn} {
	dark1,
	dark2,
	light1,
	light2,
	accent1,
	accent2,
	accent3,
	accent4,
	accent5,
	accent5,
	hyperlink,
} {TUDa-####1: \textcolor{TUDa-####1}{\rule{1cm}{\ht\strutbox}}\par}
\end{frame}

\begin{frame}{Remark on vertical alignment (especially columns)}
	The default alignment has been changed from \code{c} to \code{t} in contrast to beamers default setting.
	This means frame content will be aligned top inside the frame. 
	This is required by the design but might have side effects with the columns environment:
	
	To resolve this one can either globally add the \code{c} option or pass the option to the columns environment, e.\,g.:

\begin{columns}[onlytextwidth,c]
	\column{.8\linewidth}
	\begin{itemize}
		\item one
		\item two
	\end{itemize}
	\column{.2\linewidth}
	\includegraphics[width=\linewidth]{example-image}
\end{columns}
\end{frame}

\end{document}