| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% TUDa-CI -- Corporate Design for TU Darmstadt |
| 4 |
% ---------------------------------------------------------------------------- |
| 5 |
% |
| 6 |
% Copyright (C) 2018--2025 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://github.com/tudace/tuda_latex_templates |
| 24 |
% Please use the issue tracker for feedback! |
| 25 |
% |
| 26 |
% ============================================================================ |
| 27 |
% |
| 28 |
% \fi |
| 29 |
% |
| 30 |
% \iffalse% no documentation on this |
| 31 |
% \iffalse^^A Preparation for real docstrip documentation |
| 32 |
%<*driver> |
| 33 |
\ProvidesFile{beamercolorthemeTUDa.dtx}[2025-11-13 v4.05 Beamer color theme of tuda-ci] |
| 34 |
\typeout{***********************************************************} |
| 35 |
\typeout{No documentation included in this file! Please see tuda-ci.pdf for more information and DEMO-TUDaBeamer.tex/.pdf for an example of use.} |
| 36 |
\typeout{***********************************************************} |
| 37 |
\stop |
| 38 |
%</driver> |
| 39 |
%<*package> |
| 40 |
%<@@=ptxcd> |
| 41 |
\NeedsTeXFormat{LaTeX2e}[2022/06/01] |
| 42 |
%</package> |
| 43 |
%<!2008>\ProvidesExplPackage{beamercolorthemeTUDa}{2025-11-13}{4.05}{Beamer color theme of tuda-ci} |
| 44 |
%<2008>\ProvidesExplPackage{beamercolorthemeTUDa2008}{2025-11-13}{4.05}{Beamer color theme of tuda-ci, compatibility for design of 2008} |
| 45 |
%<*driver>^^A Preparation for real docstrip documentation |
| 46 |
\providecommand*{\TUDaDocDTXfiles}{beamercolorthemeTUDa.dtx} |
| 47 |
\input{tuda-ci.dtx} |
| 48 |
%</driver> |
| 49 |
% \fi |
| 50 |
% |
| 51 |
% \changes{v4.00}{2025-01-26}{Converted to DTX file} |
| 52 |
% |
| 53 |
% \DoNotIndex{\newcommand,\newenvironment} |
| 54 |
% |
| 55 |
% \GetFileInfo{beamercolorthemeTUDa.dtx} |
| 56 |
% \title{The \textsf{beamercolorthemeTUDa} package} |
| 57 |
% \author{Marei Peischl\thanks{Email: \href{mailto:[email protected]}{[email protected]}}} |
| 58 |
% \date{\fileversion~from \filedate} |
| 59 |
% |
| 60 |
% \maketitle |
| 61 |
% |
| 62 |
|
| 63 |
% |
| 64 |
% \MaybeStop{} |
| 65 |
% |
| 66 |
% \section{Implementation} |
| 67 |
% |
| 68 |
% \iffalse |
| 69 |
%<*package> |
| 70 |
%<*main> |
| 71 |
% \fi |
| 72 |
% \begin{macrocode} |
| 73 |
\clist_map_inline:nn { |
| 74 |
colortitle, |
| 75 |
colorbacktitle, |
| 76 |
colorframetitle, |
| 77 |
colorback |
| 78 |
} { |
| 79 |
\keys_define:nn {ptxcd/beamer/color} {#1 .code:n = \msg_warning:nnn {tudabeamer} {option-removed} {#1}} |
| 80 |
} |
| 81 |
% \end{macrocode} |
| 82 |
% \iffalse |
| 83 |
%</main> |
| 84 |
%<*2008> |
| 85 |
% \fi |
| 86 |
% \begin{macrocode} |
| 87 |
\bool_if_exist:NF \g_@@_colorframetitle_bool {\bool_new:N \g_@@_colorframetitle_bool} |
| 88 |
\keys_define:nn {ptxcd/beamer/color} { |
| 89 |
colortitle .bool_gset:N = \g_ptxcd_beamer_colortitle_bool, |
| 90 |
colortitle .default:n = true, |
| 91 |
colortitle .initial:n = true, |
| 92 |
colorbacktitle .meta:n = {colortitle=#1}, |
| 93 |
colorframetitle .choices:nn = {true, false} { |
| 94 |
\use:c {bool_gset_ \l_keys_choice_tl :N} \g_@@_colorframetitle_bool |
| 95 |
\cs_if_exist_use:N \_@@_setup_frametitle_color: |
| 96 |
}, |
| 97 |
colorframetitle .default:n = true, |
| 98 |
colorback .meta:n = {colorframetitle=#1} |
| 99 |
} |
| 100 |
%</2008> |
| 101 |
\ExplSyntaxOff |
| 102 |
\ProcessKeyOptions[ptxcd/beamer/color] |
| 103 |
\mode<presentation>{\PassOptionsToPackage{RGB}{tudacolors}} |
| 104 |
\RequirePackage{tudacolors} |
| 105 |
% \end{macrocode} |
| 106 |
% \iffalse |
| 107 |
%<*main> |
| 108 |
% \fi |
| 109 |
% \begin{macrocode} |
| 110 |
\definecolorset{HTML}{TUDa-}{}{% |
| 111 |
dark1,000000;% |
| 112 |
dark2,44546A;% |
| 113 |
light1,FFFFFF;% |
| 114 |
light2,E7E6E6;% |
| 115 |
accent1,E6001A;% |
| 116 |
accent2,004E8A;% |
| 117 |
accent3,009CDA;% |
| 118 |
accent4,00689D;% |
| 119 |
accent5,B5B5B5;% |
| 120 |
accent5,535353;% |
| 121 |
hyperlink,243572% |
| 122 |
} |
| 123 |
\mode<presentation> |
| 124 |
\setbeamercolor*{title}{parent=normal text} |
| 125 |
\setbeamercolor{subtitle}{parent=title} |
| 126 |
\setbeamercolor{author}{parent=title} |
| 127 |
\setbeamercolor{institute}{parent=title} |
| 128 |
\setbeamercolor{date}{parent=title} |
| 129 |
\setbeamercolor{titlelike}{parent=title} |
| 130 |
% \end{macrocode} |
| 131 |
% \iffalse |
| 132 |
%</main> |
| 133 |
% \fi |
| 134 |
% \begin{macrocode} |
| 135 |
%<2008>\setbeamercolor{titlelike}{fg=textaccentcolor,bg=white} |
| 136 |
\setbeamercolor*{author}{parent=title} |
| 137 |
\setbeamercolor*{institute}{parent=title} |
| 138 |
\setbeamercolor*{normal text}{bg=,fg=black} |
| 139 |
\setbeamercolor*{background canvas}{parent=normal text} |
| 140 |
\setbeamercolor*{section in toc}{parent=normal text} |
| 141 |
\setbeamercolor*{footline}{ |
| 142 |
%<2008>parent=normal text |
| 143 |
%<main>fg=black!50 |
| 144 |
} |
| 145 |
\setbeamercolor*{alerted text}{fg=textaccentcolor} |
| 146 |
%<main>\setbeamercolor*{structure}{fg=black} |
| 147 |
%<2008>\setbeamercolor*{structure}{fg=textaccentcolor} |
| 148 |
\setbeamercolor{bibliography item}{parent=item} |
| 149 |
\setbeamercolor{bibliography entry author}{use=structure,fg=structure.fg} |
| 150 |
\setbeamercolor{bibliography entry title}{use=normal text,fg=normal text.fg} |
| 151 |
\setbeamercolor{bibliography entry location}{use=structure,fg=structure.fg} |
| 152 |
\setbeamercolor{bibliography entry note}{use=structure,fg=normal text.fg} |
| 153 |
\setbeamercolor*{block title}{fg=textonaccentcolor,bg=accentcolor} |
| 154 |
\setbeamercolor*{block body}{fg=black,bg=black!15} |
| 155 |
\setbeamercolor*{block title alerted}{ |
| 156 |
%<main>fg=TUDa-accent1,bg=TUDa-light2 |
| 157 |
%<2008>fg=TUDa-9b,bg=black!15 |
| 158 |
} |
| 159 |
\setbeamercolor*{block body alerted}{use=normal text, bg=white} |
| 160 |
\setbeamercolor*{block frame alerted}{ |
| 161 |
%<main>bg=TUDa-accent1 |
| 162 |
%<2008>bg=TUDa-9b |
| 163 |
} |
| 164 |
\setbeamercolor*{block title example}{ |
| 165 |
%<main>fg=TUDa-accent2,bg=TUDa-light2 |
| 166 |
%<2008>fg=TUDa-4d,bg=black!15 |
| 167 |
} |
| 168 |
\setbeamercolor*{block body example}{use=normal text, bg=white} |
| 169 |
\setbeamercolor*{block frame example}{ |
| 170 |
%<main>bg=TUDa-accent2 |
| 171 |
%<2008>bg=TUDa-4d |
| 172 |
} |
| 173 |
% \end{macrocode} |
| 174 |
% \iffalse |
| 175 |
%<*2008> |
| 176 |
% \fi |
| 177 |
% \begin{macrocode} |
| 178 |
\setbeamercolor*{smallrule}{bg=black} |
| 179 |
\setbeamercolor*{identbar}{bg=identbarcolor} |
| 180 |
% \end{macrocode} |
| 181 |
% \iffalse |
| 182 |
%</2008> |
| 183 |
% \fi |
| 184 |
% \begin{macrocode} |
| 185 |
\ExplSyntaxOn |
| 186 |
% \end{macrocode} |
| 187 |
% \iffalse |
| 188 |
%<*2008> |
| 189 |
% \fi |
| 190 |
% \begin{macrocode} |
| 191 |
\bool_if:NTF \g_ptxcd_beamer_colortitle_bool { |
| 192 |
\setbeamercolor*{title}{fg=textonaccentcolor,bg=accentcolor} |
| 193 |
}{ |
| 194 |
\setbeamercolor*{title}{parent=normal~text} |
| 195 |
} |
| 196 |
\cs_new:Nn \_@@_setup_frametitle_color: { |
| 197 |
\bool_if:NTF \g_@@_colorframetitle_bool { |
| 198 |
\setbeamercolor*{frametitle}{fg=textonaccentcolor,bg=accentcolor} |
| 199 |
} { |
| 200 |
\setbeamercolor*{frametitle}{use=normal~text,fg=normal~text.fg,bg=} |
| 201 |
} |
| 202 |
} |
| 203 |
\_@@_setup_frametitle_color: |
| 204 |
% \end{macrocode} |
| 205 |
% |
| 206 |
% \iffalse |
| 207 |
%</2008> |
| 208 |
\mode<all> |
| 209 |
%</package> |
| 210 |
% \fi |
| 211 |
% |
| 212 |
% \Finale |
| 213 |
% \fi^^A No documentation on this |
| 214 |
\endinput |