summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tuda-ci/tex/beamerinnerthemeTUDa2008.sty
blob: 0e87fea68321a561d83876d309f5f6a7728a3636 (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
%% This is file `beamerinnerthemeTUDa2008.sty' version 3.36 (2024-01-05),
%% 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>
%%
%% The development respository can be found at
%% https://github.com/tudace/tuda_latex_templates
%% Please use the issue tracker for feedback!
%%
%% ============================================================================
%%
\def\fileversion{3.36}
\def\filedate{2024-01-05}
\NeedsTeXFormat{LaTeX2e}
\ProvidesExplPackage{beamerinnerthemeTUDa}{\filedate}{\fileversion}{Inner~beamer~theme~of~tuda-ci, compatibility for design of 2008}

\mode<presentation>

\RequirePackage{beamerinnerthemeTUDa2008}

\defbeamertemplate*{title~ page}{TUDa}[1][]
{
	\nointerlineskip
	\vspace{\dim_eval:n {-\c_ptxcd_largerule_dim}}
	\hbox_set:Nn \l__ptxcd_titlehead_box {
	\parbox{\dimexpr\paperwidth-2\g__ptxcd_beamer_sep_dim}{%
	\begin{beamercolorbox}[
		wd=\linewidth,
		sep=\g__ptxcd_beamer_logosep_dim,
	]{title}
	\raggedright
	\usebeamerfont{title}
	\skip_horizontal:n {1ex}
	\strut\parbox[t]{\dimexpr\linewidth- \box_wd:N \g__ptxcd_logo_box-2ex\relax}{
		\inserttitle
		\par
	}
	\hspace{\fill}\raisebox{\dimexpr-\height+\ht\strutbox\relax}{\box_use:N \g__ptxcd_logo_box}
	\ifx\insertsubtitle\@empty
	\else
	\par\vspace{\c_ptxcd_largerule_dim}
	\skip_horizontal:n {1ex}\parbox[t]{\dimexpr\linewidth- \box_wd:N \g__ptxcd_logo_box-2ex\relax}{
		\usebeamerfont{subtitle}\insertsubtitle
	}
	\fi
	\end{beamercolorbox}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bool_if:NT \g_ptxcd_authorontitle_bool {
\par\nointerlineskip
\begin{beamercolorbox}[
	wd=\dimexpr\paperwidth-2\g__ptxcd_beamer_sep_dim,ht=\c_ptxcd_smallrule_dim,dp=\z@]{smallrule}
\end{beamercolorbox}
\par\nointerlineskip
	\begin{beamercolorbox}[
	wd=\linewidth,
	sep=\c_ptxcd_largerule_dim,
	]{title}
	\raggedright
	\skip_horizontal:n {1ex}
	\parbox[t]{\dimexpr\paperwidth-2\g__ptxcd_beamer_sep_dim-2ex\relax}{
		\ifx\insertauthor\@empty
		\else
		\usebeamercolor[fg]{author}\usebeamerfont{author}\insertauthor\par
		\fi
		\ifx\insertauthor\@empty
		\else
		\usebeamercolor[fg]{institute}\usebeamerfont{institute}\insertinstitute
		\fi
	}
\end{beamercolorbox}
}
	}
	}
	\box_use:N \l__ptxcd_titlehead_box
\nointerlineskip\begin{beamercolorbox}[
	wd=\dimexpr\paperwidth-2\g__ptxcd_beamer_sep_dim,ht=\c_ptxcd_smallrule_dim,dp=\z@]{smallrule}
	\end{beamercolorbox}
	\dim_set:Nn \l__ptxcd_titlegraphic_ht_dim {\textheight-\box_ht:N\l__ptxcd_titlehead_box-\box_dp:N \l__ptxcd_titlehead_box
	+\c_ptxcd_largerule_dim-.5\c_ptxcd_rulesep_dim-\c_ptxcd_smallrule_dim}
	\let\height\l__ptxcd_titlegraphic_ht_dim
	\dim_set:Nn \l__ptxcd_titlegraphic_wd_dim{\dimexpr\paperwidth-2\g__ptxcd_beamer_sep_dim}
	\let\width\l__ptxcd_titlegraphic_wd_dim
	\nointerlineskip
	\begin{beamercolorbox}[wd=\width,center]{titlegraphic}
	\raisebox{-\c_ptxcd_largerule_dim}[\dim_eval:n {\height-\c_ptxcd_largerule_dim}][0pt]{\inserttitlegraphic}
	\end{beamercolorbox}
%	\endgroup
}

%Itemize Items
\defbeamertemplate*{itemize~item}{TUDa}{\usebeamerfont*{itemize~item}\raise\dimexpr.4\ht\strutbox-.4ex\hbox{\rule{.8ex}{.8ex}}}
\defbeamertemplate*{itemize~subitem}{TUDa}{\usebeamerfont*{itemize~item}\setlength{\fboxsep}{\z@}\setlength{\fboxrule}{1pt}\raise\dimexpr.4\ht\strutbox-.2ex-\fboxrule\hbox{\fbox{\color{bg}\rule{.4ex}{.4ex}}}}
\defbeamertemplate*{itemize~subsubitem}{TUDa}{\usebeamerfont*{itemize~subitem}\hbox{--}}

\mode<all>

\endinput