Debian Codegraph @

texmf-dist/source/latex/tuda-ci/tuda-ci.dtx

raw
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
31 %<*driver>
32 \ProvidesFile{tuda-ci.dtx}[2025-11-13 v4.05 The TUDa-CI Bundle – LaTeX using the Corporate Design of TU Darmstadt]
33 %</driver>
34 %<*package|class>
35 %<@@=ptxcd>
36 \NeedsTeXFormat{LaTeX2e}[2022-06-01]
37 %<tudapub>\ProvidesExplClass{tudapub}{2025-11-13}{4.05}{Publications using TU Darmstadt's Corporate Design (TUDa-CI)}
38 %<tudathesis>\ProvidesExplFile{tudathesis.cfg}{2025-11-13}{4.05}{Special Features for publication type 'thesis' using TU Darmstadt's Corporate Design (tuda-ci)}
39 %</package|class>
40 %<*driver>
41 \PassOptionsToPackage{hyperindex=false}{hyperref}
42 \documentclass[
43 pdfa=false,
44 titlepage=true,
45 custommargins=geometry,
46 parskip=half-,
47 textaccentcolor=black,
48 class=report,
49 IMRAD=false,
50 accept-missing-logos=true,
51 ]{tudapub}
52 \let\tudamaketitle\maketitle% avoid issues due to catcode changes
53 \newcommand*\file[1]{\texttt{#1}}
54 % by default doc.sty would define this to be used as a wrapper for the index code reference numbers
55 \newcommand*\code[1]{\texttt{#1}}
56 \newcommand*\tbs{\textbackslash}
57 \newcommand*\pkg[1]{\textsf{#1}}
58 \newcommand*\cls[1]{\textsf{#1}}
59 \usepackage[german,english]{babel}
60 \usepackage{doc}
61 \let\maketitle\tudamaketitle% restore
62 \usepackage{tabularx}
63 \usepackage{booktabs}
64 \usepackage{verbatim}% for \comment
65 \usepackage{minted}
66 \usepackage[autostyle]{csquotes}
67 \usepackage{hologo}
68
69 \usepackage{xspace}
70 \AddToHook{cmd/KOMAScript/after}{\xspace}
71
72 \providecommand*{\codefamily}{\ttfamily}
73 \DeclareTextFontCommand{\codefont}{\codefamily}
74 \ProvideDocElement[idxtype = option, idxgroup = options]{Option}{optionenv}
75 \makeatletter
76 \ExplSyntaxOn
77 \newcommand{\PrintDescribeKeyOption}[1]{\parbox[b]{\linewidth}{\raggedleft\MacroFont #1}\rlap{=}}
78
79 \cs_new:Npn \__ptxtools_parse_key_option:w #1 #2 #3 #4 = #5 \q_stop {
80 \noindent{\let\PrintDescribeOption\PrintDescribeKeyOption\DescribeOption{#4}}\makebox[\linewidth]{
81 \IfBooleanTF{#3}{\textsf{#5}}{\textsf{(#5)}}
82 \hfill
83 \IfBooleanTF{#1}
84 {#2}
85 {(default:~\codefont{#2})}
86 }
87 }
88
89 \cs_new:Npn \__ptxtools_parse_key_option_item:w #1 #2 #3 #4 = #5 \q_stop {
90 \item[\let\MacroFont\codefamily\DescribeOption{#4=}\IfBooleanTF{#3}{\textsf{#5}}{\textsf{(#5)}}]
91 \hfill
92 \IfBooleanTF{#1}
93 {#2}
94 {(default:~\codefont{#2})}\newline
95 }
96
97 \NewDocumentCommand{\DescribeKeyOption}{smms}{
98 \__ptxtools_parse_key_option:w #1 {#3} #4 #2 \q_stop
99 }
100
101 \NewDocumentCommand{\KeyOptionItem}{smms}{
102 \__ptxtools_parse_key_option_item:w #1 {#3} #4 #2 \q_stop
103 }
104
105 %%%%%%%%%
106 %% Implementation matching the implementtion of documentation/implementation like in
107 %% l3doc.dtx version of 2024-12-25
108 %% Copyright (C) 1990-2024 The LaTeX Project
109 %%%%%%%%%
110
111 \bool_new:N \l__ptxtools_in_implementation_bool
112 \bool_new:N \g__ptxtools_typeset_documentation_bool
113 \bool_new:N \g__ptxtools_typeset_implementation_bool
114 \bool_set_true:N \g__ptxtools_typeset_documentation_bool
115 \bool_set_true:N \g__ptxtools_typeset_implementation_bool
116 \NewDocumentCommand \EnableDocumentation { }
117 { \bool_gset_true:N \g__ptxtools_typeset_documentation_bool }
118 \NewDocumentCommand \EnableImplementation { }
119 { \bool_gset_true:N \g__ptxtools_typeset_implementation_bool }
120 \NewDocumentCommand \DisableDocumentation { }
121 { \bool_gset_false:N \g__ptxtools_typeset_documentation_bool }
122 \NewDocumentCommand \DisableImplementation { }
123 { \bool_gset_false:N \g__ptxtools_typeset_implementation_bool }
124 \NewDocumentEnvironment { documentation } { }
125 {
126 \bool_if:NTF \g__ptxtools_typeset_documentation_bool
127 { \bool_set_false:N \l__ptxtools_in_implementation_bool }
128 { \comment }
129 }
130 { \bool_if:NF \g__ptxtools_typeset_documentation_bool { \endcomment } }
131 \NewDocumentEnvironment { implementation } { }
132 {
133 \bool_if:NTF \g__ptxtools_typeset_implementation_bool
134 { \bool_set_true:N \l__ptxtools_in_implementation_bool }
135 { \comment }
136 }
137 { \bool_if:NF \g__ptxtools_typeset_implementation_bool { \endcomment } }
138 \let\saved_macrocode\macrocode
139 \let\saved_endmacrocode\endmacrocode
140 \def\macrocode{
141 \bool_if:NTF \g__ptxtools_typeset_implementation_bool
142 \saved_macrocode
143 \comment
144 }
145 \def\endmacrocode{
146 \bool_if:NTF \g__ptxtools_typeset_implementation_bool
147 \saved_endmacrocode
148 \endcomment
149 }
150
151 %%%%%%%%%
152 %% end of the snippet adapted from l3doc.dtx
153 %%%%%%%%%
154
155 \usepackage{minted}
156 \newminted[Syntax]{latex}{gobble=2, tabsize=4}
157 \newminted[example]{latex}{gobble=2, tabsize=4}
158 \setminted{escapeinside=||}
159
160 \geometry{
161 top=\g_ptxcd_topMargin_dim,
162 inner=\g_ptxcd_innerMargin_dim,
163 outer=\g_ptxcd_outerMargin_dim,
164 bottom=\g_ptxcd_bottomMargin_dim,
165 columnsep= \g_ptxcd_columnSep_dim,
166 includehead,
167 includefoot,
168 includemp,
169 nomarginpar,
170 includemp,
171 marginpar=\g_ptxcd_marginpar_dim,
172 marginparsep=\g_ptxcd_columnSep_dim,
173 headheight=\g_ptxcd_headheight_dim,
174 reversemp
175 }
176
177 % Loader for dtx files so the preamble is only necessary once
178 \NewDocumentCommand{\TUDaLoadDocDTX}{m}{
179 \exp_args:No \clist_map_inline:nn {#1} {\DocInput{##1}}
180 }
181
182 \ExplSyntaxOff
183 \newcommand{\docmarginpar}[1]{\frame{#1}}
184
185 \makeatother
186
187 \providecommand*{\sarg}{\codefont{*}}
188 \providecommand*\marg[1]{%
189 {\codefamily\char`\{}\meta{#1}{\codefamily\char`\}}}
190 \providecommand*\oarg[1]{%
191 {\codefamily[}\meta{#1}{\codefamily]}}
192 \providecommand*\parg[1]{%
193 {\codefamily(}\meta{#1}{\codefamily)}}
194
195 \usepackage{biblatex}
196 \addbibresource{DEMO-TUDaBibliography.bib}
197
198 \hypersetup{hidelinks}
199
200 \usepackage{pifont}% Zapf-Dingbats Symbols
201 \newcommand*{\FeatureTrue}{\ding{52}}
202 \newcommand*{\FeatureFalse}{\ding{56}}
203 \EnableCrossrefs
204
205 \CodelineIndex
206 \RecordChanges
207
208 \providecommand*{\TUDaDocDTXfiles}{tuda-ci.dtx,tudacolors.dtx}
209
210 \begin{document}
211 \OnlyDescription
212 \DisableImplementation
213 \TUDaLoadDocDTX{\TUDaDocDTXfiles}
214 \PrintChanges
215 \printbibliography
216 % Restore \code to be a wrapper for index numbers
217 \begingroup
218 \renewcommand*\code[1]{#1}
219 \PrintIndex
220 \endgroup
221 \end{document}
222 %</driver>
223 % \fi
224 %
225 % \changes{v3.90}{2024-02-01}{Converted to DTX file}
226 %
227 % \DoNotIndex{\newcommand,\newenvironment}
228 % \GetFileInfo{tuda-ci.dtx}
229 % \title{TUDa-CI – Corporate Design for TU Darmstadt using \LaTeX}
230 % \subtitle{Documentation for the TUDa-CI bundle}
231 % \author{Marei Peischl\thanks{Email: \href{mailto:[email protected]}{[email protected]}}}
232 % \date{\fileversion, dated \filedate}
233 % \maketitle
234 %
235 % \begin{abstract}
236 % The TUDa-CI-Bundle provides a possibility to use the Corporate Design of TU Darmstadt with \LaTeX.
237 % Therefore, it contains document classes as well as some helper packages and config files together with some templates for user documentation.
238 % Up to Version 4.00 the documentation was only included in the demo files.
239 % This document now sums up all features and includes references to other package documentations if required.
240 %
241 % This process is not yet finished and will probably last some more time.
242 % So there will be more documentation as soon as possible and we try to gather everything within this document.
243 % There are possibilities to help with the documentation especially the translation of the descriptions already aailable in German.
244 % In case you want to help feel free to provide a pull-request via the GitHub repository or contact the author for other options of contributing.
245 % \end{abstract}
246 %
247 % \tableofcontents
248 %
249 % \chapter{Contents of the TUDa-CI Bundle}
250 % The TUDa-CI Bundle currently contains template files for the following document types:
251 %
252 % \begin{description}
253 % \item[Print publications] generic document class which provides modes for more specific documents.
254 % The basic documentation applies to all types and can be found in \autoref{sec:tudapub}.
255 % \begin{itemize}
256 % \item \file{DEMO-TUDaPub.tex}: default document matching the CI guideline
257 % \item minimal Template for internal reports \file{DEMO-TUDaReport.tex} using \option{type=intern} (see description of \option{type} in \autoref{sec:options} on \pageref{option:type})
258 % \item (PhD) theses, using \option{type=thesis}. This also extends the functionality and adds some thesis specific mechanisms, see \autoref{sec:theses} \file{DEMO-TUDaThesis.tex} and \file{DEMO-TUDaPhD.tex}
259 % \end{itemize}
260 % \item[Scientific Posters] based on the \pkg{tcolorbox} poster library, \cite{TUDaSciPoster}
261 % \item[Presentation Slides] beamer theme. This includes the old design of 2008 as well as the redesign of 2023, \cite{TUDaBeamer}
262 % \item[Announcement Posters] for event or job announcements, \cite{TUDaPoster}
263 % \item[Leaflets] \cite{TUDaLeaflet}
264 % \item[Exercise Sheets/Exams] \cite{TUDaExercise}
265 % \item[Letters] \cite{TUDaLetter}
266 % \end{description}
267 %
268 % The document classes use internal auxiliary packages to simplify the usage and reduce the maintenance effort.
269 % These are called by the elements they define:
270 % \pkg{tudacolors}, \pkg{tudafonts}, \pkg{tudarules} as well as the \pkg{pgfplots} color schemes defined by \pkg{tuda-pgfplots}.
271 %
272 % Additionally, the setup is defined to support department specific configuration files.
273 % Officially we currently only support the setup of the department of mechanical engineering, see \autoref{sec:mecheng}.
274 % There may be unofficial custom setups within the departments.
275 % Those are not officially supported.
276 % In case you want to provide your own and add it to TUDa-CI, please have a look at \autoref{sec:department-config}.
277 %
278 % \chapter{Getting Started}
279 % The TUDa-CI bundle is available via CTAN\cite{ctan-tuda-ci} and therefore no manual installation should be required.
280 % For TUDa members the HRZ also provides an on-premise Overleaf instance which also contains a release including all necessary files.
281 % In case you are a member of TU Darmstadt you can access the server via \url{https://sharelatex.tu-darmstadt.de/}.
282 %
283 % \section{Logo installation}
284 % Sadly the logo files may not be published together with this template.
285 % So it is necessary to either disable the loading or install the files.
286 % The easiest way to do so is by placing a copy of the required logos in your working directory.
287 % But this will be required for every document you want to use these templates for.
288 %
289 % A better alternative would be a local installation of the logo file.
290 % This can be done by moving the file info your \verb+TEXMFHOME+ directory.
291 % On standard \TeX{} Live Installations this would be called \path{texmf/} in your users home directory.
292 % Inside this one the logo files have to be placed according to the TDS (\TeX{} Directory Structure), which means it has to be copied into
293 % \path{texmf/tex/latex/tuda-ci-logos}.
294 %
295 % Alternatively there are scripts to be run inside a terminal to automatically detect the correct location.
296 % These can be found inside the \path{tools} directory of TUDa-CI's GitHub Repository (\citeurl{tuda-ci-github}).
297 %
298 % \chapter{\cls{tudapub} – generic class for articles and theses}
299 % \label{sec:tudapub}
300 % The TUDa-CI bundle uses a generic document class to be more flexible with the layout adjustments.
301 % The setup is based on \KOMAScript and this section is listing the features.
302 % Afterwards there will be specific information on the thesis modes.
303 %
304 % \section{Usage and class options}
305 % \label{sec:options}
306 % \begin{table}
307 % \captionabove[Differences between the demo files based on \cls{tudapub}]{
308 % Differences between the demo files based on \cls{tudapub}.
309 % The template files use different options depending on the actual purpose.
310 % This tabular gives an overview of the Features shown inside the tempaltes as well as the initial settings.
311 % }
312 % \label{tab:demo-options}
313 % \begin{addmargin}[\dimexpr-\marginparwidth-\marginparsep]{0pt}
314 % \begin{tabularx}{\linewidth}{@{}p{.25\linewidth}c>{\centering\arraybackslash}Xcc@{}}
315 % \toprule
316 % Option & DEMO-TUDaThesis & DEMO-TUDaPhD & DEMO-TUDapub & DEMO-TUDaReport \\
317 % \midrule
318 % twoside & \FeatureFalse & \FeatureTrue & \FeatureFalse & \FeatureFalse \\\midrule
319 % parskip & \FeatureTrue & \FeatureFalse & \FeatureTrue & \FeatureFalse \\\midrule
320 % colophone & \FeatureFalse & \FeatureTrue & \FeatureFalse & \FeatureFalse \\\midrule
321 % dedication & \FeatureFalse & \FeatureTrue & \FeatureFalse & \FeatureFalse \\\midrule
322 % font size & 11pt & 11pt & 9pt & 9pt \\\midrule
323 % ruledheaders & section & chapter & all & all \\\midrule
324 % class & scrreprt & scrbook & scrartcl & scrartcl \\\midrule
325 % thesis & \ttfamily thesistype=bachelor & \ttfamily thesistype=dr, dr=rernat & \FeatureFalse & \FeatureFalse \\\midrule
326 % marginpar & \FeatureFalse & \FeatureFalse & \FeatureTrue & \FeatureFalse \\\midrule
327 % Affidavit\newline
328 % \rlap{(\enquote{Selbstständigkeitserklärung})} & \FeatureTrue & \FeatureTrue & \FeatureFalse & \FeatureFalse \\\midrule
329 % abstract & \FeatureFalse & \FeatureTrue & \FeatureTrue & \FeatureFalse \\\midrule
330 % custommargins & \FeatureTrue & \FeatureTrue & \FeatureFalse & \FeatureFalse \\
331 % \bottomrule
332 % \end{tabularx}
333 % \end{addmargin}
334 % \end{table}
335 % The class is loaded using
336 % \begin{Syntax}
337 % \documentclass[|\meta{Options}|]{tudapub}
338 % \end{Syntax}
339 % \noindent TUDa-CI defines some additional options to be used. These are described below.
340 % The shown default values apply only for the document class itself. The template files may use different settings.
341 % An overview of these differences are shown in \autoref{tab:demo-options}.
342 %
343 % \DescribeKeyOption{class=article/report/book}{article}
344 % This option selects the base document class.
345 % The values load the corresponding \KOMAScript class \cite{scrguide-en}.
346 % The article value thus loads \cls{scrartcl}.
347 %
348 % \KOMAScript is a collection of classes and packages for \LaTeX{} which, in addition to the typographical adaptations to the European area, also greatly extends the configuration options.
349 % The documentation is also available in German \cite{scrguide-de}.
350 %
351 % \DescribeKeyOption{accentcolor=\meta{Color}}{0b}*
352 % Selects the spot color for use within the identity bar. In addition to these colors, any defined can be used.
353 % See \autoref{sec:color} for the list of predefined colors as well as additional options for a more detailed selection.
354 % The Options \option{accentcolor}, \option{textaccentcolor} and \option{identbarcolor} will be passed to tudacolors.
355 % Using those, the colors can even be set independently of each other.
356 %
357 % \DescribeKeyOption{custommargins=\meta{Boolean}/geometry}{false}
358 % According to the corporate design, the line lengths are too long from a typographical point of view.
359 % This is why the custommargins class option exists.
360 % Details are described within \autoref{sec:margins}.
361 %
362 % \DescribeKeyOption{marginpar=true/false/auto}{auto}
363 % Controlls the marginpar. The default setting is auto.
364 % This means that the marginpar column runs across the fifth column of the layout grid \cite{TUDaGuideline}.
365 %^^A\marginpar{Marginpar example}
366 % Above this, the option also accepts boolean values. False would set width of the column to 0.
367 % The mechanism itself is not deactivated.
368 %
369 % The font inside the marginpars are controlled using the komafont mechanism \cite{scrguide-en} using the \code{marginpar} element.
370 % It is defined as
371 % \begin{example}
372 % \setkomafont{marginpar}{\accentfont}
373 % \end{example}
374 % to extend this setting, e.\,g. by adding a color one can add
375 % \begin{example}
376 % \addtokomafont{marginpar}{\color{textaccentcolor}}
377 % \end{example}
378 % to the preamble.
379 %^^A \marginline{
380 %^^A \includegraphics[width=\marginparwidth]{example-image}\\
381 %^^A Marginpar example using ragged text made with \KOMAScript's marginline
382 %^^A }
383 %
384 % \DescribeKeyOption{twocolumn=\meta{Boolean}}{false}*
385 % Activates the two-column mode globally.
386 % In this case, however, two margin columns are created due to their nature.
387 % Use in combination with \code{marginpar=auto} is therefore questionable in most cases.
388 % If the two-column mode is only activated locally, that behavior does not apply, but the margin notes are deactivated.
389 %
390 % \DescribeKeyOption{ruledheaders=all/none/chapter/section}{all}
391 % Selects the style of the headings.
392 % \code{ruledheaders=all} selects the style framed with rules for all up to \cs{subsubsection}.
393 % This style is limited accordingly for chapter or section.
394 % False loads the \KOMAScript{} default setup instead.
395 %
396 % \DescribeKeyOption{title=default/small}{default}
397 % The relatively large font size of the title can lead to spacing issues, especially with long titles for theses.
398 % The \code{title} option prevents this by loading the font sizes set defined for the paper 1 size smaller (e.\,g. a5 font size if a4 paper is used).
399 %
400 % \DescribeKeyOption{type=publication/thesis/intern}{publication}
401 % \label{option:type}%
402 % Is used to load specific configuration for theses (\autoref{sec:thesis}) or internal documents (\autoref{sec:report}).
403 %
404 % \DescribeKeyOption{headline=true/false/automark}{false}
405 % The CI guideline \cite{TUDaGuideline} allows headers to be used ruled below the identbar.
406 % That may be confusing as the headers are typeset larger than subsection headings.
407 % Because of that it's switched off by default, but users can enable this setting using the \code{headline} option.
408 % \code{automark} will also be passed to \pkg{scrlayer-scrpage} and switch to running headers.
409 %
410 % \DescribeKeyOption{logo=head/body}{body}
411 % Sets the position of the logo on the title page, see \autoref{sec:title-options}.
412 %
413 % \DescribeKeyOption{colorback=true/false/title/body/head}{true}
414 % Change the color setup of the title page, see \autoref{sec:title-options}.
415 %
416 % \DescribeKeyOption{IMRAD=\meta{Boolean}}{true}*
417 % Toggles the check for IMRAD labels, see \autoref{sec:IMRAD}.
418 %
419 % \DescribeKeyOption{logofile=\meta{file name/path}}{tuda\_logo}*
420 % Allows an alternative logo to be used.
421 % This option is available so that the templates can also be used without the TUDa logo.
422 % The logos are reserved to be used by TUDa members and may therefore not be published with this template.
423 % In case you want to install the logo files locally you can find further information at \citeurl{TUDa-CI-Info}.
424 %
425 % \noindent Additionally all \KOMAScript{} options can be used. These are described within the documentation. Some more notes on the interaction between \KOMAScript{} and TUDa-CI can be found in \autoref{sec:KOMA}.
426 %
427 % \section{Title}\label{sec:title}
428 %
429 % The title page is generated automatically by \cls{tudapub}.
430 % The structure for this corresponds largely to the classic method using \cs{maketitle}.
431 %
432 % The \KOMAScript{} option \code{titlepage}\cite{scrguide-en} is supported to switch between separate title pages and an in-page title block.
433 % Due to the implementation, \code{titlepage=true} is treated identically to \code{titlepage=\allowbreak firstiscover}.
434 %
435 % \DescribeMacro{\titlehead}\DescribeMacro{\title}\DescribeMacro{\subtitle}\DescribeMacro{\subject}\DescribeMacro{\author}\DescribeMacro{\and}\DescribeMacro{\thanks}\DescribeMacro{\date}\DescribeMacro{\publishers}
436 % These macros are used to set the title data.
437 % If not mentioned differently all need one mandatory argument which contains the data.
438 % They are used as with standard \LaTeX{}, but there were a few added to support the additional features of the title page design.
439 % \begin{Syntax}
440 % \title{|\meta{title}|}
441 % \author{|\meta{Author1}|\thanks{Affiliation of Author1} \and |\meta{Author2}|}
442 % % |\textnormal{[…other elements…]}|
443 % \maketitle
444 % \end{Syntax}
445 %
446 % \subsection{TUDa-CI specific title elements}
447 % \DescribeMacro{\titlegraphic}
448 % Accepts any \LaTeX{} content, does not have to be an image.
449 % This is placed flush with the top corner in the main part of the title page.
450 % This macro is usually used to place a graphic:
451 % \begin{example}
452 % \titlegraphic{\includegraphics[width=\width]{example-image}}
453 % \end{example}
454 % \DescribeMacro{\width}\DescribeMacro{\height}
455 % \cs{width} and \cs{height} can be used to select the appropriate size of the image.
456 % From version 3.19, there also is a starred variant \cs{titlegraphic*}.
457 % With this, scaling and any necessary cropping to fill the reserved area is done automatically using \pkg{trimclip}.
458 % \begin{example}
459 % \titlegraphic*{\includegraphics{example-image}}
460 % \end{example}
461 %
462 % \DescribeMacro{\addTitleBox}%
463 % \DescribeMacro{\addTitleBoxLogo}
464 % \begin{Syntax}
465 % \addTitleBox{|\meta{Box Content}|}
466 % \addTitleBoxLogo*{|\meta{Logo}|}
467 % \end{Syntax}
468 % The TUDa CI design is using white boxes to place additional Information or logos on the title page.
469 % These can be added using \cs{addTitleBox} or \cs{addTitleBoxLogo}.
470 %
471 % All title boxes are placed below each other with a specified distance and use a white background.
472 % Text or an institute logo may appear here. The background hast to be white.
473 %
474 % Whereas \cs{addTitleBox} will set the box to the same width and horizontal alignment as the TUDa logo the logo variants of this macro don't have a fixed width.
475 % Here the default is to place scale the logo automtically and maual scaling has to be enforced using the starred variant:
476 %
477 % \begin{example}
478 % \addTitleBox{Text, e.\,g. Institute}
479 % \addTitleBoxLogo{example-image}
480 % \addTitleBoxLogo*{\includegraphics[width=.3\linewidth]{example-image}}
481 % \end{example}
482 %
483 % \DescribeMacro{\AddSponsor}
484 % As of version 3.0, the sponsor mechanism of \cls{tudaleaflet} is also available in \cls{tudapub}.
485 % This makes it possible to place sponsor logos below the title graphic.
486 % Sponsor logos or names can be added using \cs{AddSponsor}
487 % \begin{Syntax}
488 % \AddSponsor{|\meta{Code to insert the Logo or just the name}|}
489 % \end{Syntax}
490 % \DescribeMacro{\height} \cs{height} is defined within the argument.
491 % All sponsors added this way are aligned at their baseline.
492 % This can be used to scale multiple logos to the same height.
493 % The space between the sponsors will be horizontally filled.
494 %
495 % \DescribeMacro{\sponsors}
496 % The second variant enables manual placement with vertical alignment, as may be necessary for logos with different heights.
497 % In this case, only the spacing and seperation rules are added around the logos:
498 % \begin{Syntax}
499 % \sponsors{|\meta{logo1}\meta{logo2}|}
500 % \end{Syntax}
501 %
502 % For theses there exist additional data fields \cs{birthplace}, \cs{group}, \cs{examdate}, \cs{submissiondate}, \cs{tuprints}, \cs{urn} and \cs{reviewer}.
503 % To use these and also learn about other specials of the title mechanism within theses, please refer to \autoref{sec:theses-title}.
504 %
505 % \subsection{Options for titlepage modification}
506 % \label{sec:title-options}
507 % \DescribeKeyOption{logo=head/body}{body}
508 % The position of the logo can be switched. This is done via the class option \option{logo};
509 % \begin{description}
510 % \item[logo=head]
511 % The logo is placed in the header directly next to the title, which is reduced in width.
512 % The background of the title is colored in the color of the identity bar.
513 % This setting also will move the boxes below the logo to the page head.
514 %
515 % \item[logo=body] The logo including the info boxes is placed in the body of the front page.
516 % \end{description}
517 %
518 % \DescribeKeyOption{colorback=\meta{Boolean}/title/head/body}{true}
519 % Similar to the logo position the color structure can be adjusted.
520 % \option{colorback} toggles between the colored block on the title page and the white background.
521 %
522 % The other values will enable the colored area but allow switching between positions.
523 % \begin{description}
524 % \item[colorback=title] Only the title background (without subtitle) is colored.
525 % \item[colorback=head] Background of the total title block including subtitles is colored.
526 % \item[colorback=body] Only the background of the area used for the \cs{titlegraphic} is colored.
527 % \end{description}
528 %
529 % \subsection{Extra title material for theses}
530 % For \option{mode=thesis} the title page works a little different.
531 % Here some data elements are used to provide an interface to be overwritten and are prefilled using additional data fields.
532 % The fields only existing in \option{thesis} mode are: \cs{birthplace}, \cs{group}, \cs{examdate}, \cs{submissiondate}, \cs{tuprints}, \cs{urn} and \cs{reviewer}.
533 % For more information on their use and other settings for theses have a look at \autoref{sec:theses}.
534 %
535 % \subsection{Abstract}
536 % \cls{tudapub} extends the availability of the \environment{abstract} environment to \cls{scrbook}.
537 % Additionally, it adds an optional argument to select the language.
538 % This should be used to use multiple abstracts of different languages within one document.
539 %
540 % \begin{example}
541 % \begin{abstract}
542 % Abstract using the document main language (here English)
543 % \end{abstract}
544 %
545 % \begin{abstract}[german]
546 % Weitere Zusammenfassung in einer anderen Sprache (hier Deutsch),
547 % sofern benötigt.
548 % \end{abstract}
549 % \end{example}
550 %
551 % It is important that all languages used in the document are loaded.
552 % In the case of the example, both options, \option{english} and \option{german} must be passed to the babel package.
553 %
554 % \section{PDF/A}
555 %
556 % The university library requires submissions to be compliant to the PDF/A standard.
557 % \DescribeKeyOption{pdfa=\meta{Boolean}}{true}
558 % The TUDaPub class supports the PDF/A 2b standard.
559 % PDF/A mode is automatically activated within \cls{tudapub}.
560 % Depending on the document it's using an implementation via the \pkg{pdfx} package or the \LaTeX{} kernels own PDF management.
561 %
562 % \LaTeX{} is not validating the file in any way, it is just using compatible settings for all elements processed by the compiler.
563 % As \LaTeX{} is not doing any processing on image files the user has to ensure the font settings match the requirements for PDF/A.
564 %
565 % \DescribeKeyOption{pdfx=\meta{Boolean}}{true}
566 % \cls{tudapub} will try to automatically select the best method.
567 % This is done using \option{pdfx} option.
568 % This should only be toggled manually if the user is totally sure to understand the impact.
569 % Please be aware that the \option{pdfx} option is incompatible with any use of the \pkg{pdfmanagement}.
570 % There will be an error message if this combination is active and \option{pdfx} as well as \option{pdfa} will be disabled.
571 %
572 % \subsection{Creating PDF/A using the PDF management}
573 % \label{sec:pdfmanagement}
574 % The template files which use PDF/A by default now include the settings for the PDF management:
575 % \begin{example}
576 % \DocumentMetadata{
577 % pdfstandard=a-2b,
578 % pdfversion=1.7,
579 % lang=en,% or de or …
580 % }
581 % \end{example}
582 % This can also be used within other documents. More Information on this structure can be found in the documentation of the \pkg{pdfmangement-testphase} \cite{pdfmanagement-testphase} as well as \pkg{l3pdfmeta} \cite{l3pdfmeta}.
583 %
584 % If this setting is used \cls{tudapub} will automatically disable the loading for \pkg{pdfx}.
585 % \cls{tudapub} will automatically try to pass the title data to the metadata.
586 % In case the title contains more complex material which can not be expanded into text it's possible to overwrite these settings using \pkg{hyperref}'s \cs{hypersetup}.
587 % The demo files include examples.
588 %
589 % \subsection{Creating PDF/A using the pdfx}
590 % In older versions of this bundle we used \pkg{pdfx} to create PDF/A compliant output files.
591 % If the PDF management using \cs{DocumentMetadata} is not detected to be active, \cls{tudapub} will still try to use this mechanism.
592 % The metadata setup for the XMP data then works completely different.
593 %
594 % The compiler is creating an additional \file{\cs{jobname}.xmpdata} file.
595 % It is tried to insert the title data directly. The title data is usually transferred directly.
596 % However, this can lead to problems if there are macros used within title material.
597 % For example, the subtitle for this document contains the \LaTeX{} macro, but only text elements can be used.
598 % Similar to the link labels within the PDF bookmarks.
599 %
600 % \DescribeMacro{\Metadata}To avoid this issue, \cls{tudapub} provides the macro \cs{Metadata}.
601 % All variables that can be processed by \pkg{pdfx} can be set here according to the key=value structure.
602 % \begin{example}
603 % \Metadata{
604 % author=Marei Peischl (peiTeX),
605 % title=LaTeX im Corporate Design der TU Darmstadt,
606 % }
607 % \end{example}
608 % Please note that this macro only works if PDF/A output is activated, and no PDF management is used.
609 % If this is not the case, \cls{tudapub} issues a corresponding error message or warning.
610 %
611 % For a full list of the available metadata fields have a look at the \pkg{pdfx} documentation \cite{pdfx}.
612 %
613 % \subsection{Additional metadata as requested by the university library}
614 % \label{sec:IMRAD}
615 % There is a mechanism for identifying the IMRaD \cite{imrad} structuring model.
616 % In the style of the individual sub-areas, the call of
617 % \begin{example}
618 % \IMRADlabel{introduction}
619 % \IMRADlabel{methods}
620 % \IMRADlabel{results}
621 % \IMRADlabel{discussion}
622 % \end{example}
623 % would generate the corresponding labels.
624 % They have the name \codefont{IMRAD:\meta{key}}.
625 %
626 % \DescribeKeyOption{IMRAD=\meta{boolean}}{true}*
627 % The check mechanism is activated by default at the request of the library.
628 % If you are not planning to use these labels or this structure just don't match your document, the warning can be deactivated using the \option{IMRAD=false}.
629 %
630 % \subsection{Colors conversion and profile}
631 % \label{sec:pdfa-color}
632 % PDF/A can only use one color model within a document.
633 % By default, if no specific profile is selected TUDa-CI will convert the colors to RGB.
634 % However, as there is no clear conversion, CMYK elements should not be used in \option{pdfa=true} mode.
635 %
636 % This mode is not suitable for print output.
637 % There will be a warning if the conversion is triggered.
638 % To use CMYK colors with PDF/A it's necessary to use PDF/A via the PDF management (\autoref{sec:pdfmanagement}) and select a specific color profile \cite[see][]{l3pdfmeta}.
639 %
640 % \section{(PhD) Theses – Special options and elements used in these templates}
641 % \label{sec:theses}
642 %
643 % As mentioned before the these templates \file{DEMO-TUDaThesis} and \file{DEMO-TUDaPhD} are based on \cls{tudapub}.
644 % Therefore, they support all options as described before but provide some additional mechanisms.
645 % To load the thesis specific config the option \option{type=thesis} has to be used.
646 % As there are additional thesis specific options it's also possible to use the \option{thesis} key directly and add the specific options within braces:
647 %
648 % \begin{example}
649 % \documentclass[
650 % english,
651 % class=report,
652 % thesis={type=master}
653 % |[…]|
654 % ]{tudapub}
655 % \end{example}
656 %
657 % \DescribeKeyOption{thesis/type=bachelor/pp/master/dr/drfinal/\meta{text}}{initially unset}*
658 % Selection of the type.
659 % This is printed on the title page and also selects which data is mandatory.
660 % Possible values are listed below including their impact. The items in parentheses list the required data for that type.
661 % \begin{description}
662 % \item[sta] \enquote{Studienarbeit}: Student research project. (\cs{title}, \cs{author}, \cs{date})
663 % \item[bachelor] \enquote{Bachelor thesis}. (\cs{title}, \cs{author}, \cs{submissiondate}, \cs{department}, \cs{reviewer})
664 % \item[master] \enquote{Master thesis}. (\cs{title}, \cs{author}, \cs{submissiondate}, \cs{department}, \cs{reviewer})
665 % \item[pp] \enquote{Project proposal}. (\cs{title}, \cs{author}, \cs{date}, \cs{department})
666 % \item[dr] submitted Doctoral thesis (\cs{title}, \cs{author}, \cs{submissiondate}, \cs{department}, \cs{reviewer})
667 % \item[drfinal] accepted Doctoral thesis (\cs{title}, \cs{author}, \cs{submissiondate}, \cs{examdate}, \cs{department}, \cs{reviewer})
668 % \end{description}
669 % If a type is specified that was not listed the text is directly used as type.
670 % In this case, there are no mandatory title fields except the title.
671 %
672 % \DescribeKeyOption{dr=rernat/rerpol/ing/phil}{initially unset}
673 % Loads one of the predefined texts for the title page.
674 %
675 % For example, the value phil would use:
676 % \foreignquote{german}{Zur Erlangung des Grades eines Doktor der Philosophie (Dr.\,phil.)}
677 % Please be aware that the titlepage is enforced to use German.
678 %
679 % \DescribeMacro{\drtext}If none of these values correspond to the desired title, a text can be transferred directly.
680 % \begin{example}
681 % \drtext{To obtain the degree …}
682 % \end{example}
683 %
684 %
685 % \DescribeKeyOption{department=\meta{shorthand or text}}{initially unset}
686 % The departments are permanently stored as text modules in German and English.
687 % This option enables selection as a document class option.
688 % For compatibility reasons, however, the department macro can also be used for this.
689 % The following shorthands are predefined:
690 %
691 % \begin{tabular}{@{}l@{${}\to{}$}l@{}}
692 % arch & Architecture \\
693 % bauing & Civil and environmental engineering \\
694 % bio & Biology \\
695 % chem & Chemistry \\
696 % etit & Electrical Engineering and Information Technology \\
697 % gugw & History and Social Sciences \\
698 % humanw & Human Sciences \\
699 % inf & Computer Science \\
700 % mb & Mechanical Engineering \\
701 % matgeo & Materials and Earth Sciences \\
702 % math & Mathematics \\
703 % phys & Physics \\
704 % wi & Law and Economics
705 % \end{tabular}
706 %
707 % In addition to the departments, there are also \enquote{fields or study}.
708 % These are not available for doctoral theses.
709 % If the given value is not found in the departments the fields of study will be checked afterwards.
710 % The study areas have the following shorthands:
711 %
712 % \begin{tabular}{@{}l@{${}\to{}$}l@{}}
713 % ce & Computational Engineering \\
714 % ese & Energy Science and Engineering \\
715 % ist & Information Systems Engineering \\
716 % mech & Mechanics \\
717 % metro & Mechatronics
718 % \end{tabular}
719 %
720 % If anything other than one of these shorthands is found, the provided text is used directly and a corresponding warning is issued.
721 %
722 % \subsection{Thesis specific title page settings and customization}
723 % \label{sec:theses-title}
724 % \DescribeKeyOption{instbox=\meta{Boolean}}{true}*
725 % Selecting the department also creates a box on the title page below the logo.
726 % In some cases this setting does not match the requirements.
727 % Therefore, the option \option{instbox} can be deactivated.
728 %
729 % \DescribeKeyOption{ignore-missing-data=\meta{Boolean}}{false}
730 % This option is a switch that makes it possible to disable the error message about title data that has not been transferred.
731 % In this case, only a warning is created if the specified data does not match the requirements.
732 %
733 % \DescribeMacro{\publishers}
734 % Is used here for the location and is preset with \foreignquote{german}{Darmstadt} or \foreignquote{german}{Darmstadt, Technische Universität Darmstadt} (for PhD theses).
735 %
736 % \DescribeMacro{\subject}
737 % Will be placed below the \cs{subtitle} as for the normal title page, but will hold all the additional information which can be provided using the data fields described in this section.
738 %
739 % \DescribeMacro{\birthplace} Place of birth.
740 % \DescribeMacro{\department}
741 % Subject/field of study. It's preferred to set it via the class option.
742 % However, the argument is processed in the same way.
743 % This macro also provides the functionality of specifying entries that differ from the default entries.
744 % Especially if a different text to the default \enquote{in the department of} and its variants is required.
745 % For this purpose, \cs{department} provides an optional argument:
746 % \begin{Syntax}
747 % \department[|\meta{replacement text}|]{|\meta{abbreviation/name}|}
748 % \end{Syntax}
749 % In addition, from version 2.01 there is also the option of replacing the entire text \enquote{in the department \meta{department name}} as well as the information in the info box on the title page. This is done using the starred variant:
750 % \begin{example}
751 % \department*[text for the box]{text between type and author}
752 % \end{example}
753 % \DescribeMacro{\examdate}% \DescribeMacro{\submissiondate} Will be added within the description block \cs{subject}.
754 %
755 % \DescribeMacro{\institution}\DescribeMacro{\department}\DescribeMacro{\institute}\DescribeMacro{\group}
756 % Will be added inside a title box as was described in \autoref{sec:title} below each other.
757 %
758 % \DescribeMacro{\reviewer} Reviewers.
759 % Multiple reviewers are separated by \cs{and} as for authors.
760 % The numbering runs from left to right.
761 %
762 % \minisec{Adjusting the reviewer labels}
763 % The identifier can be changed using an optional argument:
764 % \begin{Syntax}
765 % \reviewer[|\meta{replacement identifier}|]{|\meta{name1}| \and |\meta{name2}|}
766 % \end{Syntax}
767 % To change the numerical designation, a comma list is used instead of a single label:
768 % \begin{example}
769 % \reviewer*[identifier1, identifier2]{name1 \and name2}
770 % \end{example}
771 % In this case, the automatic numbering before the identifier is omitted.
772 % If, for example, the wording of the doctoral regulations is to be complied with, the following applies:
773 % \begin{example}
774 % \reviewer[Erstreferent\_in,Koreferent\_in]{Name1 \and Name2}
775 % \end{example}
776 %
777 % \DescribeMacro{\setupReviewName}There is also a macro for creating department-specific templates.
778 % This allows changes to be made without calling \cs{reviewer}.
779 % \begin{Syntax}
780 % \setupReviewName{|\meta{Alternative label to replace \enquote{Review}}|}
781 % \setupReviewName[1]{|\meta{Erstreferent}|}
782 % \setupReviewName*{|\meta{label1}|,|\meta{label2}|}
783 % \end{Syntax}
784 %
785 % \DescribeKeyOption{reviewer-on-uppertitleback=\meta{Boolean}}{false}*
786 % As of version 3.26, the reviewers are no longer named on the back of the title page.
787 % This can be controlled using the thesis option \option{reviewer-on-uppertitleback}.
788 %
789 % \DescribeMacro{\studentID} Matriculation number. According to the template specifications, this information is always optional.
790 %
791 % \DescribeMacro{\titleintro}\DescribeMacro{\titleaddendum} From version 2.03, these hooks can be used to add any text directly in front or after the automatic generated subject block holding the thesis data.
792 %
793 % \DescribeMacro{\tuprints}\label{page:tuprints} Publication via TUprints requires this setting.
794 % The data should be provided by the TUprints submission process.
795 % \begin{example}
796 % \tuprints{
797 % doi=https://doi.org/10.26083/tuda-1234,
798 % urn=https://nbn-resolving.de/urn:nbn:de:tuda-tuda-567890,
799 % url=https://tuprints.ulb.tu-darmstadt.de/handle/tuda/56789,
800 % year=2022
801 % }
802 % \end{example}
803 %
804 % \DescribeKeyOption{printid=\meta{TUprints print ID}}{\meta{initially unset}}*
805 % \DescribeKeyOption{url=\meta{TUprints print ID}}{\meta{initially referencing the printid}}*
806 % \DescribeKeyOption{urn=\meta{TUprints URN}}{\meta{initially unset}}*
807 % \DescribeKeyOption{doi=\meta{TUprints DOI}}{\meta{initially unset}}*
808 % If the argument does not contain an equals sign, the value is set as \option{printid} and no \option{urn} is specified.
809 %
810 % \option{printid} is the ID number of the TUprints entry and will be used automatically to create a hyperlink to the corresponding URL. %%^^A\issue 505
811 % The URN is – in addition to the DOI – a permanently unique resource identifier for the document.
812 % In TUprints, the number corresponds to the \option{printid} with the addition of a check digit.
813 % All dates can be found in the details of the TUprints entry.
814 %
815 % \minisec{License information}
816 % \DescribeKeyOption{license=\meta{License key or license text}}{cc-by-4.0}*
817 % From version 3.08 there are predefined values for \option{license} simplify customization. These are as follows:
818 %
819 % \parbox[t]{.5\linewidth}{%
820 % \codefamily
821 % \href{https://creativecommons.org/licenses/by/4.0/}{cc-by-4.0} \textnormal{default since version 4.0}\par
822 % \href{https://creativecommons.org/licenses/by-sa/4.0/}{cc-by-sa-4.0}\par
823 % \href{https://creativecommons.org/licenses/by-nc-sa/4.0/}{cc-by-nc-sa-4.0}\par
824 % \href{https://creativecommons.org/licenses/by-nc-/4.0/}{cc-by-nc-4.0}\par
825 % }%^^A
826 % \parbox[t]{.5\linewidth}{
827 % \codefamily
828 % \href{https://creativecommons.org/licenses/by-nd/4.0/}{cc-by-nd-4.0}\par
829 % \href{https://creativecommons.org/licenses/by-nc-nd/4.0/}{cc-by-nc-nd-4.0}\par
830 % \href{https://rightsstatements.org/page/InC/1.0/}{inc-1.0}\textnormal{ (From version 3.36)}\par
831 % \href{https://creativecommons.org/licenses/by-nc-nd/2.0/}{cc-by-nc-nd-2.0-en}\par
832 % }
833 %
834 % The introduction of this option was part of the preparation for adapting the standard license.
835 % The corresponding discussion can be found at \url{https://github.com/tudace/tuda_latex_templates/issues/251}.
836 % The adjustment of the default setting for TUDa-CI was made with version 4.0.
837 %
838 % The ULB of TUDa offers support in choosing a suitable Creative Commons license at \url{https://www.ulb.tu-darmstadt.de/dpub} or the CC project itself via its license finder at \url{http://creativecommons.org/choose/}.
839 % TU Darmstadt recommends use of the open CC BY 4.0 license in its Publication Guidelines and Open Access Policy.
840 %
841 % If a value different from the keys listed above is found, this value is used directly in place of the license text.
842 % If it itself contains an equals signs or commas, grouping is necessary.
843 %
844 % \subsection{Affidavit}
845 % \DescribeMacro{\affidavit}
846 % The macro \cs{affidavit} creates a declaration of authorship with a signature line.
847 % The name/signature could be set via options or the Information provided with \cs{author} is used.
848 % In the demo documents, the affidavit is located directly after the title.
849 %
850 % \DescribeKeyOption{hide-architecture-note=\meta{Boolean}}{false}*
851 % The class option \option{hide-architecture-note} allows to disable the note specifically tagetting theses of the architecture department.
852 % For compatibility reasons it's false by default. So the note will be printed.
853 % It's also possible to set this directly as an affidavit option if it's not a PhD theses.
854 %
855 % \minisec{Disclaimer:}
856 % The \cs{affidavit} command is using the current version (as of 2025-01-22) of the text provided at
857 % {\small\url{https://www.tu-darmstadt.de/studieren/studierende_tu/studienorganisation_und_tucan/hilfe_und_faq/artikel_details_de_en_37824.de.jsp}}.
858 %
859 % According to the department II, the legally binding text can always be found there.
860 % The docx file should be used, printed out, signed, scanned and then integrated.
861 % The easiest way to do this is to use the pdfpages package.
862 % Please ensure to check which regulations apply to your thesis before submission.
863 % TUDa-CI can not ensure the text is up to date or matches your submission type.
864 %
865 % From version 3.32, the distinction between an affidavit for digital or printed submissions, which has been supported since version 3.06, no longer applies.
866 % For compatibility reasons, the options are still available, but have the same effect.
867 % It is imperative that students check whether the text corresponds to the required version before submitting a thesis.
868 %
869 % PhD theses use a different text here; the affidavit option \option{affidavit=dr} is used internally to differentiate between them.
870 %
871 % Version 3.20 also allows the transfer of further options for the signature name, a signature image or the location.
872 % The extent to which these options may be used must be clarified by the user before submission.
873 % TUDa-CI cannot make a reliable statement on this.
874 % \begin{example}
875 % \affidavit[
876 % signature=Signature name,
877 % signature-image={\includegraphics[width=\width]{signatureimage}}
878 % ]
879 % \end{example}
880 % A vertical shift of the signature image is not implemented directly, but is easily possible by using the \LaTeX macro \cs{raisebox}\marg{shift}\marg{content}.
881 %
882 % It is also possible to print an affidavit in another language as a supplement.
883 % In order to handle the structure and any necessary language switching, there is an environment:
884 % \begin{Syntax}
885 % \begin{affidavit*}[|\meta{Babel language option}]|{|\meta{heading}|}
886 % \meta{Text}
887 % \end{affidavit*}
888 % \end{Syntax}
889 % This version deliberately does not have a signature line, as the developers do not consider this version to be legally binding.
890 % However, the environment can also be used for special forms of explanation.
891 % In this case, an additional signature line can be added:
892 % \DescribeMacro{\AffidavitSignature}\DescribeKeyOption{signature-location=\meta{Location}}{Darmstadt}*
893 % \begin{Syntax}
894 % \AffidavitSignature[|\meta{city}|]
895 % \end{Syntax}
896 %
897 %
898 % \section{Further configuration options}
899 %
900 % \subsection{Select the color model}
901 % Color vision depends on the way colors are presented.
902 % For professional printing there usually is a color profile required by the printer to be used.
903 % For use in documents, it is therefore important to know which output medium is to be used primarily.
904 % Technically, this difference is reflected in color mixing models.
905 % In accordance with the guidelines, TUDa-CI supports both a color model for print output (cmyk) and for screen display (RGB).
906 % The implementation is done via the \pkg{xcolor} package, whereby the corresponding color values for both models are stored withing \pkg{tudacolors}.
907 %
908 % Normally, TUDa-CI automatically selects a suitable model.
909 % The default setting of \option{pdfa=true} ensures a conversion to RGB (vgl.~\ref{sec:pdfa-color}) if no manual setting was found.
910 %
911 % If a specific color profile should be used, the \pkg{xcolor} options \option{cmyk} or \option{RGB} can be transmitted directly to \cls{tudapub}.
912 % They are passed on to the package and will be processed according to the \pkg{xcolor} documentation \cite{xcolor}.
913 %
914 % \section{Customizations that deviate from the corporate design guidelines}
915 %
916 % \subsection{Font size}
917 % \DescribeKeyOption{fontsize=\meta{length}}{9pt}
918 % Contrary to the corporate design guidelines, \cls{tudapub} can also process other font sizes.
919 % The \option{fontsize} option of \KOMAScript is supported (e.\,g. \option{fontsize=11pt}).
920 % If no special font size configuration file is available for TUDa-CI, the file supplied with KOMA- Script is selected.
921 % Examples of deviations for typographical reasons are also shown in the demo files for theses.
922 %
923 % \subsection{Margins}
924 % \label{sec:margins}
925 % \DescribeKeyOption{custommargins=true/false/geometry}{false}
926 % According to the corporate design, the line lengths are too long from a typographical point of view.
927 % This is why the \option{custommargins} class option exists.
928 %
929 % \begin{description}
930 % \item[custommargins=false]
931 % Default setting of \cls{tudapub}.
932 % The margins correspond to the specifications of the Corporate Design Guidelines \cite{TUDaGuideline}.
933 % The setting is made using \pkg{geometry}.
934 % Customizations are overwritten by executing \cs{maketitle}.
935 % To allow personal adjustments one of the other settings is required.
936 %
937 % \item[custommargins=true] The settings of the Corporate Design Guidelines are not activated.
938 % pkg{geometry} is not loaded.
939 % This mode corresponds to the default setting of \KOMAScript.
940 % The margins are not explicitly defined, but calculated on the basis of the typearea package \cite[see][]{scrguide-en}.
941 %
942 % \item[custommargins=geometry]
943 % This variant was created based on user requests.
944 % It allows using \cls{tudapub} with support for manual adjustments.
945 % \pkg{geometry} is loaded and preconfigured as with \option{custommargins=false}.
946 % However, it is possible to make minor adjustments by using the \cs{geometry} command.
947 % The settings that apply at the start of the document are saved and restored after the title pages.
948 %
949 % Please note that the settings use the preset type area as a starting point (with or without a margin column, depending on the option).
950 % It is possible to reset all options before adding your own:
951 % \begin{Syntax}
952 % \geometry{
953 % reset,
954 % |\meta{Adjustments starting from geometry's defaults}|
955 % }
956 % \end{Syntax}
957 % This applies in particular to the options \code{includehead}, \code{includefoot} and \code{includemp}.
958 % \end{description}
959 %
960 % \minisec{Remark on the headers/footers}
961 % If the option \option{marginpar=true} remains set, the header and footer protrude beyond the margin column.
962 % For aesthetic reasons, it is therefore recommended in this case to limit the header and footer to the text area with \option{marginpar=false}.
963 %
964 % The standard layout of the column titles is also not very advantageous, as the column titles can be locally larger than the actual headline. (\option{headline=automark})
965 %
966 % For this reason, \cls{tudapub} provides a simpler page style, which considerably simplifies use with living column titles.
967 % The structure is realized using \pkg{scrlayer-scrpage} and can be adapted according to the \KOMAScript documentation \cite{scrguide-en}.
968 % \begin{example}
969 % \pagestyle{TUDa.headings}
970 % \end{example}
971 %
972 % \minisec{Remark on binding correction}
973 % \DescribeKeyOption{BCOR=\meta{length}}{0pt}
974 % \DescribeKeyOption{BCORtitlepage=\meta{Boolean}}{false}
975 % If a binding correction (\option{BCOR=\meta{length}}) is used, this is not automatically inserted on the title page.
976 % For this case, the \option{BCORtitlepage} option was added with version 3.0. If this is activated, the title page uses the value of the \pkg{typearea} option \option{BCOR} on the first page as an addition to the left margin.
977 %
978 % \subsection{Frontmatter/Mainmatter/Backmatter}
979 % The macros \cs{frontmatter}, \cs{mainmatter} and \cs{backmatter} are usually only available for the class \cls{scrbook}.
980 % On request, these macros have also been provided as a basis for \cls{scrartcl} and \cls{scrreprt}.
981 % It is therefore possible to switch to Roman numerals for the opening credits.
982 % Arabic numerals are then used from \cs{mainmatter}.
983 %
984 % \subsection{Math fonts}
985 % As there is no compiler-independent universal math font and the corporate design guidelines do not take any recommendations into account, several possible variants were discussed.
986 % The default setting always corresponds to the installation standard.
987 % No specific settings are loaded.
988 % The discussion on this can be found at:
989 % \url{https://github.com/tudace/tuda_latex_templates/issues/19}
990 %
991 % A few example configurations are shown below.
992 % In principle, however, the math type is freely selectable – apart from the restrictions of the compiler.
993 % In many cases, the \enquote{\TeX{} Font Catalogue} is helpful for selection and use: \url{https://tug.org/FontCatalogue/mathfonts.html}
994 %
995 % \subsubsection{\hologo{pdfLaTeX}}
996 % For \hologo{pdfLaTeX} there is a solution which combines the letters of the default Text font (Charter) with math symbols of different fonts.
997 %
998 % \begin{example}
999 % \usepackage[charter,expert]{mathdesign}
1000 % \end{example}
1001 %
1002 % There are similar approaches for a few other combinations.
1003 % Some examples can be found in the XCharter documentation \cite{xcharter}.
1004 % \url{http://mirrors.ctan.org/fonts/xcharter/doc/xcharter-doc.pdf}
1005 %
1006 % \section{Customization using \KOMAScript}
1007 % \label{sec:KOMA}
1008 % As the class is fully \KOMAScript-compatible apart from a few forced settings that affect the layout, a look at the \KOMAScript documentation \cite{scrguide-en} is helpful for any kind of modifications.
1009 % For most of the possible modifications \KOMAScript offers its own solutions, which often makes supplementary packages superfluous.
1010 % Examples of typical modifications that are also permitted as part of the corporate design:
1011 % \begin{itemize}
1012 % \item Change paragraphs to use a skip instead of an indent of the first line (option \option{parskip})
1013 % \item Element numbering with or without end dot (option \option{numbers=enddot/noenddot})
1014 % \item Caption positioning, alignment and spacing (The macros \cs{captionabove}, \cs{captionbelow}, \cs{captionof} and the \option{captions} option)
1015 % \end{itemize}
1016 %
1017 % \section{Known issues and incompatibilities}
1018 %
1019 % \subsection{\texorpdfstring{\hologo{XeLaTeX}}{XeLaTeX} and PDF/A}
1020 % If the \pkg{pdfx} package is used together with \hologo{XeLaTeX} for the creation of PDF/A the support is limited.
1021 % There will be a corresponding warning.
1022 % With some \hologo{XeLaTeX} versions it's possible that there even may be errors.
1023 % \hologo{LuaLaTeX} should be preferred, but in the worst case switching to the \pkg{pdfmanagement} mechanism could also help.
1024 %
1025 % \subsection{DVI Output}
1026 % Due to the default setting for creating a PDF/A file, it is not possible to use TUDa-CI in standard settings to create a DVI file.
1027 % However, a large part of the functionality can be used when \option{pdfa} mode is deactivated.
1028 %
1029 % \subsection{Possible option clash for microtype}
1030 % The \pkg{microtype} package is loaded automatically if \hologo{pdfLaTeX} is used, as the ligatures for small caps must be deactivated in the font to avoid problems (see \url{https://github.com/tudace/tuda_ latex_templates/issues/144}).
1031 % It is possible to pass further options to \pkg{microtype} before loading the document class:
1032 % \begin{Syntax}
1033 % \PassOptionsToPackage{|\meta{microtype options}|}{microtype}
1034 % \documentclass{tudapub}
1035 % \end{Syntax}
1036 %
1037 %
1038 % \chapter{Department-specific adaptations}
1039 % \label{sec:department-config}
1040 % Some departments have special requirements.
1041 % TUDa-CI includes an interface to be extended in that way.
1042 % Currently the only official extension is the one for the department of mechanical engineering.
1043 % However, the mechanism can be expanded.
1044 %
1045 % \section{Department of Mechanical Engineering}
1046 % \label{sec:mecheng}
1047 % The corresponding mode is activated via the option \option{department=mecheng}.
1048 % Coloring is adjusted automatically and additional layout elements like the \foreignquote{german}{Zeitstrahl} are introduced.
1049 % The modifications exist for all document types provided by TUDa-CI.
1050 %
1051 % \DescribeMacro{\SetPaperID}
1052 % In addition, some documents require the placement of document identifier on the titlepage.
1053 % For this purpose \cs{SetPaperID} was introduced.
1054 % \begin{Syntax}
1055 % \SetPaperID{|\meta{Letter}|}{|\meta{ID}|}
1056 % \end{Syntax}
1057 % This also works without activating \option{mecheng} mode.
1058 % However, the option adds some additional parameters for customized distances.
1059 %
1060 % The mode also sets the options: \option{colorback=false} and \option{ruledheaders=section}.
1061 %
1062 % \subsubsection{Department logo}
1063 % \DescribeKeyOption{departmentlogofile=\meta{filename}}{tuda\_maschinenbau\_logo}*
1064 % The department logo can be downloaded and installed the same way as the TUDa logo.
1065 % A different file can also be selected using the option.
1066 % If the value remains empty, no image is inserted.
1067 %
1068 % \subsubsection{Colors}
1069 % \label{sec:mecheng-color}
1070 % The department subdivides the colors described in the corporate design manual.
1071 % Therefore, if \option{department=mecheng} has been activated, the following color names also exist:
1072 %
1073 % \begin{example}
1074 % \colorlet{TUDa-Primary1}{TUDa-6b}
1075 % \colorlet{TUDa-Primary2}{TUDa-2d}
1076 % \colorlet{TUDa-Secondary1}{TUDa-9a}
1077 % \colorlet{TUDa-Secondary2}{TUDa-8a}
1078 % \colorlet{TUDa-Secondary3}{TUDa-6a}
1079 % \colorlet{TUDa-Secondary4}{TUDa-3a}
1080 % \colorlet{TUDa-Secondary5}{TUDa-4a}
1081 % \colorlet{TUDa-Secondary6}{TUDa-5a}
1082 % \colorlet{TUDa-Arrow}{TUDa-Primary2}
1083 % \end{example}
1084 %
1085 % \minisec{\foreignquote{german}{Zeitstrahl} arrow}
1086 % \DescribeMacro{\MechEngArrow}
1087 % The design element of the timeline can be created using the macro \cs{MechEngArrow\marg{length}}.
1088 % The color corresponds to the color \code{TUDaArrow}, which is pre-assigned with the second primary color (blue).
1089 %
1090 %
1091 %
1092 % \MaybeStop{}
1093 %
1094 % \section{Implementation}
1095 %
1096 % \iffalse
1097 %<*class>
1098 % \fi
1099 %
1100 %
1101 % \begin{macrocode}
1102 \RequirePackage{URspecialopts}
1103 \Define@specialopt@Module[ptxcd/pub]
1104
1105 \str_const:Nn \c_@@_base_str {pub}
1106 \tl_new:N \g_ptxcd_pub_class_tl
1107 \tl_new:N \g_ptxcd_thesis_options_tl
1108
1109 \prop_new:N \g_ptxcd_clsopts_prop
1110 \prop_new:N \g_ptxcd_unknown_clsopts_prop
1111 \prop_gput:Nnn \g_ptxcd_clsopts_prop {titlepage} {firstiscover}
1112 \prop_gput:Nnn \g_ptxcd_clsopts_prop {captions} {nooneline}
1113
1114 \int_new:N \g_ptxcd_ruledheaders_int
1115 \int_new:N \g_ptxcd_paper_int
1116 \msg_new:nnn {tudapub} {compatibility-only} {
1117 You~used~the~outdated~#1~option.\\
1118 This~option~has~been~removed~with~tuda-ci~version~3.08.\\
1119 See~documentation~for~the~updated~implementation.
1120 }
1121
1122 \bool_new:N \g_ptxcd_geometry_bool
1123 \bool_new:N \g_ptxcd_custommargins_bool
1124
1125 \keys_define:nn {ptxcd/pub} {
1126 % \end{macrocode}
1127 % \iffalse
1128 %</class>
1129 %<*options|body>
1130 %<*!beamer>%^^A logo file and accept missing logos
1131 % \fi
1132 % \begin{macrocode}
1133 logofile .tl_gset:N = \g_ptxcd_logofile_tl,
1134 logofile .initial:n = tuda_logo,
1135 % \end{macrocode}
1136 % \iffalse
1137 %</!beamer>%^^A Logo
1138 % \fi
1139 % \begin{documentation}
1140 % \DescribeKeyOption{accept-missing-logos=\meta{boolean}}{false}
1141 % As the Logo files sadly may not be published within this bundle, there is an option to allow the files to be used without logo.
1142 % By enabling \option{accept-missing-logos} there will be a workaround used in case the logo files can not be found by the \LaTeX{} compiler.
1143 % This is automatically enabled within the testing pipelines within the development repository.
1144 % \end{documentation}
1145 % \begin{implementation}
1146 % \changes{v4.00}{2025-01-26}{Added accept-missing-logos option for public testing workflows.}
1147 % \begin{optionenv}{accept-missing-logos}
1148 % \begin{macrocode}
1149 accept-missing-logos .bool_gset:N = \g_ptxcd_logo_workaround_bool,
1150 %<!beamer-outer> accept-missing-logos .initial:n = false,
1151 accept-missing-logos .usage:n = load,
1152 accept-missing-logos .default:n = true,
1153 % \end{macrocode}
1154 % \end{optionenv}
1155 % \iffalse
1156 %<*beamer|class|print>
1157 % \fi
1158 % \begin{optionenv}{department}
1159 % \begin{macrocode}
1160 department .choice:,
1161 department / default .code:n = \str_gset:Nn \g_ptxcd_department_str {default},
1162 department / mecheng .code:n = {
1163 \str_gset:Nn \g_ptxcd_department_str {mecheng}
1164 % \end{macrocode}
1165 % \end{optionenv}
1166 % \iffalse
1167 %<*tudapub|print|letter>
1168 % \fi
1169 % \begin{macrocode}
1170 \exp_args:Ne \keys_set:ne {
1171
1172 %<!sciposter> ptxcd / \c_@@_base_str
1173 %<sciposter> ptxcd / poster
1174 }{
1175 %<!letter> colorback=false,
1176 %<tudapub> ruledheaders=section,
1177 departmentlogofile=tuda_maschinenbau_logo,
1178 %<exercise> color=Primary1,
1179 %<sciposter> titlesepline=false
1180 % \end{macrocode}
1181 % \iffalse
1182 %<*letter>
1183 % \fi
1184 % \begin{macrocode}
1185 headrule=false,
1186 logo=false,
1187 textwidth=narrow,
1188 % \end{macrocode}
1189 % \iffalse
1190 %</letter>
1191 % \fi
1192 % \begin{macrocode}
1193 }
1194 % \end{macrocode}
1195 % \iffalse
1196 %</tudapub|print|letter>
1197 %<*tudabeamer>
1198 % \fi
1199 % \begin{macrocode}
1200 \keys_set:nn {ptxcd/beamer} {
1201 design=2008,
1202 colorframetitle=false,
1203 centerframetitle=true,
1204 headsepline=false,
1205 }
1206 % \end{macrocode}
1207 % \iffalse
1208 %</tudabeamer>
1209 % \fi
1210 % \begin{macrocode}
1211 %<letter> \PassOptionsToPackage{identbar=Primary1,accent=Primary2}{tudacolors}
1212 },
1213
1214 department .initial:n = default,
1215 department / unknown .code:n = {
1216 \str_gset:Nx \g_ptxcd_department_str {\l_keys_value_tl}
1217 },
1218 %
1219 departmentconfigprefix .tl_gset:N = \g_@@_config_prefix_tl,
1220 departmentconfigprefix .initial:n = tuda,
1221 %
1222 departmentlogofile .tl_gset:N = \g_ptxcd_departmentlogo_tl,
1223 departmentlogofile .initial:n =,
1224 % predefined department configs
1225 mecheng .meta:n = {department=mecheng},
1226 % \end{macrocode}
1227 % \iffalse
1228 %</beamer|class|print>
1229 % %^^A Logo pdfa / pdfx
1230 %<*beamer|class|letter|sciposter>
1231 %<*!beamer>
1232 % \fi
1233 % \begin{macrocode}
1234 pdfa .bool_gset:N = \g_ptxcd_pdfa_bool,
1235 pdfa .initial:n =
1236 %<!sciposter> true,
1237 %<sciposter> false,
1238 %</!beamer>
1239 %<*beamer>
1240 pdfa .code:n = {
1241 \msg_error:nn {tuda\c_@@_base_str} {pdfa-option-removed}
1242 },
1243 %</beamer>
1244 pdfx .bool_gset:N = \g_ptxcd_pdfx_bool,
1245 pdfx .initial:n = true,
1246 % \end{macrocode}
1247 % \iffalse
1248 %</beamer|class|letter|sciposter>
1249 %<*class|poster>
1250 % \fi
1251 % \begin{macrocode}
1252 logo .choice:,
1253 logo / head .code:n = {
1254 \bool_gset_true:N \g_@@_logo_head_bool
1255 %<class> \bool_gset_true:N \g_ptxcd_colorbacktitle_bool
1256 },
1257 logo / body .code:n = {
1258 \bool_gset_false:N \g_@@_logo_head_bool
1259 %<class> \bool_gset_false:N \g_ptxcd_colorbacktitle_bool
1260 },
1261 logo / top .meta:n = {logo=head},
1262 logo / bottom .code:n = {\bool_gset_false:N \g_@@_logo_head_bool},
1263 %<class> logo .initial:n = {body},
1264 %<poster> logo .initial:n = {head},
1265 % \end{macrocode}
1266 % \iffalse
1267 %</class|poster>
1268 %% color options
1269 %<*class>
1270 % \fi
1271 % \begin{macrocode}
1272 % twoside -> geometry + class
1273 class .choice:,
1274 class/report .meta:n = {class=scrreprt},
1275 class/scrreprt .code:n = \tl_gset:Nn \g_ptxcd_pub_class_tl {scrreprt},
1276 class/article .meta:n = {class=scrartcl},
1277 class/scrartcl .code:n = \tl_gset:Nn \g_ptxcd_pub_class_tl {scrartcl},
1278 class/book .meta:n = {class=scrbook},
1279 class/scrbook .code:n = \tl_gset:Nn \g_ptxcd_pub_class_tl {scrbook},
1280 class .initial:n = scrartcl,
1281 % \end{macrocode}
1282 % \iffalse
1283 %</class>
1284 %% color options
1285 %<*class|print>
1286 % \fi
1287 % \begin{macrocode}
1288 color .meta:n = {accentcolor=#1},
1289 accentcolor .code:n = {\PassOptionsToPackage{accentcolor=#1}{tudacolors}},
1290 textaccentcolor .code:n = {\PassOptionsToPackage{textaccentcolor=#1}{tudacolors}},
1291 identbarcolor .code:n = {\PassOptionsToPackage{identbarcolor=#1}{tudacolors}},
1292 % \end{macrocode}
1293 % \iffalse
1294 %</class|print>
1295 %<*class|(print&!letter)>
1296 % \fi
1297 % \begin{macrocode}
1298 colorback .bool_gset:N = \g_ptxcd_colorback_bool,
1299 colorback .default:n = true,
1300 colorback .initial:n = true,
1301 % \end{macrocode}
1302 % \iffalse
1303 %</class|(print&!letter)>
1304 %<*class|leaflet>
1305 % \fi
1306 % \begin{macrocode}
1307 colorbacktitle .bool_gset:N = \g_ptxcd_colorbacktitle_bool,
1308 colorbacktitle .initial:n = false,
1309 colorbacktitle .default:n = true,
1310 colorbacksubtitle .bool_set:N = \g_ptxcd_colorbacksubtitle_bool,
1311 colorbacksubtitle .initial:n = false,
1312 colorbacksubtitle .default:n = true,
1313 colorback / title .code:n =
1314 \bool_gset_true:N \g_ptxcd_colorbacktitle_bool
1315 \bool_gset_true:N \g_ptxcd_colorback_bool
1316 \bool_gset_false:N \g_ptxcd_colorbacksubtitle_bool,
1317 colorback / body .code:n =
1318 \bool_gset_false:N \g_ptxcd_colorbacktitle_bool
1319 \bool_gset_false:N \g_ptxcd_colorbacksubtitle_bool
1320 \bool_gset_true:N \g_ptxcd_colorback_bool,
1321 colorback / head .code:n =
1322 \bool_gset_true:N \g_ptxcd_colorbacktitle_bool
1323 \bool_gset_true:N \g_ptxcd_colorback_bool
1324 \bool_gset_true:N \g_ptxcd_colorbacksubtitle_bool,
1325 %<tudapub> colortitleback .code:n = \msg_error:nnx {tudapub} {compatibility-only} {\l_keys_key_tl},
1326 % \end{macrocode}
1327 % \iffalse
1328 %</class|leaflet>
1329 %<*class|poster>
1330 % \fi
1331 % \begin{macrocode}
1332 marginpar
1333 %<!poster> .tl_gset:N = \g_ptxcd_marginpar_tl,
1334 %<poster> .bool_gset:N = \g_ptxcd_marginpar_bool,
1335 %<poster> marginpar / auto .meta:n = {marginpar = true} ,
1336 marginpar .default:n = auto,
1337 %<!poster> marginpar .initial:n = auto,
1338 %<poster> marginpar .initial:n = false,
1339 % \end{macrocode}
1340 % \iffalse
1341 %</class|poster>
1342 % color options
1343 % *coloroptions>
1344 %<*class|(print&!(leaflet|letter|sciposter|poster))>
1345 % /coloroptions>
1346 % \fi
1347 % margin
1348 % \begin{macrocode}
1349 custommargins .choice:,
1350 custommargins / true .code:n ={
1351 \bool_gset_true:N \g_ptxcd_custommargins_bool
1352 \bool_gset_false:N \g_ptxcd_geometry_bool
1353 },
1354 custommargins / false .code:n ={
1355 \bool_gset_false:N \g_ptxcd_custommargins_bool
1356 \bool_gset_true:N \g_ptxcd_geometry_bool
1357 },
1358 custommargins / geometry .code:n = {
1359 \bool_gset_true:N \g_ptxcd_custommargins_bool
1360 \bool_gset_true:N \g_ptxcd_geometry_bool
1361 },
1362 custommargins .initial:n = false,
1363 custommargins .default:n = true,
1364 % \end{macrocode}
1365 % print document specific options
1366 % \begin{macrocode}
1367 fontsize .code:n = \prop_gput:Nnn \g_ptxcd_clsopts_prop {fontsize} {#1},
1368 fontsize .initial:n =
1369 %<!exercise> {9pt},
1370 %<exercise> {10pt},
1371 % \end{macrocode}
1372 % \iffalse
1373 %</class|(print&!(leaflet|letter|sciposter|poster))>
1374 % color options
1375 % *coloroptions>
1376 %<*class>
1377 % /coloroptions>
1378 % \fi
1379 % margin
1380 % \begin{macrocode}
1381 ruledheaders .choices:nn = {false, none, chapter, section, true, all}{
1382 \int_gset:Nn \g_ptxcd_ruledheaders_int {\l_keys_choice_int}
1383 },
1384 ruledheaders .initial:n = all,
1385 type .choices:nn = {publication, thesis} {\tl_gset_eq:NN \g_ptxcd_pubType_tl \l_keys_choice_tl},
1386 type / intern .code:n = {\keys_set:nn {ptxcd/pub} {titlepage=false, pdfa=false, IMRAD=false}},
1387 type .initial:n = publication,
1388 unknown .code:n = {\prop_gput:NVn \g_ptxcd_unknown_clsopts_prop \l_keys_key_tl {#1}},
1389 headline .choice:,
1390 headline / true .code:n = \bool_gset_true:N \g_ptxcd_headline_bool,
1391 headline / false .code:n = \bool_gset_false:N \g_ptxcd_headline_bool,
1392 headline / automark .code:n = {\bool_gset_true:N \g_ptxcd_headline_bool \PassOptionsToPackage{automark}{scrlayer-scrpage}},
1393 automark .meta:n = {headline=automark},
1394 headline .initial:n =false,
1395 twocolumn .bool_gset:N = \g_ptxcd_twocolumn_bool,
1396 twocolumn .default:n = true,
1397 twocolumn .initial:n = false,
1398 % \end{macrocode}
1399 % \iffalse
1400 %</class>
1401 %<*class|exercise>
1402 % \fi
1403 % \begin{macrocode}
1404 BCOR .code:n = \PassOptionsToPackage{bindingoffset=#1}{geometry},
1405 bindingoffset .meta:n = {BCOR=#1},
1406 captions .code:n = {\prop_gput:Nnx \g_ptxcd_clsopts_prop {captions} {
1407 \use:n {\prop_item:Nn \g_ptxcd_clsopts_prop {captions}}, #1}
1408 },
1409 % \end{macrocode}
1410 % \iffalse
1411 %</class|exercise>
1412 %<*class>
1413 % \fi
1414 % \begin{macrocode}
1415 abstract .code:n = \prop_gput:Nnn \g_ptxcd_unknown_clsopts_prop {abstract} {#1},
1416 abstract .initial:n =true,
1417 % \end{macrocode}
1418 % \iffalse
1419 %</class>
1420 %<*class|exercise|sciposter|poster>
1421 % \fi
1422 % \begin{documentation}
1423 % \DescribeKeyOption{paper=a\meta{n}/portrait/landscape}{\meta{depends on document type}}
1424 % The supported paper sizes as well as the default setting depends on the document type.
1425 % Standard print documents use \value{a4} and support the fulle range from \value{a0} to \value{a6}.
1426 % The default value for posters is \value{a0} and these only support up to \value{a3} (SciPoster) or \value{a4} (Poster).
1427 % \end{documentation}
1428 % \begin{implementation}
1429 % \begin{optionenv}{paper}
1430 % \begin{macrocode}
1431 paper .choices:nn = {
1432 %<sciposter> a0,a1,a2,a3
1433 %<poster> a0,a1,a2,a3,a4
1434 %<!(sciposter|poster)> a0,a1,a2,a3,a4,a5,a6
1435 }{
1436 \int_gset_eq:NN \g_ptxcd_paper_int \l_keys_choice_int
1437 \exp_args:Nx \PassOptionsToPackage{paper=\l_keys_choice_tl}{tudarules}
1438 %<!(sciposter|poster)> \exp_args:Nx \PassOptionsToPackage{paper=\l_keys_choice_tl}{typearea}
1439 \exp_args:Nx \PassOptionsToPackage{\l_keys_choice_tl paper}{geometry}
1440 },
1441 % \end{macrocode}
1442 % \iffalse
1443 %<*sciposter>
1444 % \fi
1445 % \begin{macrocode}
1446 paper / landscape .code:n = \PassOptionsToPackage{landscape}{geometry},
1447
1448 paper / portrait .code:n = \PassOptionsToPackage{portrait}{geometry},
1449 % \end{macrocode}
1450 % \iffalse
1451 %</sciposter>
1452 % \fi
1453 % \begin{macrocode}
1454 paper .initial:n =
1455
1456 %<!(sciposter|poster)> a4,
1457 %<sciposter|poster> a0,
1458 % \end{macrocode}
1459 % \end{optionenv}
1460 % \iffalse
1461 %</class|exercise|sciposter|poster>
1462 %<*class>
1463 % \fi
1464 % \begin{macrocode}
1465 IMRAD .bool_gset:N = \g_ptxcd_IMRAD_bool,
1466 IMRAD .initial:n = true,
1467 IMRAD .default:n = true,
1468 instbox .code:n = {\tl_gput_right:Nn \g_ptxcd_thesis_options_tl {,instbox=#1}},
1469 noinstbox .code:n = {\tl_gput_right:Nn \g_ptxcd_thesis_options_tl {,noinstbox=#1}},
1470 % \end{macrocode}
1471 % \iffalse
1472 %</class>
1473 %<*class|exercise|sciposter|poster>
1474 % \fi
1475 % \begin{macrocode}
1476 title .choice:,
1477 title / default .meta:n = {title=large},
1478 title / large .code:n = \bool_gset_false:N \g_ptxcd_smalltitle_bool,
1479 title / small .code:n = \bool_gset_true:N \g_ptxcd_smalltitle_bool,
1480 title .initial:n = default,
1481 % \end{macrocode}
1482 % \iffalse
1483 %</class|exercise|sciposter|poster>
1484 %<*class>
1485 % \fi
1486 % \begin{macrocode}
1487 BCORtitlepage .bool_gset:N = \g_ptxcd_BCOR_titlepage_bool,
1488
1489 BCORtitlepage .initial:n = false,
1490 BCORtitlepage .default:n = true,
1491 %</class>
1492 }
1493 % \end{macrocode}
1494 % \iffalse
1495 %<*beamer>
1496 % \fi
1497 % \changes{v4.00}{2025-01-26}{Remove pdfa option from tudabeamer.}
1498 % As beamer is loading hyperref with with options by default it's not really worth maintaining this option here.
1499 % Especially since beamer did not require this to be enabled by default.
1500 % A comment including the information on how to set up the PDF/A within beamer using the pdfmanagement has been added to the templates.
1501 % \begin{macrocode}
1502 \msg_new:nnn {tuda\c_@@_base_str} {pdfa-option-removed} {
1503 The~option~"pdfa"~was~removed~for~this~document~class.\\
1504 In~case~you~need~it,~please~use~the~mechanism~provided~by~the~pdfmanagement~instead.\\
1505 See~TUDa-CI~documentation~for~details.
1506 }
1507 % \end{macrocode}^^A End of options declarations
1508 % \iffalse
1509 %</beamer>
1510 % \fi
1511 % Allow to add options via l3build |typesetcmds|.
1512 % Be aware that in this case also the group has to be expanded.
1513 % \begin{macrocode}
1514 \cs_if_exist:NT \TUDaDefaultBuildOptions {
1515 \exp_args:Ne \keys_set:ne { ptxcd /
1516 %<!(beamer-outer|sciposter)> \c_@@_base_str
1517 %<beamer-outer> beamer/outer
1518 %<sciposter> poster
1519 } {
1520 \TUDaDefaultBuildOptions
1521 }
1522 }
1523 % \end{macrocode}
1524 % \iffalse
1525 %<*!beamer>
1526 % \fi
1527 % Define a macro to insert the logo workaround to only need this definition once.
1528 % \begin{macrocode}
1529 \cs_new:Nn \_@@_insert_logo: {
1530 \bool_if:NTF \g_ptxcd_logo_workaround_bool {
1531 \file_if_exist:nTF {\g_ptxcd_logofile_tl.pdf}
1532 \use_ii:nn
1533 \use_i:nn
1534 } {
1535 \use_ii:nn
1536 }
1537 {\rule{0pt}{\c_ptxcd_logoheight_dim}\makebox[2.5\c_ptxcd_logoheight_dim][c]{\rule[.1\c_ptxcd_logoheight_dim]{2.05\c_ptxcd_logoheight_dim}{.8\c_ptxcd_logoheight_dim}}}
1538 {\includegraphics[height=\c_ptxcd_logoheight_dim]{\g_ptxcd_logofile_tl}}
1539 }
1540 % \end{macrocode}
1541 % \iffalse
1542 %</!beamer>
1543 %</options|body>
1544 %<*class>
1545 % \fi
1546 % \begin{macrocode}
1547 % special option handling grouped values
1548 % \begin{macrocode}
1549 \Module@DefineSpecialKey[ptxcd/pub]{thesis}{
1550 \keys_set:nn {ptxcd/pub}{type=thesis}
1551 \tl_gput_right:No \g_ptxcd_thesis_options_tl {#1}
1552 }
1553
1554 \Module@Process@SpecialOptions[ptxcd/pub]
1555
1556 % \end{macrocode}
1557 % Wrapper around the old implementation of pdfx + support for pdfmanagement.
1558 % \iffalse
1559 %</class>
1560 %<*class|process-options>
1561 % \fi
1562 % \begin{macrocode}
1563
1564 \ProcessKeyOptions[ptxcd/\c_@@_base_str]
1565 % \end{macrocode}
1566 % Wrapper around the old implementation of pdfx + support for pdfmanagement.
1567 % \iffalse
1568 %</class|process-options>
1569 %<*class|pdfa>
1570 % \fi
1571 % \begin{macrocode}
1572
1573 \bool_if:NF \g_ptxcd_pdfa_bool {\bool_gset_false:N \g_ptxcd_pdfx_bool}
1574
1575 \bool_if:NT \g_ptxcd_pdfa_bool {
1576 \msg_new:nnn {tudapub} {colors-to-rgb} {
1577 You~did~not~add~a~color~profile.\\
1578 I~will~use~the~default~one~and~automatically~try~to~convert~internal~colors~to~RGB.\\
1579 This~is~required~to~be~able~to~create~PDF/A~compliance.
1580 }
1581
1582 \cs_if_exist:NT \pdfmeta_standard_get:nN {
1583 \pdfmeta_standard_get:nN {outputintent_A} \l_tmpa_tl
1584 \quark_if_no_value:NF \l_tmpa_tl {
1585 \bool_gset_false:N \g_ptxcd_pdfx_bool
1586 \msg_new:nnn{tudapub} {pdfmanagement-detected} {
1587 I~detected~usage~of~l3pdfmeta~(\DocumentMetadata)~to~create~PDF/A.\\
1588 tudapub~will~not~load~pdfx~to~avoid~conflicts.\\
1589 To~disable~this~message~use~pdfx=false.
1590 }
1591 \msg_info:nn {tudapub} {pdfmanagement-detected}
1592 }
1593 \prop_if_in:NnF \g__pdfmeta_outputintents_prop {GTS_PDFA1} {
1594 \use_iii:nnn
1595 }
1596 }
1597 \bool_if:NT \g_ptxcd_pdfx_bool {
1598 \PassOptionsToPackage{RGB}{xcolor}
1599 \msg_info:nn {tudapub} {colors-to-rgb}
1600 }
1601 }
1602
1603 % \end{macrocode}
1604 % \iffalse
1605 %</class|pdfa>
1606 %<*class>
1607 % \fi
1608 % \begin{macrocode}
1609
1610 \exp_args:Nx \tl_if_eq:nnT {\prop_item:Nn \g_ptxcd_clsopts_prop {fontsize}} {9pt}
1611 {
1612 \prop_if_in:NnF \g_ptxcd_unknown_clsopts_prop {DIV}
1613 {\PassOptionsToPackage{DIV=calc}{typearea}}
1614 }
1615
1616 \prop_gput:Nnx \g_ptxcd_clsopts_prop {twocolumn} {
1617 \bool_if:NTF \g_ptxcd_twocolumn_bool {true} {false}
1618 }
1619
1620 \prop_map_inline:Nn \g_ptxcd_clsopts_prop {
1621 \tl_if_empty:nTF {#2}
1622 {\PassOptionsToClass {#1} {\g_ptxcd_pub_class_tl}}
1623 {
1624 \clist_map_inline:nn {#2} {\PassOptionsToClass {#1=##1} {\g_ptxcd_pub_class_tl}}
1625 }
1626 }
1627 % \end{macrocode}
1628 % Load tudasize clo file if available
1629 % \begin{macrocode}
1630 \file_if_exist:nT {tudasize\prop_item:Nn \g_ptxcd_clsopts_prop {fontsize}.clo}
1631 {\providecommand*{\@fontsizefilebase}{tudasize}}
1632 % \end{macrocode}
1633 % Disable typearea warnings if geometry is used for the margins.
1634 % \begin{macrocode}
1635 \bool_if:NT \g_ptxcd_geometry_bool {\PassOptionsToPackage{typeareawarninfolimit=-1}{typearea}}
1636 \LoadClass{\g_ptxcd_pub_class_tl}
1637
1638 % \end{macrocode}
1639 % \changes{v3.41}{2024-07-02}{Change package order to be more strict about the loading time of pdfx to avoid conflicts.}
1640 % \begin{macrocode}
1641 \RequirePackage{tudafonts}
1642 \RequirePackage{tudacolors}
1643 \RequirePackage[draft=false]{scrlayer-scrpage}
1644 \RequirePackage{graphicx}
1645 % \end{macrocode}
1646 % \iffalse
1647 %</class>
1648 %<*class|pdfx>
1649 % \fi
1650 % \changes{v4.00}{2025-01-26}{Unify pdfx/pdfa mechanism structure over all document types}
1651 % \begin{macrocode}
1652 \PassOptionsToPackage{hidelinks, unicode}{hyperref}
1653 \bool_if:NT \g_ptxcd_pdfx_bool {
1654 %% only apply the hack if pdfx is older than the working version
1655 \PassOptionsToPackage{a-2b}{pdfx}
1656 %% Workaround posted by David Carlisle on tex.stackexchange
1657 %% Thanks to Ulrike Fischer for mentioning it in #472
1658 \let \_@@_grouplevel_before_pdfx: \currentgrouplevel
1659 \chardef\currentgrouplevel0
1660 \ExplSyntaxOff
1661 \RequirePackage{pdfx}
1662 \ExplSyntaxOn
1663 \let \currentgrouplevel \_@@_grouplevel_before_pdfx:
1664 \cs_undefine:N \_@@_grouplevel_before_pdfx:
1665 %% end of the workaround
1666
1667 \msg_new:nnn{tuda-ci} {prefer-lualatex} {
1668 You~use~pdfa-mode~in~#1.\\
1669 This~can~lead~to~incompatiblities~especially~with~older~compiler~versions.\\
1670 You~should~prefer~using~lualatex.
1671 }
1672 \msg_new:nnnn{tuda-ci} {outdated-package-pdfa} {
1673 Your~Version~of~the~#1-package~is~too~old~to~support~all~methods~required~by~tudapubs~pdfa-mode.\\
1674 Either~update~your~TeX-distribution~or~switch~to~pdfa=false.
1675 }{See~DEMO-tudapub~for~further~information.}
1676
1677 \sys_if_engine_pdftex:T {
1678 \msg_warning:nnn{tuda-ci} {prefer-lualatex} {PDFTeX}
1679 }
1680
1681 \sys_if_engine_xetex:T {
1682 \msg_warning:nnn{tuda-ci} {prefer-lualatex} {XeTeX}
1683 }
1684 \@ifpackageloaded{pdfx}{}{
1685 \msg_new:nnnn {tuda-ci} {pdfx-not-loaded} {
1686 The~pdfx~package~was~not~loaded.\\
1687 You~probably~used~\DocumentMetadata~but~did~not~select~PDF/A.\\
1688 I disable~pdfa~due~to~that~incompatiblity.
1689 } {Select~the~standard~using~the~pdfmanagement~to~enable~PDF/A~or~set~pdfa=false~to~disable~this~message.}
1690 \msg_error:nn {tuda-ci}{pdfx-not-loaded}
1691 \bool_gset_false:N \g_ptxcd_pdfx_bool
1692 \bool_gset_false:N \g_ptxcd_pdfa_bool
1693 }
1694 \@ifpackageloaded{xmpincl}{
1695 \@ifpackagelater{xmpincl}{2021/09/22}{}{
1696 \msg_error:nnn{tuda-ci} {outdated-package-pdfa} {xmpincl}
1697 }
1698 }{}
1699 }
1700 \bool_if:NF \g_ptxcd_pdfx_bool {
1701 \RequirePackage{hyperref}
1702 }
1703 % \end{macrocode}
1704 % \iffalse
1705 %</class|pdfx>
1706 %<*class>
1707 % \fi
1708 % \begin{macrocode}
1709
1710 \RequirePackage{bookmark}
1711 \RequirePackage{tudarules}
1712 \RequirePackage{trimclip}
1713 \RequirePackage{bookmark}
1714
1715
1716 \prop_map_inline:Nn \g_ptxcd_unknown_clsopts_prop {
1717 \cs_if_exist:cT {KV@KOMA.\g_ptxcd_pub_class_tl.cls@#1} {
1718 \tl_if_empty:nTF {#2}
1719 {\KOMAoptions{#1}}
1720 {\KOMAoption{#1}{#2}}
1721 }
1722 }
1723 % \end{macrocode}
1724 % ruled headers
1725 % \begin{macrocode}
1726 \int_compare:nT {\g_ptxcd_ruledheaders_int>=3} {
1727 \cs_if_exist:NT \chapterlinesformat {
1728 \renewcommand*{\chapterlinesformat}[3]{%
1729 \@hangfrom{#2}{#3}
1730 \smash{\raisebox{\depth}{\rule[\dp\strutbox]{\linewidth}{\g_ptxcd_titlerule_dim}}}
1731 }
1732 }
1733 }
1734 \int_compare:nT {\g_ptxcd_ruledheaders_int =4 }{
1735 \renewcommand*\sectionlinesformat[4]{%
1736 \tl_if_eq:nnTF {#1} {section}
1737 {
1738 \parbox{\linewidth}{
1739 \rule[5\g_ptxcd_titlerule_dim]{\linewidth}{\g_ptxcd_titlerule_dim}\par\nointerlineskip
1740 \@hangfrom{%
1741 \hskip #2#3\strut}{#4\rule[-\dp\strutbox]{0pt}{\dp\strutbox}\par}\nointerlineskip
1742 \skip_vertical:n {\ptxcd_titlerule_sep: -\dp\strutbox}
1743 \smash{\rule{\linewidth}{\g_ptxcd_titlerule_dim}}}
1744 }{
1745 \@hangfrom{\hskip #2#3}{#4}
1746 }
1747 }
1748 }
1749 \int_compare:nT {\g_ptxcd_ruledheaders_int>4} {
1750 \renewcommand*\sectionlinesformat[4]{%
1751 \parbox{\linewidth}{
1752 \rule[5\g_ptxcd_titlerule_dim]{\linewidth}{\g_ptxcd_titlerule_dim}\par\nointerlineskip
1753 \@hangfrom{%
1754 \hskip #2#3\strut}{#4\rule[-\dp\strutbox]{0pt}{\dp\strutbox}\par}\nointerlineskip
1755 \skip_vertical:n {\ptxcd_titlerule_sep: -\dp\strutbox}
1756 \smash{\rule{\linewidth}{\g_ptxcd_titlerule_dim}}
1757 }}
1758 }
1759 % \end{macrocode}
1760 % Margin \& titlefontsize setup setup
1761 % \begin{macrocode}
1762 \bool_new:N \g_ptxcd_marginpar_bool
1763 \dim_new:N \g_ptxcd_marginpar_dim
1764 % \end{macrocode}
1765 % \iffalse
1766 %</class>
1767 %<*class|margin>
1768 % \fi
1769 % \begin{macrocode}
1770 \dim_new:N \g_ptxcd_innerMargin_dim
1771 \dim_new:N \g_ptxcd_outerMargin_dim
1772 \dim_new:N \g_ptxcd_bottomMargin_dim
1773 \dim_new:N \g_ptxcd_topMargin_dim
1774
1775 % a3,a4
1776 \int_compare:nTF {4<=\g_ptxcd_paper_int<=5}
1777 {
1778 \dim_gset:Nn \g_ptxcd_bottomMargin_dim {20mm}
1779 \dim_gset:Nn \g_ptxcd_outerMargin_dim {15mm}
1780 \dim_gset_eq:NN \g_ptxcd_innerMargin_dim \g_ptxcd_outerMargin_dim
1781 \dim_gset_eq:NN \g_ptxcd_topMargin_dim \g_ptxcd_outerMargin_dim
1782 }{
1783 % a0, a1, a2
1784 \int_compare:nT {1<=\g_ptxcd_paper_int<=3}
1785 {
1786 \dim_gset:Nn \g_ptxcd_bottomMargin_dim {35mm}
1787 \dim_gset:Nn \g_ptxcd_outerMargin_dim {30mm}
1788 \dim_gset_eq:NN \g_ptxcd_innerMargin_dim \g_ptxcd_outerMargin_dim
1789 \dim_gset_eq:NN \g_ptxcd_topMargin_dim \g_ptxcd_outerMargin_dim
1790 }
1791 % a5
1792 \int_compare:nT {\g_ptxcd_paper_int<=6}
1793 {
1794 \dim_gset:Nn \g_ptxcd_bottomMargin_dim {16mm}
1795 \dim_gset:Nn \g_ptxcd_outerMargin_dim {12mm}
1796 \dim_gset_eq:NN \g_ptxcd_innerMargin_dim \g_ptxcd_outerMargin_dim
1797 \dim_gset_eq:NN \g_ptxcd_topMargin_dim \g_ptxcd_outerMargin_dim
1798 }
1799 % a6
1800 \int_compare:nT {\g_ptxcd_paper_int<=7}
1801 {
1802 \dim_gset:Nn \g_ptxcd_bottomMargin_dim {15mm}
1803 \dim_gset:Nn \g_ptxcd_outerMargin_dim {10mm}
1804 \dim_gset_eq:NN \g_ptxcd_innerMargin_dim \g_ptxcd_outerMargin_dim
1805 \dim_gset_eq:NN \g_ptxcd_topMargin_dim \g_ptxcd_outerMargin_dim
1806 }
1807 }
1808
1809 \dim_new:N \g_ptxcd_columnSep_dim
1810 \dim_gset:Nn \g_ptxcd_columnSep_dim {10pt}
1811 % \end{macrocode}
1812 % \iffalse
1813 %</class|margin>
1814 %<*class>
1815 % \fi
1816 % \begin{macro}{\coverpageleftmargin}
1817 % coverpage
1818 % \begin{macrocode}
1819 \edef\coverpageleftmargin{\dim_eval:n {\g_ptxcd_outerMargin_dim}}
1820 % \end{macrocode}
1821 % \end{macro}
1822 %
1823 %
1824 % \begin{macro}{\coverpagetopmargin}
1825 % \begin{macrocode}
1826 \renewcommand*{\coverpagetopmargin}{\g_ptxcd_outerMargin_dim}
1827 % \end{macrocode}
1828 % \end{macro}
1829 %
1830 %
1831 % \begin{macro}{\coverpagerightmargin}
1832 % \begin{macrocode}
1833 \edef\coverpagerightmargin{\dim_eval:n {\g_ptxcd_outerMargin_dim}}
1834 % \end{macrocode}
1835 % \end{macro}
1836 %
1837 %
1838 % \begin{macro}{\coverpagebottommargin}
1839 % \begin{macrocode}
1840 \renewcommand*{\coverpagebottommargin}{\g_ptxcd_outerMargin_dim}
1841 % \end{macrocode}
1842 % \end{macro}
1843 %
1844 % \begin{macrocode}
1845 \str_case:onTF {\g_ptxcd_marginpar_tl} {
1846 {true} {\bool_gset_true:N \g_ptxcd_marginpar_bool}
1847 {false} {\bool_gset_false:N \g_ptxcd_marginpar_bool}
1848 {auto} {\bool_gset_true:N \g_ptxcd_marginpar_bool}
1849 } {
1850 \bool_if:NT \g_ptxcd_marginpar_bool {
1851 \msg_new:nnnn {tudapub} {marginpar-auto} {Setting~up~marginpar~consistent~with~layout~guidelines.}
1852 {To~turn~this~off~use~marginpar=false~option.}
1853 \msg_info:nn {tudapub} {marginpar-auto}
1854 \dim_gset:Nn \g_ptxcd_marginpar_dim {(\paperwidth - \g_ptxcd_innerMargin_dim -\g_ptxcd_outerMargin_dim - 4 \g_ptxcd_columnSep_dim)/5}
1855 }
1856 } {
1857 \msg_new:nnn {tudapub} {marginpar-no-key} {I~did~not~find~a~text~key~for~marginpar~setup~will~use~the~value~#1~as~width.}
1858 \msg_info:nnx {tudapub} {marginpar-no-key} {\g_ptxcd_marginpar_tl}
1859 \bool_gset_true:N \g_ptxcd_marginpar_bool
1860 \dim_gset:Nn \g_ptxcd_marginpar_dim {\g_ptxcd_marginpar_tl}
1861 }
1862
1863 \dim_new:N \g_ptxcd_headwidth_dim
1864 % \end{macrocode}
1865 % \iffalse
1866 %</class>
1867 %<*class|(geometry&exercise)>
1868 % \fi
1869 % \begin{macrocode}
1870 \dim_new:N \g_ptxcd_headheight_dim
1871 \dim_gset:Nn \g_ptxcd_headheight_dim {\c_ptxcd_largerule_dim +\c_ptxcd_rulesep_dim +\c_ptxcd_smallrule_dim}
1872 % \end{macrocode}
1873 % \iffalse
1874 %<*class>
1875 % \fi
1876 % \begin{macrocode}
1877 \bool_if:NTF \g_ptxcd_headline_bool
1878 {\dim_gadd:Nn \g_ptxcd_headheight_dim {20pt}}
1879 {\dim_gadd:Nn \g_ptxcd_headheight_dim {1.25\baselineskip}}
1880 % \end{macrocode}
1881 % \iffalse
1882 %</class>
1883 % \fi
1884 % Geometry margin configuration
1885 % Has to be loaded here due to headwidth options for pagestyles.
1886 % \begin{macrocode}
1887 \bool_if:NTF \g_ptxcd_geometry_bool {
1888 \RequirePackage{geometry}
1889 \geometry{
1890 top=\g_ptxcd_topMargin_dim,
1891 inner=\g_ptxcd_innerMargin_dim,
1892 outer=\g_ptxcd_outerMargin_dim,
1893 bottom=\g_ptxcd_bottomMargin_dim,
1894 columnsep= \g_ptxcd_columnSep_dim,
1895 includehead,
1896 includefoot,
1897 %<class> includemp,
1898 %<class> nomarginpar,
1899 %<class> marginparsep=\c_zero_dim,
1900 headheight=\g_ptxcd_headheight_dim
1901 }
1902 % \end{macrocode}
1903 % \iffalse
1904 %<*class>
1905 % \fi
1906 % \begin{macrocode}
1907 \savegeometry{TUDa-nomarginpar}
1908 \geometry{includemp, marginpar=\g_ptxcd_marginpar_dim, marginparsep=\g_ptxcd_columnSep_dim}
1909 \KOMAoptions{mpinclude}
1910 \savegeometry{TUDa-marginpar}
1911
1912 \bool_if:NTF \g_ptxcd_custommargins_bool {
1913 \AddToHook{begindocument}[tudapub:custommargins]{
1914 \savegeometry{TUDa-default}
1915 \bool_if:NTF \g_ptxcd_marginpar_bool {
1916 \dim_gset:Nn \g_ptxcd_headwidth_dim {\textwidth+\marginparwidth+\marginparsep}
1917 }{
1918 \dim_gset:Nn \g_ptxcd_headwidth_dim {\textwidth}
1919 }
1920 }
1921 \tl_const:Nn \c_ptxcd_default_geometry_tl {TUDa-default}
1922 }{
1923 \bool_if:NTF \g_ptxcd_marginpar_bool {
1924 \tl_const:Nn \c_ptxcd_default_geometry_tl {TUDa-marginpar}
1925 } {
1926 \tl_const:Nn \c_ptxcd_default_geometry_tl {TUDa-nomarginpar}
1927 }
1928 \AddToHook{begindocument}[tudapub:custommargins-geometry]{
1929 \loadgeometry{\c_ptxcd_default_geometry_tl}
1930 }
1931 }
1932
1933 \dim_gset:Nn \g_ptxcd_headwidth_dim {\paperwidth-\g_ptxcd_innerMargin_dim-\g_ptxcd_outerMargin_dim-\Gm@bindingoffset}
1934
1935 \cs_set:Nn \ptxcd_disable_marginpar: {\loadgeometry{TUDa-nomarginpar}}
1936 \cs_set:Nn \ptxcd_restore_typearea: {\loadgeometry{\c_ptxcd_default_geometry_tl}}
1937
1938 \AddToHook{cmd/Gm@changelayout/after}[tudapub-restore-headwidth]{
1939 \bool_if:NTF \g_ptxcd_marginpar_bool
1940 {\KOMAoptions{headwidth=textwithmarginpar,footwidth=textwithmarginpar}}
1941 {\KOMAoptions{headwidth=text,footwidth=text}}
1942 }
1943 % \end{macrocode}
1944 % \iffalse
1945 %</class>
1946 % \fi
1947 % \begin{macrocode}
1948 }{
1949 % \end{macrocode}
1950 % \iffalse
1951 %<*class>
1952 % \fi
1953 % \begin{macrocode}
1954 \let\ptxcd_disable_marginpar:\relax
1955 \def\ptxcd_restore_typearea:{
1956 % \end{macrocode}
1957 % \iffalse
1958 %</class>
1959 % \fi
1960 % \begin{macrocode}
1961 \KOMAoptions{headinclude, footinclude}
1962 % \end{macrocode}
1963 % \iffalse
1964 %<*class>
1965 % \fi
1966 % \begin{macrocode}
1967 \bool_if:NTF \g_ptxcd_marginpar_bool {
1968 \KOMAoptions{headwidth=textwithmarginpar,footwidth=textwithmarginpar}
1969 } {
1970 % \end{macrocode}
1971 % \iffalse
1972 %</class>
1973 % \fi
1974 % \begin{macrocode}
1975 \KOMAoptions{headwidth=text,footwidth=text}
1976 % \end{macrocode}
1977 % \iffalse
1978 %<*class>
1979 % \fi
1980 % \begin{macrocode}
1981 }
1982 \bool_if:NT \g_ptxcd_headline_bool {\KOMAoptions{headheight=\g_ptxcd_headheight_dim}}
1983 \recalctypearea
1984 }
1985 \ptxcd_restore_typearea:
1986 % \end{macrocode}
1987 % \iffalse
1988 %</class>
1989 % \fi
1990 % \begin{macrocode}
1991 }
1992 % \end{macrocode}
1993 % \iffalse
1994 %</class|(geometry&exercise)>
1995 %<*class>
1996 % \fi
1997 % \begin{macrocode}
1998 \AddToHook{begindocument}[tudapub:BCOR-titlepage]{
1999 \bool_if:NT \g_ptxcd_BCOR_titlepage_bool
2000 {\xdef\coverpageleftmargin{\the\dimexpr\coverpageleftmargin+\the\ta@bcor}}
2001 }
2002 % \end{macrocode}
2003 %
2004 % End of margin setup
2005 %
2006 % \begin{macro}{\institution}
2007 % \begin{macrocode}
2008 \newcommand*{\institution}[1]{
2009 \def\ptxcd_institution{#1}
2010 }
2011 % \end{macrocode}
2012 % \end{macro}
2013 %
2014 % \begin{macrocode}
2015 \cs_new:Nn \ptxcd_titlerule_sep: {\the\dp\strutbox}
2016 \setkomafont{disposition}{\sffamily\bfseries}
2017 \setkomafont{pageheadfoot}{\sffamily\small}
2018 \setkomafont{pagenumber}{}
2019 \addtokomafont{captionlabel}{\sffamily}
2020 \addtokomafont{caption}{\sffamily}
2021
2022
2023 \KOMAoptions{footsepline=.5\c_ptxcd_smallrule_dim}
2024 \setlength{\footheight}{\dimexpr\baselineskip+\c_ptxcd_rulesep_dim}
2025 \bool_if:NT \g_ptxcd_headline_bool {\KOMAoptions{headsepline=.5\c_ptxcd_smallrule_dim}}
2026 % \end{macrocode}
2027 % Adjust headheight
2028 % \begin{macrocode}
2029 \AddToHook{begindocument}[tudapub:adjust-headheight]{
2030 \bool_if:NTF \g_ptxcd_marginpar_bool
2031 {
2032 \KOMAoptions {
2033 headwidth=textwithmarginpar,
2034 footwidth=textwithmarginpar
2035 }
2036 }{
2037 \KOMAoptions {
2038 headwidth=text,
2039 footwidth=text
2040 }
2041 }
2042 \box_if_exist:NF \ptxcd_headrule_box {
2043 \ptxcd_makeheadrule[color=identbarcolor, width=\sls@headwidth]{ptxcd_headrule}
2044 }
2045 }
2046
2047 \newpairofpagestyles[scrheadings]{TUDa.headings}{
2048 \KOMAoptions{headsepline, headlines=1.25}
2049 \setkomafont{pagehead}{}
2050 \chead{}
2051 \ohead{\headmark}
2052 }
2053
2054 \newpairofpagestyles{TUDa.pub}{
2055 \KOMAoptions{plainfootsepline}
2056
2057 \bool_if:NTF \g_ptxcd_marginpar_bool
2058 {
2059 \KOMAoptions {
2060 headwidth=textwithmarginpar,
2061 footwidth=textwithmarginpar
2062 }
2063 }{
2064 \KOMAoptions {
2065 headwidth=text,
2066 footwidth=text
2067 }
2068 }
2069 \bool_if:NT \g_ptxcd_headline_bool {
2070 \setkomafont{pagehead}{\Large\bfseries}
2071 \KOMAoptions{headlines=2}
2072 \clist_map_variable:nNn {oneside, even, odd} \l_tmpa_tl {
2073 \ModifyLayer[pretocontents={\rule[-6pt]{0pt}{\layerheight}}]{TUDa.pub.head.\l_tmpa_tl}
2074 }
2075 \lehead{\headmark}
2076 \lohead{\headmark}
2077 }
2078 \ofoot[\pagemark]{\pagemark}
2079 }
2080
2081 \RedeclareLayer[
2082 clone=scrheadings.head.above.line,
2083 background,
2084 contents={
2085 \dim_compare:nF {\box_wd:N \ptxcd_headrule_box=\layerwidth} {
2086 \ptxcd_makeheadrule[color=identbarcolor, width=\layerwidth]{ptxcd_headrule}
2087 }
2088 \smash{\ptxcd_headrule}
2089 }
2090 ]{TUDa.pub.head.above.line}
2091
2092 \RedeclareLayer[
2093 clone=plain.scrheadings.head.above.line,
2094 background,
2095 contents={
2096 \dim_compare:nF {\box_wd:N \ptxcd_headrule_box=\layerwidth} {
2097 \ptxcd_makeheadrule[color=identbarcolor, width=\layerwidth]{ptxcd_headrule}
2098 }
2099 \smash{\ptxcd_headrule}
2100 }
2101 ]{plain.TUDa.pub.head.above.line}
2102
2103 \ModifyLayer[addvoffset=\c_ptxcd_rulesep_dim]{TUDa.pub.foot.even}
2104 \ModifyLayer[addvoffset=\c_ptxcd_rulesep_dim]{TUDa.pub.foot.odd}
2105 \ModifyLayer[addvoffset=\c_ptxcd_rulesep_dim]{TUDa.pub.foot.oneside}
2106 \ModifyLayer[addvoffset=\c_ptxcd_rulesep_dim]{plain.TUDa.pub.foot.even}
2107 \ModifyLayer[addvoffset=\c_ptxcd_rulesep_dim]{plain.TUDa.pub.foot.odd}
2108 \ModifyLayer[addvoffset=\c_ptxcd_rulesep_dim]{plain.TUDa.pub.foot.oneside}
2109
2110
2111 \DeclarePageStyleAlias{TUDa}{TUDa.pub}
2112 \DeclarePageStyleAlias{plain.TUDa}{plain.TUDa.pub}
2113 \pagestyle{TUDa}
2114 % \end{macrocode}
2115 %
2116 % \begin{macro}{\titlepagestyle}
2117 % \begin{macrocode}
2118 \renewcommand*{\titlepagestyle}{plain.TUDa}
2119 % \end{macrocode}
2120 % \end{macro}
2121 %
2122 % \begin{macrocode}
2123 \cs_new:Nn \ptxcd_sls@leftmargin: {%
2124 \dimexpr
2125 \if@twoside
2126 \ifodd\value{page}
2127 \oddsidemargin
2128 \else
2129 \evensidemargin
2130 \fi
2131 \else
2132 \oddsidemargin
2133 \fi
2134 \bool_if:NT \g_ptxcd_twocolumn_bool {
2135 -\marginparwidth-\marginparsep
2136 }
2137 +1in\relax
2138 }
2139 % \end{macrocode}
2140 % Titelseite
2141 % \begin{macrocode}
2142 \tl_new:N \g_ptxcd_titleimage_code_tl
2143 \tl_gset_eq:NN \g_ptxcd_titleimage_code_tl \c_empty_tl
2144 % \end{macrocode}
2145 %
2146 % \begin{macro}{\titleimage}
2147 % \begin{macrocode}
2148 \newcommand{\titleimage}[1]{\tl_gset:Nn \g_ptxcd_titleimage_code_tl {#1}}
2149 % \end{macrocode}
2150 % \end{macro}
2151 %
2152 % \begin{macrocode}
2153 \box_new:N \l_@@_titlegraphic_box
2154 \NewDocumentCommand{\titlegraphic}{sm}{
2155 \IfBooleanTF{#1}{
2156 \tl_gset:Nn \g_ptxcd_titleimage_code_tl {
2157 \hbox_set:Nn \l_@@_titlegraphic_box {\raisebox{\depth}{#2}}
2158 \box_resize_to_wd:Nn \l_@@_titlegraphic_box {\width}
2159 \dim_compare:nTF {\box_ht:N \l_@@_titlegraphic_box -\height> \c_zero_dim}
2160 {
2161 \dim_set:Nn \l_tmpa_dim {.5\box_ht:N \l_@@_titlegraphic_box - .5\height}
2162 \clipbox{0pt~\dim_eval:n{\l_tmpa_dim}~0pt~\dim_eval:n{\l_tmpa_dim}}{\box_use:N \l_@@_titlegraphic_box}
2163 }{
2164 \box_resize_to_ht:Nn \l_@@_titlegraphic_box {\height}
2165 \dim_set:Nn \l_tmpa_dim {(\box_wd:N \l_@@_titlegraphic_box - \width) / 2}
2166 \clipbox{\dim_eval:n{\l_tmpa_dim}~0pt~\dim_eval:n{\l_tmpa_dim}~0pt}{\box_use:N \l_@@_titlegraphic_box}
2167 }
2168 }
2169 }{
2170 \tl_gset:Nn \g_ptxcd_titleimage_code_tl {#2}
2171 }
2172 }
2173
2174 \let\titleimage\titlegraphic%for backwards compatbility
2175
2176 \box_new:N \g_ptxcd_title_box
2177 \skip_new:N \g_ptxcd_title_fill_skip
2178
2179 \seq_new:N \g_ptxcd_author_seq
2180 % \end{macrocode}
2181 %
2182 % \begin{macro}{\author}
2183 % \begin{macrocode}
2184 \renewcommand*\author[1]{
2185 \seq_gset_split:Nnn \g_ptxcd_author_seq {\and} {#1}
2186 }
2187 % \end{macrocode}
2188 % \end{macro}
2189 %
2190 % \begin{macrocode}
2191 \msg_new:nnn{tudapub} {unknown-language} {
2192 You~selected~an~unknown~language~#1.\\
2193 The~Variable~#2~does~not~have~a~predefined~value.\\
2194 Ensure~to~redefine~#2~to~match~your~language.\\
2195 Otherwise~the~german~vaue~#3~will~be~used.
2196 }
2197
2198 \cs_new:Nn \ptxcd_define_captionFallback:Nn {
2199 \providecommand*#1{
2200 \msg_warning:nnxxx{tudapub} {unknown-language}
2201 {\languagename} {\exp_not:N #1} {#2}
2202 \def#1{#2}
2203 }
2204 }
2205
2206 \cs_new:Nn \ptxcd_declare_caption:Nnnn {
2207 \ptxcd_define_captionFallback:Nn #1 {#2}
2208 \defcaptionname{ngerman, german}{#1}{#2}
2209 \defcaptionname{english, USenglish, american}{#1}{#3}
2210 \defcaptionname{UKenglish, british}{#1}{#4}
2211 }
2212
2213 \cs_new:Nn \ptxcd_declare_caption:Nnn {
2214 \ptxcd_declare_caption:Nnnn #1 {#2} {#3} {#3}
2215 }
2216 % \end{macrocode}
2217 %
2218 % \begin{macro}{\@author}
2219 % \begin{macrocode}
2220 \renewcommand*{\@author}{
2221 \begingroup
2222 \hyphenpenalty=100000
2223 \seq_use:Nnnn \g_ptxcd_author_seq {~\authorandname{}~} {,~} {~\&~}
2224 \endgroup
2225 }
2226 % \end{macrocode}
2227 % \end{macro}
2228 %
2229 % \begin{macrocode}
2230 \msg_new:nnn{tudapub} {infobox-too-high} {
2231 The~height~of~your~Infobox~exeeds~the~space~reserved~in~the~title~block.\\
2232 You~should~probably~switch~to~logo=bottom~or~reduce~the~number/size~of~InfoBoxes.
2233 }
2234
2235 \cs_set:Nn \ptxcd_adjust_titlepage_style: {
2236 \dim_set:Nn \l_tmpa_dim {\fp_to_dim:n {\expandafter \use_ii:nn\ptxcd_title_fontsize: *2.8}}
2237 \dim_compare:nT {\box_ht:N \g_ptxcd_title_box < \l_tmpa_dim} {
2238 \skip_set:Nn \g_ptxcd_title_fill_skip {\dim_eval:n {\l_tmpa_dim - \box_ht:N \g_ptxcd_title_box}}
2239 }
2240
2241 \dim_set:Nn \l_tmpa_dim {
2242 \box_ht:N \ptxcd_headrule_box+\box_dp:N \ptxcd_headrule_box-\g_ptxcd_titlerule_dim
2243 +\box_ht:N \g_ptxcd_title_box+.5\c_ptxcd_logoheight_dim+\g_ptxcd_title_fill_skip+\box_dp:N \g_ptxcd_title_box
2244 }
2245
2246 \ModifyLayer[
2247 addvoffset=\l_tmpa_dim,
2248 addheight=-\l_tmpa_dim
2249 -\box_dp:N \g_ptxcd_sponsor_box
2250 +\c_ptxcd_rulesep_dim
2251 ]{title.TUDa.image}
2252
2253 \bool_if:NT \g_ptxcd_colorbacktitle_bool {
2254 \ModifyLayer[
2255 textarea,
2256 addvoffset=\dim_eval:n {\box_ht:N \ptxcd_headrule_box+\box_dp:N \ptxcd_headrule_box-\g_ptxcd_titlerule_dim},
2257 height={\box_ht:N \g_ptxcd_title_box+ \g_ptxcd_title_fill_skip+.5\c_ptxcd_logoheight_dim
2258 \bool_if:NT \g_ptxcd_colorbacksubtitle_bool {+\box_dp:N \g_ptxcd_title_box}
2259 }
2260 ]{title.TUDa.background}
2261 }
2262 \vspace*{\dim_eval:n {
2263 -\topskip
2264 -\g_ptxcd_titlerule_dim
2265 +\box_ht:N \ptxcd_headrule_box
2266 +\box_dp:N \ptxcd_headrule_box
2267 +.5\c_ptxcd_logoheight_dim
2268 }}
2269 \nointerlineskip
2270 \ptxcd_setup_title_box:
2271
2272 \bool_if:NT \g_@@_logo_head_bool {
2273 \dim_compare:nT {\box_ht:N \g_ptxcd_title_info_box+ \box_dp:N \g_ptxcd_title_info_box > \box_ht:N \g_ptxcd_title_box}
2274 {\msg_warning:nn{tudapub} {infobox-too-high}}
2275 \makebox[\linewidth][r]{\smash{
2276 \raisebox{-\height}{
2277 \makebox[\_@@_logowidth:][l]{
2278 \box_use:N \g_ptxcd_title_info_box
2279 }}
2280 }}
2281 }
2282 \par
2283 \vspace*{\skip_use:N \g_ptxcd_title_fill_skip}
2284 \setlength{\fboxsep}{\z@}
2285 }
2286
2287 \newkomafont{institution}{\sffamily}
2288 \newkomafont{titleinfo}{\ptxcd@sffamily@lining}
2289 \setkomafont{subtitle}{\bfseries}
2290 \setkomafont{subject}{}
2291 \setkomafont{publishers}{}
2292 \setkomafont{author}{}
2293 \setkomafont{date}{}
2294
2295 \bool_if:NF \g_ptxcd_smalltitle_bool {
2296 \int_gdecr:N \g_ptxcd_paper_int
2297 }
2298 \file_input:n {tuda-a\int_use:N \g_ptxcd_paper_int paper.clo}
2299 \ptxcd_setup_title_sizes:
2300
2301 \seq_new:N \g_ptxcd_title_info_seq
2302 \box_new:N \g_ptxcd_title_info_box
2303
2304 \cs_new:Nn \ptxcd_make_title_info_box:n {
2305 \setlength{\fboxsep}{1.5mm}%
2306 \colorbox{InfoBox}{
2307 \makebox[\dim_eval:n {\_@@_logowidth:-\fboxsep}][r]{
2308 \parbox{\dim_eval:n {\_@@_logowidth:+\fboxsep-\_@@_logosep:}}{
2309 \expandafter \fontsize\ptxcd_titlethanks_fontsize:\selectfont\usekomafont{institution}%
2310 \raggedright%
2311 #1
2312 }}}
2313 }
2314
2315 \cs_new:Nn \ptxcd_make_title_logo_box:n {
2316 \setlength{\fboxsep}{\z@}%
2317 \parbox{\_@@_logowidth:}{
2318 \colorbox{InfoBox}{
2319 \rlap{
2320 \makebox[\dim_eval:n {\_@@_logowidth: + \_@@_logosep:}][r]{
2321 \colorbox{InfoBox}{#1\hspace{\_@@_logosep:}}
2322 }
2323 }
2324 }
2325 }
2326 }
2327 % \end{macrocode}
2328 %
2329 % \begin{macro}{\addTitleBox}
2330 % \begin{macrocode}
2331 \newcommand{\addTitleBox}[1]{\seq_gput_right:Nn \g_ptxcd_title_info_seq {\ptxcd_make_title_info_box:n {#1}}}
2332 % \end{macrocode}
2333 % \end{macro}
2334 %
2335 % \begin{macrocode}
2336 \NewDocumentCommand{\addTitleBoxLogo}{sm}{
2337 \IfBooleanTF{#1}{
2338 \seq_gput_right:Nn \g_ptxcd_title_info_seq {
2339 \ptxcd_make_title_logo_box:n {#2}
2340 }
2341 }{
2342 \seq_gput_right:Nn \g_ptxcd_title_info_seq {
2343 \ptxcd_make_title_logo_box:n {
2344 \hbox_set:Nn \l_tmpa_box {
2345 \includegraphics[width=1.5\c_ptxcd_logoheight_dim]{#2}
2346 }
2347 \dim_set:Nn \l_tmpa_dim {2\c_ptxcd_logoheight_dim/3}
2348 \dim_compare:nTF {\box_ht:N \l_tmpa_box > \l_tmpa_dim}
2349 {\includegraphics[width=\l_tmpa_dim]{#2}}
2350 {\box_use:N \l_tmpa_box}
2351 }
2352 }
2353 }
2354 }
2355 % \end{macrocode}
2356 % \changes{v4.00}{2025-01-26}{Added accept-missing-logos option for public testing workflows.}
2357 % \begin{macrocode}
2358 \addTitleBoxLogo*{\makebox[\linewidth][l]{\_@@_insert_logo:}}
2359
2360 \DeclareNewLayer[textarea,background,mode=picture,
2361 contents={
2362 \tl_if_empty:NTF \g_ptxcd_titleimage_code_tl
2363 {
2364 \bool_if:NF \g_ptxcd_colorbacktitle_bool
2365 {
2366 \bool_if:NT \g_ptxcd_colorback_bool {\putLL{\color{identbarcolor}\rule{\layerwidth}{\layerheight}}}
2367 }
2368 }
2369 {\putUL{\color{identbarcolor}
2370 \let\width\layerwidth
2371 \let\height\layerheight
2372 \raisebox{-\height}{\parbox[t]{\textwidth}{
2373 \leavevmode\ignorespaces
2374 \g_ptxcd_titleimage_code_tl
2375 }}}}
2376 \bool_if:NF \g_@@_logo_head_bool {
2377 \put(\dim_to_decimal_in_unit:nn {\layerwidth-\_@@_logowidth:
2378 } {\unitlength},
2379 \dim_to_decimal_in_unit:nn {\layerheight-\box_ht:N \g_ptxcd_title_info_box - .5\c_ptxcd_logoheight_dim} {\unitlength}){
2380 \rlap{\box_use:N \g_ptxcd_title_info_box}
2381 }
2382 }
2383 }
2384 ]{title.TUDa.image}
2385
2386 \DeclareNewLayer[background,mode=picture,
2387 contents={
2388 \bool_lazy_and:nnT {\g_ptxcd_colorback_bool} {\g_ptxcd_colorbacktitle_bool} {
2389 {\color{identbarcolor}\rule{\layerwidth}{\layerheight}}
2390 }
2391 }
2392 ]{title.TUDa.background}
2393
2394 \DeclareNewLayer[
2395 clone=plain.TUDa.pub.head.above.line,
2396 hoffset=\coverpageleftmargin,
2397 width=\paperwidth-\coverpageleftmargin-\coverpagerightmargin,
2398 ]{title.TUDa.rule}
2399
2400 \ptxcd_makeheadrule[color=identbarcolor, width=\textwidth]{ptxcd_title_headline}
2401
2402 \cs_new:Nn \ptxcd_setup_title_box: {
2403 \hbox_gset:Nn \g_ptxcd_title_info_box
2404 {
2405 \parbox{\dim_eval:n {\_@@_logowidth:+\_@@_logosep:}}{
2406 \seq_use:Nn \g_ptxcd_title_info_seq {\par\nointerlineskip\vspace{\dim_eval:n {\c_ptxcd_largerule_dim+\c_ptxcd_rulesep_dim}}}
2407 }
2408 }
2409 }
2410
2411 \cs_new:Nn \ptxcd_setup_sponsor_box: {
2412 \bool_if:nF {\seq_if_empty_p:N \g_ptxcd_sponsors_seq && \tl_if_empty_p:N \@sponsors} {
2413 \hbox_gset:Nn \g_ptxcd_sponsor_box {
2414 \edef\height{\noexpand\dimexpr\dim_eval:n {\_@@_logosep: + .5\c_ptxcd_logoheight_dim}}
2415 \parbox[t]{\textwidth}{
2416 \rule{\linewidth}{\g_ptxcd_titlerule_dim}\par\nointerlineskip
2417 \addvspace{\c_ptxcd_rulesep_dim}
2418 \seq_use:Nn \g_ptxcd_sponsors_seq {\hfill}
2419 \ifhmode\par\fi
2420 \ifx\@sponsors\@empty
2421 \else
2422 \addvspace{.1\c_ptxcd_logoheight_dim}
2423 \@sponsors\par
2424 \fi
2425 \par\nointerlineskip\addvspace{\c_ptxcd_rulesep_dim}
2426 \rule{\linewidth}{\g_ptxcd_titlerule_dim}
2427 }
2428 }
2429 }
2430 }
2431
2432 \DeclareNewPageStyleByLayers{title.TUDa}{title.TUDa.background,title.TUDa.rule,title.TUDa.image}
2433 % \end{macrocode}
2434 % Logos
2435 %</class>
2436 %<*class|xmpdata>
2437 % \begin{macrocode}
2438 \if_bool:N \g_ptxcd_pdfx_bool
2439 \iow_new:N \ptxcd_xmpdata_stream
2440 \tl_new:N \g_ptxcd_xmp_title_tl
2441 \tl_new:N \g_ptxcd_xmp_author_tl
2442
2443 \cs_if_exist:NF \prop_gput_if_new:Nnx {
2444 \cs_generate_variant:Nn \prop_gput_if_new:Nnn {Nnx}
2445 }
2446
2447 \cs_if_exist:NF \tl_to_str:V {\cs_generate_variant:Nn \tl_to_str:N {V}}
2448
2449 \cs_new:Nn \ptxcd_pass_TitleData: {
2450 \iow_open:Nn \ptxcd_xmpdata_stream {\jobname.xmpdata}
2451 \begingroup
2452 \def\newline{}
2453 \def\\{}
2454 \let\thanks\use_none:n
2455 \cs_set:Npn \and {\exp_not:n {\exp_not:N \sep}}
2456 \use:c {Hy@pdfstringtrue}
2457 % \end{macrocode}
2458 % \cls{tudaletter} did not support the title mechanism, but as it does by loading scrartcl this shouldn't be an issue to keep this section for it.
2459 % \begin{macrocode}
2460 \tl_gset:Nf \g_ptxcd_xmp_title_tl {\@title}
2461 \prop_gput_if_new:Nnx \g_ptxcd_MetaData_prop {Title} {\tl_to_str:V \g_ptxcd_xmp_title_tl}
2462 \prop_if_in:NnF \g_ptxcd_MetaData_prop {Author} {
2463 \tl_gset:Nx \g_ptxcd_xmp_author_tl {\seq_use:Nn \g_ptxcd_author_seq {\exp_not:N \sep}}
2464 \tl_gset:Nx \g_ptxcd_xmp_author_tl {\g_ptxcd_xmp_author_tl}
2465 \prop_gput:Nnx \g_ptxcd_MetaData_prop {Author} {\tl_to_str:V \g_ptxcd_xmp_author_tl}
2466 }
2467 \prop_gput_if_new:Nnn \g_ptxcd_MetaData_prop {Publisher}{TU~Darmstadt}
2468 \prop_gput_if_new:Nnn \g_ptxcd_MetaData_prop {Creator}{LaTeX~using~TUDa-CI}
2469 \use:c {pdfx@localcommands}%should be held inside group
2470 \prop_map_function:NN \g_ptxcd_MetaData_prop \ptxcd_write_xmp_line:nn
2471 \endgroup
2472 \iow_close:N \ptxcd_xmpdata_stream
2473 \let\ptxcd_pass_TitleData:\relax
2474 }
2475 \cs_new:Nn \ptxcd_write_xmp_line:nn {
2476 \begingroup
2477 \cs_set:Npn \sep {\exp_not:N \sep}
2478 \cs_if_exist:cTF {#1}{
2479 \iow_now:Nx \ptxcd_xmpdata_stream {
2480 \c_backslash_str #1 {\exp_not:n {#2}}
2481 }
2482 }{
2483 \msg_error:nnn{tuda-ci} {unknown-metadata} {#1}
2484 }
2485 \endgroup
2486 }
2487
2488 \prop_new:N \g_ptxcd_MetaData_prop
2489
2490 \newcommand*{\Metadata}[1]{
2491 \keyval_parse:NNn \use_none:n \ptxcd_set_metadata_prop:nn
2492 {#1}
2493 }
2494
2495 \cs_set:Nn \ptxcd_set_metadata_prop:nn {
2496 % Fallback test for older kernels doesn't support mixed case eintries
2497 \cs_if_exist:NTF \text_titlecase_first:n {
2498 \exp_args:NNf \prop_gput:Nnn \g_ptxcd_MetaData_prop {\text_titlecase_first:n {#1}} {#2}
2499 } {
2500 \exp_args:NNx \prop_gput:Nnn \g_ptxcd_MetaData_prop {
2501 \str_uppercase:f {\tl_head:n {#1}}
2502 \str_lowercase:f {\tl_tail:n {#1}}
2503 } {#2}
2504 }
2505 }
2506 % \end{macrocode}
2507 % %TODO use base\_str?
2508 % \begin{macrocode}
2509 \msg_new:nnnn{tuda-ci} {unknown-metadata} {
2510 You~ used~ the~ #1~ metadata~ entry.\\
2511 I~ don't~ know~ how~ to~ handle~ that.\\
2512 It~ will~ be~ ignored.
2513 } {See~ TUDa-CI~ or~ pdfx~ documentation~ for~ details.}
2514 \else:
2515 \hypersetup{pdfcreator=LaTeX~using~TUDa-CI}
2516 \msg_new:nnnn {tuda-ci} {metadata-to-hypersetup} {
2517 You~don't~use~pdfx.~
2518 Here~the~\string\Metadata ~command~only~exists~for~compatibility~reasons.\\
2519 I~will~pass~the~data~to~ḩypersetup.
2520 }{
2521 If~possible~please~use~hyperref's~\string\hypersetup~command~for~the~metadata~directly.\\
2522 See~hyperref~documentation~for~details~on~usage.
2523 }
2524
2525 \newcommand*{\Metadata}[1]{
2526 \tl_set:Nn \l_tmpa_tl {#1}
2527 \tl_replace_all:Nnn \l_tmpa_tl {\sep} {;~}% pdfx-Syntax compatibility
2528 \clist_map_inline:Nn \l_tmpa_tl {
2529 \exp_args:Nx \hypersetup{pdf\tl_trim_spaces:n {##1}}
2530 }
2531 \msg_warning:nn {tuda-ci} {metadata-to-hypersetup}
2532 }
2533 \cs_new:Nn \ptxcd_pass_TitleData: {
2534 % \end{macrocode}
2535 % check if pdfmanagement is active
2536 % \begin{macrocode}
2537 \prop_if_exist:NTF \g__pdfmanagement_documentproperties_prop {
2538 \prop_set_eq:NN \l_tmpa_prop \g__pdfmanagement_documentproperties_prop
2539 } {
2540 \prop_set_eq:NN \l_tmpa_prop \g__hyp_documentproperties_prop
2541 }
2542 % \end{macrocode}
2543 % title
2544 % \begin{macrocode}
2545 \prop_if_in:NnF \l_tmpa_prop {hyperref/pdftitle} {
2546 \begingroup
2547 \def\newline{}
2548 \def\\{}
2549 \let\thanks\use_none:n
2550 \tl_gset:Nf \g_tmpa_tl {\@title}
2551 \endgroup
2552 \hypersetup{pdftitle={\tl_to_str:V \g_tmpa_tl}}
2553 }
2554 % \begin{macrocode}
2555 \prop_if_in:NnF \l_tmpa_prop {hyperref/pdfauthor} {
2556 \begingroup
2557 \def\newline{}
2558 \def\\{}
2559 \let\thanks\use_none:n
2560 \tl_gset:Nx \g_tmpa_tl {\seq_use:Nn \g_ptxcd_author_seq {\exp_not:N \and}}
2561 \tl_gset:Nx \g_tmpa_tl {\g_tmpa_tl }
2562 \endgroup
2563 \hypersetup{pdfauthor=\g_tmpa_tl}
2564 }
2565 }
2566 \bool_if:NF \g_ptxcd_pdfa_bool {
2567 \msg_new:nnn{tuda-ci} {no-pdfa}{The~ tuda\c_@@_base_str\space class~ will~ not~ create~ PDF/A.}
2568 \msg_info:nn{tuda-ci} {no-pdfa}
2569 }
2570 \fi:
2571 % \end{macrocode}
2572 % \iffalse
2573 %</class|xmpdata>
2574 %<*class>
2575 % \fi
2576 % \begin{macrocode}
2577 \box_new:N \g_ptxcd_sponsor_box
2578 \seq_new:N \g_ptxcd_sponsors_seq
2579 % \end{macrocode}
2580 %
2581 % \begin{macro}{\AddSponsor}
2582 % \begin{macrocode}
2583 \def\AddSponsor{\seq_gput_right:Nn \g_ptxcd_sponsors_seq}
2584 % \end{macrocode}
2585 % \end{macro}
2586 %
2587 %
2588 % \begin{macro}{\sponsors}
2589 % \begin{macrocode}
2590 \def\sponsors#1{\def\@sponsors{#1}}
2591 % \end{macrocode}
2592 % \end{macro}
2593 %
2594 % \begin{macrocode}
2595 \sponsors{}
2596
2597 \cs_new:Npn \ptxcd_title_footnote:w [#1] #2 {
2598 \textsuperscript{ \ptxcd_title_footnotestyle:n {#1}}#2
2599 }
2600
2601 \cs_set_eq:NN \ptxcd_title_footnotestyle:n \@fnsymbol
2602
2603 \str_if_eq:VnTF \g_ptxcd_pubType_tl {thesis} {
2604 \input{tudathesis.cfg}
2605 } {
2606 \msg_new:nnnn {tudapub} {only-thesis} {You~tried~to~use~\use:c { #1}.~This~macro~is~only~available~for~publications~of~type~thesis}{See~tuda-ci~documentation~for~further~information}
2607
2608 \clist_map_inline:nn {birthplace, group, examdate, submissiondate, tuprints, urn, reviewer} {
2609 \expandafter\newcommand\csname #1\endcsname[2][]{
2610 \msg_error:nnn {tudapub} {only-thesis} {#1}
2611 }
2612 }
2613 % \end{macrocode}
2614 %
2615 % \begin{macro}{\maketitle}
2616 % \begin{macrocode}
2617 %% The following macro is an adapted version of the corresponding KOMA-Script macro
2618 %% Copyright (c) 1994-2019 Markus Kohm [komascript at gmx info]
2619 \renewcommand*{\maketitle}[1][1]{
2620 \def\and{,~ }
2621 \cs_if_exist_use:N \ptxcd_pass_TitleData:
2622 \if@titlepage
2623 \edef\titlepage@restore{%
2624 \noexpand\endgroup
2625 \noexpand\global\noexpand\@colht\the\@colht
2626 \noexpand\global\noexpand\@colroom\the\@colroom
2627 \noexpand\global\vsize\the\vsize
2628 \noexpand\global\noexpand\@titlepageiscoverpagefalse
2629 \noexpand\let\noexpand\titlepage@restore\noexpand\relax
2630 }%
2631 \ptxcd_disable_marginpar:
2632 \begin{titlepage}
2633 \setcounter{page}{%
2634 #1%
2635 }%
2636 \def\thefootnote{\ptxcd_title_footnotestyle:n {\c@footnote}}
2637 \if@titlepageiscoverpage
2638 \begingroup
2639 \topmargin=\dimexpr \coverpagetopmargin-1in\relax
2640 \oddsidemargin=\dimexpr \coverpageleftmargin-1in\relax
2641 \evensidemargin=\dimexpr \coverpageleftmargin-1in\relax
2642 \textwidth=\dimexpr
2643 \paperwidth-\coverpageleftmargin-\coverpagerightmargin\relax
2644 \textheight=\dimexpr
2645 \paperheight-\coverpagetopmargin-\coverpagebottommargin\relax
2646 \headheight=0pt
2647 \headsep=0pt
2648 \footskip=\baselineskip
2649 \@colht=\textheight
2650 \@colroom=\textheight
2651 \vsize=\textheight
2652 \columnwidth=\textwidth
2653 \hsize=\columnwidth
2654 \linewidth=\hsize
2655 \else
2656 \let\titlepage@restore\relax
2657 \fi
2658 \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
2659 \ptxcd_setup_sponsor_box:
2660 \hbox_gset:Nn \g_ptxcd_title_box {
2661 \parbox[t]{\linewidth}{
2662 \begin{minipage}[b]{\bool_if:NT \g_@@_logo_head_bool {.75}\linewidth}
2663 \bool_lazy_and:nnT {\g_ptxcd_colorback_bool} {\g_ptxcd_colorbacktitle_bool} {\color{textonaccentcolor}}
2664 \tl_if_empty:NF \@titlehead {
2665 \begin{addmargin}{3mm}
2666 {\usekomafont{titlehead}{\@titlehead\par}}
2667 \end{addmargin}
2668 }
2669 \begin{addmargin}[\dim_eval:n {\box_if_empty:NF \g_ptxcd_PaperID_box {\box_wd:N\g_ptxcd_PaperID_box+.5\c_ptxcd_logoheight_dim} +3mm}]{3mm}
2670 \raggedright
2671 \leavevmode\usekomafont{title}%
2672 \expandafter\fontsize\ptxcd_title_fontsize:
2673 \selectfont
2674 \llap{\raisebox{\dimexpr-\height+.5\baselineskip}[0pt][0pt]{\box_use:N \g_ptxcd_PaperID_box}\hspace{.5\c_ptxcd_logoheight_dim}}
2675 \@title\strut
2676 \par
2677 \box_if_empty:NTF \g_ptxcd_PaperID_box
2678 {\vskip0pt}
2679 {\rule{0pt}{.5\c_ptxcd_logoheight_dim}}
2680 \end{addmargin}
2681 \end{minipage}%
2682 \bool_if:NT \g_ptxcd_colorbacksubtitle_bool {\color{textonaccentcolor}}
2683 \par\nointerlineskip
2684 \rule{\linewidth}{\g_ptxcd_titlerule_dim}\par\vspace{\c_ptxcd_rulesep_dim}
2685 \begin{addmargin}{3mm}
2686 \usekomafont{titleinfo}
2687 \expandafter\fontsize\ptxcd_titleinfo_fontsize:
2688 \selectfont
2689 {\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle\par}\fi}%
2690 {\ifx\@subject\@empty\else\usekomafont{subject}{\@subject\par}\fi}
2691 {%
2692 \usekomafont{author}
2693 \lineskip 0.75em
2694 \@author
2695 \par
2696 }%
2697 {\ifx\@date\@empty\else\usekomafont{date}{\@date\par}\fi}%
2698 {\ifx\@publishers\@empty\else\usekomafont{publishers}{\@publishers \par}\fi}%
2699 \end{addmargin}
2700 \tl_if_empty:NF \@thanks {
2701 \expandafter\fontsize\ptxcd_titlethanks_fontsize:\selectfont\par
2702 \rule{\linewidth}{\g_ptxcd_titlerule_dim}\par
2703 \begin{addmargin}{3mm}
2704 \let\footnotetext\ptxcd_title_footnote:w
2705 \@thanks
2706 \end{addmargin}
2707 \par\vspace{-\dp\strutbox}
2708 }
2709 \normalcolor
2710 \rule{\linewidth}{\g_ptxcd_titlerule_dim}\par}
2711 }
2712 \let\@thanks\@empty
2713 \ptxcd_adjust_titlepage_style:
2714 \thispagestyle{title.TUDa}
2715 \nointerlineskip\box_use:N \g_ptxcd_title_box
2716 \par
2717 \vfill
2718 \box_if_empty:NTF \g_ptxcd_sponsor_box {
2719 \raisebox{-\c_ptxcd_rulesep_dim}[0pt][0pt]{\rule{\linewidth}{\g_ptxcd_titlerule_dim}}
2720 }{
2721 \box_use:N \g_ptxcd_sponsor_box
2722 }
2723 \if@twoside
2724 \@tempswatrue
2725 \expandafter\ifnum \@nameuse{scr@[email protected]}>\scr@compatibility\relax
2726 \else
2727 \ifx\@uppertitleback\@empty\ifx\@lowertitleback\@empty
2728 \@tempswafalse
2729 \fi\fi
2730 \fi
2731 \if@tempswa
2732 \next@tpage
2733 \begin{minipage}[t]{\textwidth}
2734 \@uppertitleback
2735 \end{minipage}\par
2736 \vfill
2737 \begin{minipage}[b]{\textwidth}
2738 \@lowertitleback
2739 \end{minipage}\par
2740 \@thanks\let\@thanks\@empty
2741 \fi
2742 \fi
2743 \ifx\@dedication\@empty
2744 \else
2745 \next@tdpage\null\vfill
2746 {\centering\usekomafont{dedication}{\@dedication \par}}%
2747 \vskip \z@ \@plus3fill
2748 \@thanks\let\@thanks\@empty
2749 \cleardoubleemptypage
2750 \fi
2751 \ifx\titlepage@restore\relax\else\clearpage\titlepage@restore\fi
2752 \end{titlepage}
2753 \setcounter{footnote}{0}%
2754 \global\let\and\relax
2755 \cleardoublepage
2756 \ptxcd_restore_typearea:
2757 \aftergroup\ptxcd_restore_typearea:
2758 \else
2759 \par
2760 \@tempcnta=%
2761 #1%
2762 \relax\ifnum\@tempcnta=1\else
2763 \ClassWarning{\KOMAClassName}{%
2764 Optional argument of \string\maketitle\space ignored\MessageBreak
2765 in `titlepage=false' mode%
2766 }%
2767 \fi
2768 \ifx\@uppertitleback\@empty\else
2769 \ClassWarning{\KOMAClassName}{%
2770 non empty \string\uppertitleback\space ignored
2771 by \string\maketitle\MessageBreak
2772 in `titlepage=false' mode%
2773 }%
2774 \fi
2775 \ifx\@lowertitleback\@empty\else
2776 \ClassWarning{\KOMAClassName}{%
2777 non empty \string\lowertitleback\space ignored
2778 by \string\maketitle\MessageBreak
2779 in `titlepage=false' mode%
2780 }%
2781 \fi
2782 \begingroup
2783 \let\titlepage@restore\relax
2784 \def\thefootnote{\fnsymbol{footnote}}
2785 \next@tdpage
2786 \ifx\@extratitle\@empty
2787 \ifx\@frontispiece\@empty\else \mbox{}\fi
2788 \else
2789 \@makeextratitle
2790 \fi
2791 \ifx\@frontispiece\@empty
2792 \ifx\@extratitle\@empty\else\next@tdpage\fi
2793 \else
2794 \next@tpage
2795 \@makefrontispiece
2796 \next@tdpage
2797 \fi
2798 \if@twocolumn
2799 \twocolumn[\@maketitle]
2800 \else
2801 \@maketitle
2802 \fi
2803 \ifx\titlepagestyle\@empty\else\thispagestyle{\titlepagestyle}\fi
2804 \global\let\@thanks\@empty
2805 \endgroup
2806 \fi
2807 }
2808 % \end{macrocode}
2809 % \end{macro}
2810 %
2811 % \begin{macrocode}
2812 }
2813
2814 \newkomafont{paperid}{\sffamily}
2815 \box_new:N \g_ptxcd_PaperID_box
2816 % \end{macrocode}
2817 %
2818 % \begin{macro}{\SetPaperID}
2819 % \begin{macrocode}
2820 \newcommand*{\SetPaperID}[2]{
2821 \hbox_gset:Nn \g_ptxcd_PaperID_box {
2822 \usekomafont{paperid}
2823 \if@titlepage
2824 \dim_set:Nn \l_tmpa_dim {\exp_last_unbraced:No \use_i:nn \ptxcd_title_fontsize: + \exp_last_unbraced:No \use_ii:nn \ptxcd_title_fontsize:}
2825 \else
2826 \Huge
2827 \dim_set:Nn \l_tmpa_dim {1.8\baselineskip}
2828 \fi
2829 \fontsize{1.1\l_tmpa_dim}{1.1\l_tmpa_dim}
2830 \selectfont
2831 #1{\Huge #2}
2832 }
2833 }
2834 % \end{macrocode}
2835 % \end{macro}
2836 %
2837 %
2838 % \begin{macro}{\@maketitle}
2839 % \begin{macrocode}
2840 \renewcommand*{\@maketitle}{%
2841 \global\@topnum=\z@
2842 \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
2843 \vspace*{-\dim_eval:n {
2844 \headheight
2845 +\headsep
2846 +\topskip
2847 -\box_ht:N\ptxcd_headrule_box
2848 -\box_dp:N \ptxcd_headrule_box
2849 }}
2850 \par
2851 \nointerlineskip
2852 \begingroup
2853 \usekomafont{disposition}
2854 \hsize=\g_ptxcd_headwidth_dim
2855 \setlength{\fboxsep}{\z@}
2856 \def\thefootnote{\ptxcd_title_footnotestyle:n {\c@footnote}}
2857 \bool_if:NT \g_ptxcd_colorback_bool {\bool_set_true:N \g_ptxcd_colorbacktitle_bool}
2858 \bool_if:NT \g_ptxcd_colorbacktitle_bool {\colorbox{identbarcolor}}
2859 {\parbox[t]{\g_ptxcd_headwidth_dim}{
2860 \rule{\z@}{.5\c_ptxcd_logoheight_dim}\par\nointerlineskip
2861 \raisebox{-\height}{%
2862 \begin{minipage}[t]{\dim_eval:n {\linewidth-\_@@_logowidth:-1ex}}
2863 \bool_if:NT \g_ptxcd_colorbacktitle_bool {\begin{addmargin}{.5\c_ptxcd_largerule_dim}}
2864 \raggedright
2865 \bool_if:NT \g_ptxcd_colorback_bool {\color{textonaccentcolor}}
2866 \tl_if_empty:NF \@titlehead {\usekomafont{titlehead}{\@titlehead\par}}
2867 \box_if_empty:NF \g_ptxcd_PaperID_box {\begin{addmargin}[\dim_eval:n {\box_wd:N\g_ptxcd_PaperID_box+.5\c_ptxcd_logoheight_dim}]{0pt}}
2868 \raggedright
2869 \bool_if:NT \g_ptxcd_colorback_bool {\color{textonaccentcolor}}
2870 \tl_if_empty:NF \@titlehead {\usekomafont{titlehead}{\@titlehead\par}}
2871 \leavevmode\usekomafont{title}%
2872 \Huge
2873 \llap{\raisebox{\dimexpr-\height+.5\baselineskip}[0pt][0pt]{\box_use:N \g_ptxcd_PaperID_box}\hspace{.5\c_ptxcd_logoheight_dim}}
2874 \@title\strut
2875 \par
2876 \box_if_empty:NTF \g_ptxcd_PaperID_box
2877 {\vskip1em}
2878 {\rule{0pt}{.5\c_ptxcd_logoheight_dim}}
2879 \box_if_empty:NF \g_ptxcd_PaperID_box {\end{addmargin}}
2880 \bool_if:NTF \g_ptxcd_colorbacktitle_bool {\end{addmargin}} {\par}
2881 \vspace{\dim_eval:n {\c_ptxcd_largerule_dim+\c_ptxcd_rulesep_dim}}
2882 \end{minipage}
2883 }
2884 \hfill
2885 \raisebox{-\height}{
2886 \ptxcd_setup_title_box:
2887 \makebox[\_@@_logowidth:][l]{
2888 \box_use:N \g_ptxcd_title_info_box
2889 }
2890 }
2891 \dim_compare:nNnTF {\box_ht:N \g_ptxcd_title_info_box + \box_ht:N \g_ptxcd_title_info_box} > {(\_@@_logowidth:)/2}
2892 {\vspace{\c_ptxcd_largerule_dim}}
2893 {\vspace{.5\c_ptxcd_logoheight_dim}}
2894 \par
2895 }}
2896 \par
2897 \nointerlineskip
2898 \rule{\g_ptxcd_headwidth_dim}{\g_ptxcd_titlerule_dim}
2899 \begin{addmargin}{.5\c_ptxcd_largerule_dim}
2900 \Large
2901 \clist_map_inline:nn {subtitle, subject, author, date, publishers}
2902 {\tl_if_empty:cF {@##1} {{\usekomafont{##1}\use:c {@##1}\par}}}
2903 \vspace{\c_ptxcd_rulesep_dim}
2904 \end{addmargin}
2905 \tl_if_empty:NF \@thanks {
2906 \par\nointerlineskip
2907 \rule{\g_ptxcd_headwidth_dim}{\g_ptxcd_titlerule_dim}
2908 \expandafter\fontsize\ptxcd_titlethanks_fontsize:\selectfont
2909 \begin{addmargin}{.5\c_ptxcd_largerule_dim}
2910 \let\footnotetext\ptxcd_title_footnote:w
2911 \@thanks
2912 \vspace{\c_ptxcd_rulesep_dim}
2913 \end{addmargin}
2914 \par
2915 \let\@thanks\@empty
2916 }
2917 \par\nointerlineskip
2918 \rule{\g_ptxcd_headwidth_dim}{\g_ptxcd_titlerule_dim}
2919 \par
2920 \endgroup
2921 \vskip .5\c_ptxcd_logoheight_dim
2922 }%
2923 % \end{macrocode}
2924 % \end{macro}
2925 %
2926 %
2927 % \begin{macro}{\abstract}
2928 %%Abstract anpassungen mit Sprache
2929 % \begin{macrocode}
2930 \providecommand{\abstract}{}% für book
2931 % \end{macrocode}
2932 % \end{macro}
2933 %
2934 % \begin{macrocode}
2935 \RenewDocumentEnvironment{abstract}{o}{
2936 \begingroup
2937 \IfNoValueF{#1}{\selectlanguage{#1}}
2938 \bool_set_true:N \l_tmpa_bool
2939 \cs_if_exist:NT \if@abstrt {
2940 \if@abstrt
2941 \else
2942 \bool_set_false:NT \l_tmpa_bool
2943 \fi
2944 }
2945 \bool_if:NT \l_tmpa_bool {
2946 \scr@ifundefinedorrelax{chapter}{%
2947 \Iftocfeature{toc}{leveldown}
2948 {\subsection*}
2949 {\section*}
2950 }{
2951 \Iftocfeature{toc}{leveldown}
2952 {\section*}
2953 {\chapter*}
2954 } {\abstractname}
2955
2956 }}{
2957 \endgroup
2958 }
2959 % \end{macrocode}
2960 % Anpassungen marginpar
2961 % \begin{macrocode}
2962 \cs_set_eq:NN\ptxcd_orig@marginpar:w \marginpar
2963 \newkomafont{marginpar}{\accentfont\color{textaccentcolor}}
2964 \RenewDocumentCommand{\marginpar}{om}{
2965 \IfNoValueTF{#1}{
2966 \ptxcd_orig@marginpar:w {\leavevmode\usekomafont{marginpar}#2}
2967 }{
2968 \ptxcd_orig@marginpar:w [{\leavevmode\usekomafont{marginpar}#1}]{\leavevmode\usekomafont{marginpar}#2}
2969 }
2970 }
2971
2972 \ptxcd_declare_caption:Nnn \authorandname {und} {and}
2973 \ptxcd_declare_caption:Nnn \ptxcd_datename {Datum}{Date}
2974 % \end{macrocode}
2975 %
2976 % \begin{macro}{\ptxcd}
2977 % \begin{macrocode}
2978 \gdef\ptxcd_dateseparator{:~}
2979 % \end{macrocode}
2980 % \end{macro}
2981 %
2982 %
2983 % \begin{macro}{\frontmatter}
2984 % \begin{macrocode}
2985 \providecommand*{\frontmatter}{
2986 \if@twoside\cleardoublepage\else\clearpage\fi \@mainmattertrue
2987 \pagenumbering {roman}
2988 }
2989 % \end{macrocode}
2990 % \end{macro}
2991 %
2992 %
2993 % \begin{macro}{\mainmatter}
2994 % \begin{macrocode}
2995 \providecommand*{\mainmatter}{
2996 \if@twoside\cleardoublepage\else\clearpage\fi \@mainmattertrue
2997 \pagenumbering {arabic}
2998 }
2999 % \end{macrocode}
3000 % \end{macro}
3001 %
3002 %
3003 % \begin{macro}{\backmatter}
3004 % \begin{macrocode}
3005 \providecommand*{\backmatter}{
3006 \if@twoside\cleardoublepage\else\clearpage\fi \@mainmatterfalse
3007 }
3008 % \end{macrocode}
3009 % \end{macro}
3010 %
3011 % IMRAD:Introduction
3012 % \begin{macrocode}
3013 \seq_if_exist:NTF \seq_const_from_clist:Nn {
3014 \seq_const_from_clist:Nn \c_ptxcd_IMRAD_seq {introduction, methods, results, discussion}
3015 } {
3016 \seq_new:N \c_ptxcd_IMRAD_seq
3017 \seq_gset_from_clist:Nn \c_ptxcd_IMRAD_seq {introduction, methods, results, discussion}
3018 }
3019 % \end{macrocode}
3020 %
3021 % \begin{macro}{\IMRADlabel}
3022 % \begin{macrocode}
3023 \newcommand*{\IMRADlabel}[1]{
3024 \seq_if_in:NnTF \c_ptxcd_IMRAD_seq {#1}
3025 {\label{IMRAD:#1}}
3026 {\msg_error:nnnn {tudapub} {undefined-IMRADlabel}{#1}{\seq_use:Nn \c_ptxcd_IMRAD_seq {,}}}
3027 }
3028 % \end{macrocode}
3029 % \end{macro}
3030 %
3031 % \begin{macrocode}
3032 \bool_if:NT \g_ptxcd_IMRAD_bool {
3033 \AtEndDocument{
3034 \seq_map_inline:Nn \c_ptxcd_IMRAD_seq {
3035 \cs_if_exist:cF {r@IMRAD:#1} {
3036 \msg_warning:nnn {tudapub} {missing-IMRADlabel} {#1}
3037 }
3038 }
3039 }
3040 }
3041
3042 \msg_new:nnn {tudapub} {undefined-IMRADlabel} {
3043 You~tried~to~set~an~IMRAD~label~with~key~#1.\\
3044 This~label~type~is~not~declared.\\
3045 Possible~labels~are:~#2
3046 }
3047
3048 \msg_new:nnn{tudapub} {missing-IMRADlabel} {
3049 You~did~not~provide~a~Label~for~key~#1.\\
3050 Either~you~need~to~recompile~your~document~or~add~a~label~using~\string\IMRADlabel.
3051 }
3052 % \end{macrocode}
3053 % backwards compatibility for KOMA-Script
3054 % \begin{macrocode}
3055 \cs_if_exist:NF \Iftocfeature{
3056 \let\Iftocfeature\iftocfeature
3057 }
3058
3059 \file_if_exist_input:n {\g_@@_config_prefix_tl\g_ptxcd_department_str.cfg}
3060 % \end{macrocode}
3061
3062 %
3063 % \iffalse
3064 %</class>
3065 %<*tudathesis>
3066 % \fi
3067 % \begin{macrocode}
3068 \tl_new:N \g_ptxcd_thesis_drtext_tl
3069 \bool_new:N \g_@@_dr_bool
3070 \clist_if_exist:NF \g_ptxcd_Required_title_data_clist {\clist_new:N \g_ptxcd_Required_title_data_clist}
3071
3072 % Declare macros for department
3073 \cs_new:Nn \ptxcd_select_department:n {
3074 \str_case:nnTF {#1} {
3075 {arch} {\ptxcd_declare_caption:Nnn \ptxcd_department: {Architektur} {Architecture}}
3076 {bauing} {\ptxcd_declare_caption:Nnn \ptxcd_department: {Bau-~und~Umweltingenieurwissenschaften}{Civil~and~Environmental~Engineering}}
3077 {bio} {\ptxcd_declare_caption:Nnn \ptxcd_department: {Biologie}{Biology}}
3078 {chem} {\ptxcd_declare_caption:Nnn \ptxcd_department: {Chemie}{Chemistry}}
3079 {etit} {\ptxcd_declare_caption:Nnn \ptxcd_department: {Elektrotechnik~und~Informationstechnik}{Electrical~Engineering~and~Information~Technology}}
3080 {gugw} {\ptxcd_declare_caption:Nnn \ptxcd_department: {Gesellschafts-~und~Geschichtswissenschaften}{History~and~Social~Sciences}}
3081 {humanw} {\ptxcd_declare_caption:Nnn \ptxcd_department: {Humanwissenschaften}{Human~Sciences}}
3082 {inf} {\ptxcd_declare_caption:Nnn \ptxcd_department: {Informatik}{Computer~Science}}
3083 {mb} {\ptxcd_declare_caption:Nnn \ptxcd_department: {Maschinenbau}{Mechanical~Engineering}}
3084 {matgeo} {\ptxcd_declare_caption:Nnn \ptxcd_department: {Material-~und~Geowissenschaften}{Materials~and~Earth~Sciences}}
3085 {math} {\ptxcd_declare_caption:Nnn \ptxcd_department: {Mathematik}{Mathematics}}
3086 {phys} {\ptxcd_declare_caption:Nnn \ptxcd_department: {Physik}{Physics}}
3087 {wi} {\ptxcd_declare_caption:Nnn \ptxcd_department: {Rechts-~und~Wirtschaftswissenschaften}{Law~and~Economics}}
3088 }
3089 {
3090 \ptxcd_declare_caption:Nnn \departmentname {Fachbereich} {department}
3091 \ptxcd_declare_caption:Nnn \departmentfullname {\departmentname{}~ \ptxcd_department:} { \ptxcd_department:{}~ \text_titlecase:n{\departmentname}}
3092 \ptxcd_declare_caption:Nnn \ptxcd_departmentprefix: {im~ \departmentname}{in~the~\departmentname{}~ of}
3093 \ptxcd_declare_caption:Nnn \ptxcd_in_department {\ptxcd_departmentprefix:{}~\ptxcd_department:}{\ptxcd_departmentprefix:{}~\ptxcd_department:}
3094 }
3095 {\bool_if:NTF \g_@@_dr_bool
3096 {
3097 \msg_warning:nnn{tudapub/thesis} {unrecognized-department} {#1}
3098 \gdef\ptxcd_department:{#1}
3099 \ptxcd_declare_caption:Nnn \departmentname {Fachbereich} {department}
3100 }
3101 {\ptxcd_select_studyfield:n {#1}}
3102 }
3103 }
3104
3105 \cs_new:Nn \ptxcd_select_studyfield:n {
3106 \str_case:nnTF {#1} {
3107 {ce}{\ptxcd_declare_caption:Nnn \ptxcd_department: {Computational\nobreakspace Engineering}{Computational\nobreakspace Engineering}}
3108 {ese}{\ptxcd_declare_caption:Nnn \ptxcd_department: {Energy~Science~and~Engineering}{Energy~Science~and~Engineering}}
3109 {ist}{\ptxcd_declare_caption:Nnn \ptxcd_department: {Informationssystemtechnik} {Information~Systems~Technology}}
3110 {mech}{\ptxcd_declare_caption:Nnn \ptxcd_department: {Mechanik}{Mechanics}}
3111 {metro}{\ptxcd_declare_caption:Nnn \ptxcd_department: {Mechatronik}{Mechatronics}}
3112 }
3113 {
3114 \ptxcd_declare_caption:Nnn \departmentname {Studienbereich} {field~of~study}
3115 \ptxcd_declare_caption:Nnn \departmentfullname {\departmentname{}~ \ptxcd_department:} {\departmentname{}:~\ptxcd_department:}
3116 \ptxcd_declare_caption:Nnn \ptxcd_departmentprefix: {im~ \departmentname}{in~the~\departmentname}
3117 \ptxcd_declare_caption:Nnn \ptxcd_in_department {\ptxcd_departmentprefix:{}~\ptxcd_department:} {\ptxcd_departmentprefix:{}~``\ptxcd_department:''}
3118 }
3119 {
3120 \msg_warning:nnn{tudapub/thesis} {unrecognized-department} {#1}
3121 \gdef\ptxcd_department:{#1}
3122 \ptxcd_declare_caption:Nnn \departmentname {Fachbereich} {department}
3123 }
3124 }
3125
3126 \cs_new:Nn \ptxcd_insert_studentID:n {
3127 (\ptxcd_studentIDname :\nobreakspace#1)
3128 }
3129
3130 \ptxcd_declare_caption:Nnn \ptxcd_byname {von} {by}
3131 \ptxcd_declare_caption:Nnn \ptxcd_fromname {aus} {from}
3132 \ptxcd_declare_caption:Nnn \ptxcd_departmentprefix: {im~ \departmentname}{in~the~\departmentname{}~ of}
3133 \ptxcd_declare_caption:Nnn \ptxcd_reviewname {Gutachten}{review}
3134 \ptxcd_declare_caption:Nnnn \ptxcd_examdatename {Tag~ der~ Prüfung}{Date~ of~ thesis~ defense}{Date~ of~ thesis~ defence}
3135 \ptxcd_declare_caption:Nnn \ptxcd_submissiondatename {Tag~ der~ Einreichung}{Date~ of~ submission}
3136 \ptxcd_declare_caption:Nnn \ptxcd_studentIDname {Matrikelnummer} {Student\nobreakspace ID}
3137
3138 % Fallback content for box if not overwritten
3139 \newcommand*\ptxcd_box_department {\cs_if_exist_use:NF \departmentfullname {\ptxcd_department:}}
3140 \newcommand*\ptxcd_in_department {}
3141 \newcommand*{\ptxcd_thesisStatus}{}
3142 \tl_new:N \g_@@_affidavit_version_tl
3143 \def\@ThesisTypeArticle{die}
3144
3145 \keys_define:nn {ptxcd/thesis} {
3146 dr .choice:,
3147 dr/rernat .code:n = \tl_gset:Nn \g_ptxcd_thesis_drtext_tl {Zur~Erlangung~des~Grades~eines~Doktors~der~Naturwissenschaften~(Dr.\,rer.\,nat.)},
3148 dr/ing .code:n = \tl_gset:Nn \g_ptxcd_thesis_drtext_tl {Zur~Erlangung~des~akademischen~Grades~Doktor-Ingenieur~(Dr.-Ing.)},
3149 dr/phil .code:n = \tl_gset:Nn \g_ptxcd_thesis_drtext_tl {Zur~Erlangung~des~Grades~eines~Doktor~der~Philosophie~(Dr.\,phil.)},
3150 dr/rerpol .code:n = \tl_gset:Nn \g_ptxcd_thesis_drtext_tl {Zur~Erlangung~des~Grades~eines~Doctor~rerum~politicarum (Dr. rer. pol.)},
3151 type .choice:,
3152 type/sta .code:n = {\def\ptxcd_thesisType{Studienarbeit}
3153 \clist_gset:Nn \g_ptxcd_Required_title_data_clist {title, author, date}
3154 \bool_gset_false:N \g_@@_dr_bool
3155 },
3156 % type/diplom .code:n = {\def\ptxcd_thesisType{Diplomarbeit}\clist_gset:Nn \g_ptxcd_Required_title_data_clist {title, author, submissiondate, reviewer, department}},
3157 type/bsc .meta:n = {type=bachelor},
3158 type/bachelor .code:n = {\ptxcd_declare_caption:Nnn \ptxcd_thesisType{Bachelorarbeit}{bachelor~ thesis}\def\@ThesisTypeArticle{die}\clist_gset:Nn \g_ptxcd_Required_title_data_clist {title, author, submissiondate, department, reviewer}\bool_gset_false:N \g_@@_dr_bool},
3159 type/pp .code:n = { \ptxcd_declare_caption:Nnn \ptxcd_thesisType {Project-Proposal}{project~ proposal}\def\@ThesisTypeArticle{das}\clist_gset:Nn \g_ptxcd_Required_title_data_clist {title, author, date, department}\bool_gset_false:N \g_@@_dr_bool},
3160 type/msc .meta:n = {type=master},
3161 type/master .code:n = \ptxcd_declare_caption:Nnn \ptxcd_thesisType{Masterarbeit}{master~ thesis}\def\@ThesisTypeArticle{die}\clist_gset:Nn \g_ptxcd_Required_title_data_clist {title, author, submissiondate, department, reviewer}\bool_gset_false:N \g_@@_dr_bool,
3162 type/dr .code:n = \ptxcd_declare_caption:Nnn \ptxcd_thesisType{Dissertation}{doctoral~ thesis}\ptxcd_declare_caption:Nnn\ptxcd_thesisStatus{vorgelegte}{submitted}\def\@ThesisTypeArticle{die}\clist_gset:Nn \g_ptxcd_Required_title_data_clist {title, author, submissiondate , department, reviewer}\bool_gset_true:N \g_@@_dr_bool,
3163 type/drfinal .code:n = \ptxcd_declare_caption:Nnn \ptxcd_thesisType {Dissertation}{doctoral~ thesis}\ptxcd_declare_caption:Nnn\ptxcd_thesisStatus{genehmigte}{accepted}\def\@ThesisTypeArticle{die}\clist_gset:Nn \g_ptxcd_Required_title_data_clist {title, author, submissiondate,examdate, department, reviewer}\bool_gset_true:N \g_@@_dr_bool,
3164 type/unknown .code:n = \def\ptxcd_thesisType{#1}\clist_gset:Nn \g_ptxcd_Required_title_data_clist {}\def\@ThesisTypeArticle{die}\bool_gset_false:N \g_@@_dr_bool,
3165 ignore-missing-data .bool_gset:N = \g_ptxcd_missing_data_warning_bool,
3166 ignore-missing-data .initial:n = false,
3167 department .tl_gset:N = \g_ptxcd_department_choice_tl,
3168 status .code:n = \tl_if_head_is_group:nTF {#1} {\ptxcd_declare_caption:Nnn\ptxcd_thesisStatus #1 {}} {\ptxcd_declare_caption:Nnn\ptxcd_thesisStatus{#1}{#1}},
3169 fieldofstudy .meta:n ={department = #1},
3170 ignore-title-language .bool_gset:N = \g_ptxcd_ignore_title_language_bool,
3171 ignore-title-language .initial:n ={false},
3172 noinstbox .bool_gset:N = \g_ptxcd_manual_info_box_bool,
3173 instbox .bool_gset_inverse:N = \g_ptxcd_manual_info_box_bool,
3174 instbox .initial:n = true,
3175 reviewer-on-uppertitleback .bool_gset:N = \g_@@_reviewer_on_uppertitleback_bool,
3176 reviewer-on-uppertitleback .initial:n = false,
3177 hide-architecture-note .bool_gset_inverse:N = \g_@@_architecture_note_bool,
3178 hide-architecture-note .initial:n = false,
3179 hide-architecture-note .default:n = true,
3180 }
3181
3182 \prop_map_inline:Nn \g_ptxcd_unknown_clsopts_prop {
3183 \keys_if_exist:nnT {ptxcd/thesis} {#1} {
3184 \keys_set:nn {ptxcd/thesis} {#1=#2}
3185 }
3186 }
3187
3188 \tl_if_empty:NF \g_ptxcd_thesis_options_tl {\keys_set:nV {ptxcd/thesis} \g_ptxcd_thesis_options_tl}
3189
3190 \cs_new:Npn \drtext #1 {\tl_gset:Nn \g_ptxcd_thesis_drtext_tl {#1}}
3191 \tl_new:N \g_ptxcd_titleintro_tl
3192 \cs_new:Npn \titleintro #1 {\tl_gset:Nn \g_ptxcd_titleintro_tl {#1}}
3193 \tl_new:N \g_ptxcd_titleaddendum_tl
3194 \cs_new:Npn \titleaddendum #1 {\tl_gset:Nn \g_ptxcd_titleaddendum_tl {#1}}
3195
3196 \msg_new:nnnn{tudapub/thesis} {required-data-missing} {You~did~not~provide~#1~data~for~the~title.~Either~provide~it~or~change~your~publication~type.} {See~ the~ TUDa-CI~ documentation~ for~ further~ information~ and~ workarounds.}
3197
3198 \cs_new:Nn \ptxcd_missing_title_data:n {
3199 \bool_if:NTF \g_ptxcd_missing_data_warning_bool
3200 \msg_warning:nnn
3201 \msg_error:nnn{tudapub/thesis} {required-data-missing} {#1}
3202 }
3203
3204 \cs_new:Nn \ptxcd_check_title_data:Nn {
3205 \clist_if_in:NnT \g_ptxcd_Required_title_data_clist {#2} {
3206 \tl_if_empty:NT #1 {
3207 \bool_if:NTF \g_ptxcd_missing_data_warning_bool
3208 {\msg_warning:nnn}
3209 {\msg_error:nnn} {tudapub/thesis} {required-data-missing} {#2}
3210 }
3211 }
3212 }
3213
3214 \cs_generate_variant:Nn \ptxcd_check_title_data:Nn {cn}
3215
3216 \renewcommand*\author[2][]{
3217 \seq_gset_split:Nnn \g_ptxcd_author_seq {\and} {#2}
3218 \tl_if_empty:nTF {#1}
3219 {\tl_set:Nn \l_ptxcd_signature_tl {#2}}
3220 {\tl_set:Nn \l_ptxcd_signature_tl {#1}}
3221 }
3222
3223 \newcommand*{\studentID}[1]{
3224 \tl_set:Nn \l_ptxcd_studentID_tl {#1}
3225 }
3226
3227 \gdef\ptxcd_institution{}
3228 \gdef\ptxcd_institute{}
3229 \gdef\ptxcd_department:{}
3230 % \gdef\ptxcd_studentID{}
3231
3232 \NewDocumentCommand{\department}{som}{%
3233 \IfBooleanTF{#1}{
3234 \tl_gset:Nn \ptxcd_department: {#3}
3235 \tl_gset:Nn \ptxcd_in_department{#3}
3236 \IfNoValueTF {#2} {\tl_gset:Nn \ptxcd_box_department {#3}} {\tl_gset:Nn \ptxcd_box_department{#2}}
3237 \clist_remove_all:Nn \g_ptxcd_Required_title_data_clist {department}
3238 }{
3239 \tl_gset:Nn \g_ptxcd_department_choice_tl {#3}
3240 \IfNoValueF {#2} {\tl_gset:Nn \ptxcd_departmentprefix: {#2}}
3241 }
3242 }
3243
3244 \newcommand*{\institute}[1]{
3245 \gdef\ptxcd_institute{#1}
3246 }
3247
3248 \gdef\ptxcd_group{}
3249 \newcommand*{\group}[1]{%
3250 \gdef\ptxcd_group{#1}
3251 }
3252
3253 \gdef\ptxcd_birthplace{}
3254 \newcommand*{\birthplace}[1]{%
3255 \bool_if:NTF \g_@@_dr_bool
3256 {\gdef\ptxcd_birthplace{#1}}
3257 {\msg_info:nnn{tudapub/thesis} {dr-field-only} {birthplace}}
3258 }
3259
3260 \publishers{Darmstadt\bool_if:NT \g_@@_dr_bool {,~Technische~Universität~Darmstadt}}
3261
3262 \seq_new:N \g_ptxcd_reviewer_seq
3263 \NewDocumentCommand{\reviewer}{som}{
3264 \IfNoValueF {#2} {
3265 \IfBooleanTF{#1}
3266 {\setupReviewName*{#2}}
3267 {\setupReviewName{#2}}
3268 }
3269 \tl_if_empty:nTF {#3}
3270 {\let\@reviewer\@empty}
3271 {\seq_gset_split:Nnn \g_ptxcd_reviewer_seq {\and} {#3}}
3272 }
3273
3274 \cs_set:Nn \ptxcd_thesis_print_reviewer: {
3275 \clist_if_in:NnT \g_ptxcd_Required_title_data_clist {reviewer} {
3276 \seq_if_empty:NT \g_ptxcd_reviewer_seq {\ptxcd_missing_title_data:n {reviewer}}
3277 }
3278 \int_zero:N \l_tmpb_int
3279 \par\vspace*{\baselineskip}
3280 {
3281 \seq_map_inline:Nn \g_ptxcd_reviewer_seq
3282 {
3283 \int_incr:N \l_tmpb_int
3284 \cs_if_exist_use:cF {_@@_reviewname_\int_use:N \l_tmpb_int :}
3285 {\int_to_arabic:n {\l_tmpb_int}.~\text_titlecase:n{\ptxcd_reviewname}}
3286 :~\exp_not:n {##1}\\
3287 }
3288 }
3289 }
3290
3291 \gdef\ptxcd_examdate{}
3292 \newcommand*{\examdate}[1]{
3293 \bool_if:NTF \g_@@_dr_bool
3294 {\gdef\ptxcd_examdate{#1}}
3295 {\msg_info:nnn{tudapub/thesis} {dr-field-only} {examdate}}
3296 }
3297
3298 \gdef\ptxcd_submissiondate{}
3299 \newcommand*{\submissiondate}[1]{
3300 \gdef\ptxcd_submissiondate{#1}
3301 }
3302
3303 \gdef\@date{}
3304
3305 \cs_new:Nn \ptxcd_thesis_print_dates:n {
3306 \bool_set_false:N \l_tmpa_bool
3307 \tl_if_empty:NF \@date {
3308 \ptxcd_datename\tl_if_empty:NF \ptxcd_datename {\ptxcd_dateseparator}\@date
3309 \bool_set_true:N \l_tmpa_bool
3310 }
3311 \tl_if_empty:NF \ptxcd_submissiondate {
3312 \bool_if:NTF \l_tmpa_bool {#1} {\bool_set_true:N \l_tmpa_bool}\ptxcd_submissiondatename\ptxcd_dateseparator\ptxcd_submissiondate
3313 }
3314 \tl_if_empty:NF \ptxcd_examdate {
3315 \bool_if:NTF \l_tmpa_bool {#1} {\bool_set_true:N \l_tmpa_bool}\ptxcd_examdatename\ptxcd_dateseparator\ptxcd_examdate
3316 }
3317 }
3318
3319 \tl_new:N \g_ptxcd_license_info_tl
3320 % \end{macrocode}
3321 % \changes{v4.04}{2025-11-04}{Change prefixes for tuprints to match the new server infrastructure \issue{520}}
3322 % \begin{macrocode}
3323 \tl_const:Nn \c_@@_doi_prefix_tl {
3324 doi.org/10.26083/tuda-
3325 }
3326 \tl_const:Nn \c_@@_urn_prefix_tl {
3327 nbn-resolving.de/urn:nbn:de:tuda-tuda-
3328 }
3329 \tl_const:Nn \c_@@_url_prefix_tl {
3330 tuprints.ulb.tu-darmstadt.de/handle/tuda/
3331 }
3332 \tl_const:Nn \c_@@_link_prefix_tl {
3333 https://
3334 }
3335
3336 \cs_new:Nn \_@@_add_url_prefix:nn {
3337 \tl_gclear:c {g_ptxcd_thesis_#1_tl}
3338 \regex_if_match:nnTF {^https?://} {#2} {
3339 \tl_gset:cn {g_ptxcd_thesis_#1_tl} {#2}
3340 } {
3341 \seq_set_split:Nne \l_tmpa_seq {/} {\tl_use:c {c_@@_#1_prefix_tl}}
3342 \tl_set:Nn \l_tmpa_tl {#2}
3343 \seq_map_indexed_inline:Nn \l_tmpa_seq {
3344 \regex_replace_once:nnN {^##2/?} {} \l_tmpa_tl
3345 }
3346 \tl_gset:ce {g_ptxcd_thesis_#1_tl} {
3347 \exp_not:N \c_@@_link_prefix_tl
3348 \exp_not:v {c_@@_#1_prefix_tl}
3349 \exp_not:V \l_tmpa_tl
3350 }
3351 }
3352 }
3353
3354 % \end{macrocode}
3355 % Initilize variables for |\tuprints|.
3356 % \begin{macrocode}
3357 \tl_new:N \g_ptxcd_thesis_doi_tl
3358 \tl_new:N \g_ptxcd_thesis_urn_tl
3359 \tl_new:N \g_ptxcd_thesis_url_tl
3360 \tl_gset:Ne \g_ptxcd_thesis_url_tl {\c_@@_link_prefix_tl\c_@@_url_prefix_tl\exp_not:N \g_ptxcd_thesis_tuprints_tl}
3361
3362 \keys_define:nn {ptxcd/thesis} {
3363 urn .code:n = {\_@@_add_url_prefix:nn {urn} {#1}},
3364 url .code:n = {\_@@_add_url_prefix:nn {url} {#1}},
3365 printid .tl_gset:N = \g_ptxcd_thesis_tuprints_tl,
3366 % \end{macrocode}
3367 % \changes{v4.02}{2025-03-03}{Add initial setting for doi to use printid.}
3368 % \begin{macrocode}
3369 doi .code:n = {\_@@_add_url_prefix:nn {doi} {#1}},
3370 year .tl_gset:N = \g_ptxcd_thesis_publication_year_tl,
3371 year .initial:n = ,
3372 license .choices:nn = {cc-by-4.0,cc-by-sa-4.0,cc-by-nc-sa-4.0,cc-by-nc-4.0,cc-by-nd-4.0,cc-by-nc-nd-4.0} {
3373 \tl_gset:Nx \g_ptxcd_license_info_tl {\exp_not:N \g_@@_cc_license:n {\l_keys_choice_tl} \exp_not:N \iflanguage{\exp_not:N \bbl@main@language}{}{\exp_not:n {\par\smallskip\otherlanguage{\bbl@main@language}}{\exp_not:N \g_@@_cc_license:n {\l_keys_choice_tl}}}}
3374 },
3375 license / cc-by-nc-nd-2.0-de .code:n = \tl_gset:Nn \g_ptxcd_license_info_tl {\use:c {g_@@_cc-by-nc-nd-2.0-de:}},
3376 license / inc-1.0-de .code:n = \tl_gset:Nn \g_ptxcd_license_info_tl {
3377 Die~Veröffentlichung~ist~urheberrechtlich~geschützt\newline
3378 \url{https://rightsstatements.org/page/InC/1.0/}
3379 },
3380 license / inc-1.0-en .code:n = \tl_gset:Nn \g_ptxcd_license_info_tl {
3381 This~work~is~protected~by~copyright\newline
3382 \url{https://rightsstatements.org/page/InC/1.0/}
3383 },
3384 license / inc-1.0 .code:n = \tl_if_in:NnTF \languagename {german} {\keys_set:nn {ptxcd/thesis}{license=inc-1.0-de}}{\keys_set:nn {ptxcd/thesis}{license=inc-1.0-en}},
3385 license / initial .code:n = {\keys_set:nn {ptxcd/thesis} {license=cc-by-4.0}},
3386 license / unknown .code:n = \tl_gset:Nn \g_ptxcd_license_info_tl {#1},
3387 license .initial:n = initial,
3388 signature .tl_set:N = \l_ptxcd_signature_tl,
3389 studentID .tl_set:N = \l_ptxcd_studentID_tl,
3390 studentID .initial:n =,
3391 signature-image .tl_set:N = \l_ptxcd_signature_image_tl,
3392 signature-image .initial:n =,
3393 signature-location .tl_set:N = \l_ptxcd_signature_location_tl,
3394 signature-location .initial:n = Darmstadt,
3395 }
3396
3397 \cs_new:cn {g_@@_cc-by-nc-nd-2.0-de:} {
3398 Die~Veröffentlichung~steht~unter~folgender~Creative~Commons~Lizenz:\\
3399 Namensnennung~--~Keine~kommerzielle~Nutzung~--~Keine~Bearbeitung~ 2.0~Deutschland\\
3400 \url{https://creativecommons.org/licenses/by-nc-nd/2.0/de/}
3401 }
3402
3403 \defcaptionname{ngerman, german}{\g_@@_cc_attr_by:}{Namensnennung}
3404 \defcaptionname{ngerman, german}{\g_@@_cc_attr_nc:}{Nicht~kommerziell}
3405 \defcaptionname{ngerman, german}{\g_@@_cc_attr_sa:}{Weitergabe~unter~gleichen~Bedingungen}
3406 \defcaptionname{ngerman, german}{\g_@@_cc_attr_nd:}{Keine~Bearbeitungen}
3407
3408 \defcaptionname{english, USenglish, american, UKenglish, british}{\g_@@_cc_attr_by:}{Attribution}
3409 \defcaptionname{english, USenglish, american, UKenglish, british}{\g_@@_cc_attr_nc:}{NonCommercial}
3410 \defcaptionname{english, USenglish, american, UKenglish, british}{\g_@@_cc_attr_sa:}{ShareAlike}
3411 \defcaptionname{english, USenglish, american, UKenglish, british}{\g_@@_cc_attr_nd:}{NoDerivatives}
3412
3413 \defcaptionname{ngerman,german}{\g_@@_cc_intro:}{Die~Veröffentlichung~steht~unter~folgender~Creative~Commons~Lizenz:}
3414 \defcaptionname{english, USenglish, american, UKenglish, british}{\g_@@_cc_intro:}{This~work~is~licensed~under~a~Creative~Commons~License:}
3415
3416 \defcaptionname{ngerman,german}{\g_@@_cc_sep:}{~--~}
3417 \defcaptionname{english, USenglish, american, UKenglish, british}{\g_@@_cc_sep:}{--}
3418
3419 \cs_new:Nn \g_@@_cc_license:n {
3420 \group_begin:
3421 \g_@@_cc_intro:\\
3422 \seq_set_split:Nnn \l_tmpa_seq {-} {#1}
3423 \bool_set_false:N \l_tmpa_bool
3424 \seq_remove_all:Nn \l_tmpa_seq {cc}
3425 \seq_pop_right:NN \l_tmpa_seq \l_tmpa_tl
3426 \seq_map_inline:Nn \l_tmpa_seq {
3427 \bool_if:NTF \l_tmpa_bool {\g_@@_cc_sep:} {\bool_set_true:N \l_tmpa_bool}
3428 \use:c {g_@@_cc_attr_##1:}
3429 }~\l_tmpa_tl{}~International\\
3430 \url{https://creativecommons.org/licenses/\seq_use:Nn \l_tmpa_seq {-}/\l_tmpa_tl/}
3431 \group_end:
3432 }
3433
3434 \newcommand{\tuprints}[1]{%
3435 \tl_if_in:nnTF {#1} {=}
3436 {\keys_set:nn {ptxcd/thesis} {#1}}
3437 {\keys_set:nn {ptxcd/thesis} {printid=#1}}
3438 \lowertitleback{
3439 \begingroup
3440 \setlength{\parindent}{\z@}
3441 \setlength{\parskip}{\z@}
3442 \urlstyle{same}
3443 \selectlanguage{german}
3444 Bitte~zitieren~Sie~dieses~Dokument~als:\par
3445 \tl_if_empty:NF \g_ptxcd_thesis_urn_tl {URN:~\url{\g_ptxcd_thesis_urn_tl}\par}
3446 \tl_if_empty:NF \g_ptxcd_thesis_url_tl {URL:~\url{\g_ptxcd_thesis_url_tl}\par}
3447 \tl_if_empty:NF \g_ptxcd_thesis_doi_tl {DOI:~\url{\g_ptxcd_thesis_doi_tl}\par}
3448 \tl_if_empty:NF \g_ptxcd_thesis_publication_year_tl {Jahr~der~Veröffentlichung~auf~TUprints:~\g_ptxcd_thesis_publication_year_tl}
3449 \par\vspace{\baselineskip}
3450 Dieses~Dokument~wird~bereitgestellt~von~tuprints,\par
3451 E-Publishing-Service~der~TU~Darmstadt\par
3452 \url{https://tuprints.ulb.tu-darmstadt.de}\par
3453 \url{[email protected]}\par\vskip\baselineskip
3454 \tl_if_empty:NF \g_ptxcd_license_info_tl {\par\vskip\baselineskip\g_ptxcd_license_info_tl}
3455 \endgroup
3456 }%
3457 }
3458
3459 \gdef\@subject{
3460 \text_titlecase_first:n{\tl_if_empty:NF \ptxcd_thesisStatus {\ptxcd_thesisStatus{}~}\ptxcd_thesisType}~
3461 \tl_if_empty:NF \ptxcd_in_department {\ptxcd_in_department{}~}
3462 \seq_if_empty:NF \g_ptxcd_author_seq {\ptxcd_byname\nobreakspace\@author}
3463 \tl_if_empty:NF \ptxcd_birthplace {\space\ptxcd_fromname\space\ptxcd_birthplace}
3464 \tl_if_empty:NF \l_ptxcd_studentID_tl {\space\ptxcd_insert_studentID:n {\l_ptxcd_studentID_tl}}
3465 }
3466
3467 \uppertitleback{
3468 \liningnums
3469 \raggedright
3470 \@title\par\@subtitle
3471 \par\vspace*{\baselineskip}
3472 % ignore birthplace on english subject
3473 \let\ptxcd_birthplace\@empty
3474 \@subject
3475 \bool_if:NT \g_@@_reviewer_on_uppertitleback_bool
3476 \ptxcd_thesis_print_reviewer:
3477 \exp_args:Nx \tl_if_empty:nF {\@date\ptxcd_submissiondate}{
3478 \par\vspace*{\baselineskip}
3479 \ptxcd_thesis_print_dates:n {\\}
3480 }
3481 \tl_if_empty:NF \@publishers {
3482 \par\vspace*{\baselineskip}
3483 \@publishers
3484 }
3485 }
3486
3487 %%Studienbereich (field of study):
3488 %%ce - Computational Engineering
3489 %%ese - Energy Science and Engineering
3490 %%ist - Informationssystemtechnik
3491 %%mech - Mechanik
3492 %%metro - Mechatronik
3493 %
3494 %{ce}{Computational~Engineering}{Computational~Engineering}
3495 %{ese}{Energy~Science~and~Engineering}{Energy~Science~and~Engineering}
3496 %{ist}{Information~Systems~Engineering}{Information~Systems~Engineering}
3497 %{mech}{Mechanics}{Mechanics}
3498 %{metro}{Mechatronics}{Mechatronics}
3499
3500 \defcaptionname{english}{\researchgroupname}{research group}
3501 \defcaptionname{ngerman, german}{\researchgroupname}{Fachgebiet}
3502 \defcaptionname{english}{\institutename}{institute}
3503 \defcaptionname{ngerman, german}{\istitutename}{Institut}
3504
3505 \renewcommand{\titlepagestyle}{title.TUDa}
3506
3507 \box_new:N \g_ptxcd_thesis_institution_box
3508
3509 %% The following macro is an adapted version of the corresponding KOMA-Script macro
3510 %% Copyright (c) 1994-2019 Markus Kohm [komascript at gmx info]
3511 \renewcommand*{\maketitle}[1][1]{
3512 \bool_if:NF \g_ptxcd_ignore_title_language_bool {
3513 \bool_set_false:N \l_tmpa_bool
3514 \clist_map_inline:nn {english, british, ngerman, german} {
3515 \iflanguage{##1}
3516 {\bool_set_true:N \l_tmpa_bool
3517 \clist_map_break:}{}
3518 }
3519 \bool_if:NF \l_tmpa_bool {
3520 \msg_error:nnx{tudapub/thesis} {unsupported-title-language} {\languagename}
3521 }
3522 }
3523 \exp_args:NV \ptxcd_select_department:n \g_ptxcd_department_choice_tl
3524 \clist_map_inline:nn {author, date} {
3525 \ptxcd_check_title_data:cn {@##1} {##1}
3526 }
3527 \clist_map_inline:nn {examdate, birthplace, group, department, institution} {
3528 \ptxcd_check_title_data:cn {TUDa@##1} {##1}
3529 }
3530 \cs_if_exist_use:N \ptxcd_pass_TitleData:
3531 \edef\titlepage@restore{%
3532 \noexpand\endgroup
3533 \noexpand\global\noexpand\@colht\the\@colht
3534 \noexpand\global\noexpand\@colroom\the\@colroom
3535 \noexpand\global\vsize\the\vsize
3536 \noexpand\global\noexpand\@titlepageiscoverpagefalse
3537 \noexpand\let\noexpand\titlepage@restore\noexpand\relax
3538 }%
3539 \ptxcd_disable_marginpar:
3540 \cleardoublepage
3541 \begin{titlepage}
3542 \setcounter{page}{%
3543 #1%
3544 }%
3545 \def\thefootnote{\fnsymbol{footnote}}
3546 \if@titlepageiscoverpage
3547 \begingroup
3548 \topmargin=\dimexpr \coverpagetopmargin-1in\relax
3549 \oddsidemargin=\dimexpr \coverpageleftmargin-1in\relax
3550 \evensidemargin=\dimexpr \coverpageleftmargin-1in\relax
3551 \textwidth=\dimexpr
3552 \paperwidth-\coverpageleftmargin-\coverpagerightmargin\relax
3553 \textheight=\dimexpr
3554 \paperheight-\coverpagetopmargin-\coverpagebottommargin\relax
3555 \headheight=0pt
3556 \headsep=0pt
3557 \footskip=\baselineskip
3558 \@colht=\textheight
3559 \@colroom=\textheight
3560 \vsize=\textheight
3561 \columnwidth=\textwidth
3562 \hsize=\columnwidth
3563 \linewidth=\hsize
3564 \else
3565 \let\titlepage@restore\relax
3566 \fi
3567 \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
3568 \ptxcd_setup_sponsor_box:
3569 \hbox_gset:Nn \g_ptxcd_title_box {
3570 \parbox[t]{\linewidth}{
3571 \begin{minipage}[b]{\bool_if:NT \g_@@_logo_head_bool {.75}\linewidth}
3572 \bool_lazy_and:nnT {\g_ptxcd_colorback_bool} {\g_ptxcd_colorbacktitle_bool} {\color{textonaccentcolor}}
3573 \tl_if_empty:NF \@titlehead {
3574 \begin{addmargin}{3mm}
3575 {\usekomafont{titlehead}{\@titlehead\par}}
3576 \end{addmargin}
3577 }
3578 \begin{addmargin}[\dim_eval:n {\box_if_empty:NF \g_ptxcd_PaperID_box {\box_wd:N\g_ptxcd_PaperID_box+.5\c_ptxcd_logoheight_dim} +3mm}]{3mm}
3579 \raggedright
3580 \leavevmode\usekomafont{title}
3581 \expandafter\fontsize\ptxcd_title_fontsize:
3582 \selectfont
3583 \llap{\raisebox{\dimexpr-\height+.5\baselineskip}[0pt][0pt]{\box_use:N \g_ptxcd_PaperID_box}\hspace{.5\c_ptxcd_logoheight_dim}}
3584 \@title\strut
3585 \par
3586 \box_if_empty:NTF \g_ptxcd_PaperID_box
3587 {\vskip0pt}
3588 {\rule{0pt}{.5\c_ptxcd_logoheight_dim}}
3589 \end{addmargin}
3590 \end{minipage}%
3591 \bool_if:NT \g_ptxcd_colorbacksubtitle_bool {\color{textonaccentcolor}}
3592 \par\nointerlineskip
3593 \rule{\linewidth}{\g_ptxcd_titlerule_dim}\par\vspace{\c_ptxcd_rulesep_dim}
3594 \begin{addmargin}{3mm}
3595 \usekomafont{titleinfo}
3596 \raggedright
3597 \expandafter\fontsize\ptxcd_titleinfo_fontsize:
3598 \selectfont
3599 {\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle\par}\fi}%
3600 \usekomafont{subject}
3601 \bool_if:NT \g_@@_dr_bool {\selectlanguage{german}}
3602 \tl_if_empty:NF \g_ptxcd_titleintro_tl {\g_ptxcd_titleintro_tl\par}
3603 \tl_if_empty:NF \g_ptxcd_thesis_drtext_tl {\g_ptxcd_thesis_drtext_tl\par}
3604 {%
3605 \usekomafont{author}
3606 \lineskip 0.75em
3607 \@subject
3608 \par
3609 }%
3610 {\usekomafont{date}{\ptxcd_thesis_print_dates:n {,~}\par}}%
3611 \ptxcd_thesis_print_reviewer:\par
3612 {\usekomafont{publishers}{\@publishers \par}}%
3613 \tl_if_empty:NF \g_ptxcd_titleaddendum_tl {\g_ptxcd_titleaddendum_tl\par}
3614 \end{addmargin}
3615 \tl_if_empty:NF \@thanks {
3616 \expandafter\fontsize\ptxcd_titlethanks_fontsize:\selectfont\par
3617 \rule{\linewidth}{\g_ptxcd_titlerule_dim}\par
3618 \begin{addmargin}{3mm}
3619 \let\footnotetext\ptxcd_title@footnote
3620 \@thanks
3621 \end{addmargin}
3622 \par\vspace{-\dp\strutbox}
3623 }
3624 \normalcolor
3625 \rule{\linewidth}{\g_ptxcd_titlerule_dim}\par
3626 }
3627 }
3628 \let\@thanks\@empty
3629 \bool_if:NF \g_ptxcd_manual_info_box_bool {
3630 \exp_args:Nf \tl_if_empty:nF {\ptxcd_institution\ptxcd_department:\ptxcd_institute\ptxcd_group} {
3631 \addTitleBox{
3632 \setlength{\parskip}{\c_ptxcd_rulesep_dim}
3633 \tl_if_empty:NF \ptxcd_institution {\ptxcd_institution\par}
3634 \tl_if_empty:NF \ptxcd_box_department {\ptxcd_box_department\par}
3635 \tl_if_empty:NF \ptxcd_institute {\ptxcd_institute\par}
3636 \tl_if_empty:NF \ptxcd_group {\ptxcd_group}
3637 }}
3638 }
3639 \ptxcd_adjust_titlepage_style:
3640 \thispagestyle{title.TUDa}
3641 \nointerlineskip\box_use:N \g_ptxcd_title_box
3642 \par
3643 \vfill
3644 \box_if_empty:NTF \g_ptxcd_sponsor_box {
3645 \raisebox{-\c_ptxcd_rulesep_dim}[0pt][0pt]{\rule{\linewidth}{\g_ptxcd_titlerule_dim}}
3646 }{
3647 \box_use:N \g_ptxcd_sponsor_box
3648 }
3649 \if@twoside
3650 \@tempswatrue
3651 \expandafter\ifnum \@nameuse{scr@[email protected]}>\scr@compatibility\relax
3652 \else
3653 \ifx\@uppertitleback\@empty
3654 \ifx\@lowertitleback\@empty
3655 \@tempswafalse
3656 \fi
3657 \fi
3658 \fi
3659 \else
3660 \exp_args:Nf \tl_if_empty:nTF {\g_ptxcd_thesis_urn_tl\g_ptxcd_thesis_tuprints_tl}
3661 {\@tempswafalse}
3662 {\@tempswatrue}
3663 \fi
3664 \if@tempswa
3665 \next@tpage
3666 \begin{minipage}[t]{\textwidth}
3667 \@uppertitleback
3668 \end{minipage}\par
3669 \vfill
3670 \begin{minipage}[b]{\textwidth}
3671 \@lowertitleback
3672 \end{minipage}\par
3673 \@thanks\let\@thanks\@empty
3674 \fi
3675 \ifx\@dedication\@empty
3676 \else
3677 \next@tdpage\null\vfill
3678 {\centering\usekomafont{dedication}{\@dedication \par}}%
3679 \vskip \z@ \@plus3fill
3680 \@thanks\let\@thanks\@empty
3681 \cleardoubleemptypage
3682 \fi
3683 \ifx\titlepage@restore\relax\else\clearpage\titlepage@restore\fi
3684 \end{titlepage}
3685 \setcounter{footnote}{0}%
3686 \global\let\and\relax
3687 \cleardoublepage
3688 \ptxcd_restore_typearea:
3689 \aftergroup\ptxcd_restore_typearea:
3690 }
3691
3692 \newcommand*{\@ThesisType}{\ptxcd_thesisType}
3693
3694 \bool_if:NTF \g_@@_dr_bool {
3695 \keys_define:nn {ptxcd/thesis} {
3696 affidavit .choices:nn = {dr}{\tl_gset_eq:NN \g_@@_affidavit_version_tl \l_keys_choice_tl},
3697 affidavit / default .meta:n = {affidavit=dr},
3698 affidavit .initial:n = dr,
3699 }
3700 } {
3701 \keys_define:nn {ptxcd/thesis} {
3702 affidavit .choices:nn = {digital,print}{\tl_gset_eq:NN \g_@@_affidavit_version_tl \l_keys_choice_tl},
3703 affidavit / default .meta:n = {affidavit=digital},
3704 affidavit / hide-architecture-note .meta:n = {hide-architecture-note},
3705 affidavit .initial:n = default,
3706 }
3707 }
3708 \NewDocumentCommand{\affidavit}{so}{%
3709 \IfNoValueF {#2} {%
3710 \tl_if_in:nnTF {#2} {=}
3711 {\keys_set:nn {ptxcd/thesis} {#2}}
3712 {\keys_set:nn {ptxcd/thesis} {affidavit=#2}}%
3713 }%
3714 \clearpage
3715 \begin{otherlanguage}{german}
3716 \bool_if:NTF \g_@@_dr_bool {
3717 \g_@@_affidavit_dr_tl
3718 } {
3719 \tl_use:c {g_@@_affidavit_\g_@@_affidavit_version_tl _tl}
3720 }
3721 \par
3722 \bigskip
3723 \AffidavitSignature
3724 \end{otherlanguage}
3725 \IfBooleanF{#1}{\clearpage}
3726 }
3727
3728 \ExplSyntaxOff
3729
3730 \expandafter\def\csname g_@@_affidavit_dr_tl\endcsname {%
3731 \section*{Erklärungen laut Promotionsordnung}
3732 \subsection*{\S\,8 Abs. 1 lit. d PromO}
3733 Ich versichere hiermit, dass zu einem vorherigen Zeitpunkt noch keine Promotion versucht wurde. In diesem Fall sind nähere Angaben über Zeitpunkt, Hochschule, Dissertationsthema und Ergebnis dieses Versuchs mitzuteilen.
3734
3735 \subsection*{\S\,9 Abs. 1 PromO}
3736 Ich versichere hiermit, dass die vorliegende Dissertation – abgesehen von den in ihr ausdrücklich genannten Hilfen – selbstständig verfasst wurde und dass die „Grundsätze zur Sicherung guter wissenschaftlicher Praxis an der Technischen Universität Darmstadt“ und die „Leitlinien zum Umgang mit digitalen Forschungsdaten an der TU Darmstadt“ in den jeweils aktuellen Versionen bei der Verfassung der Dissertation beachtet wurden.
3737
3738 \subsection*{\S\,9 Abs. 2 PromO}
3739 Die Arbeit hat bisher noch nicht zu Prüfungszwecken gedient.
3740 }
3741
3742 %% Quelle: https://www.tu-darmstadt.de/studieren/studierende_tu/studienorganisation_und_tucan/hilfe_und_faq/artikel_details_de_en_37824.de.jsp
3743 \expandafter\def\csname g_@@_affidavit_digital_tl\endcsname {%
3744 \subsection*{Erklärung zur Abschlussarbeit gemäß \S\,22~Abs.~7~APB TU~Darmstadt}
3745 \begin{sloppypar}%
3746 Hiermit erkläre ich, \@author, dass ich die vorliegende Arbeit gemäß \S\,22~Abs.~7~APB der TU Darmstadt selbstständig, ohne Hilfe Dritter und nur mit den angegebenen Quellen und Hilfsmitteln angefertigt habe.
3747 Ich habe mit Ausnahme der zitierten Literatur und anderer in der Arbeit genannter Quellen keine fremden Hilfsmittel benutzt. Die von mir bei der Anfertigung dieser wissenschaftlichen Arbeit wörtlich oder inhaltlich benutzte Literatur und alle anderen Quellen habe ich im Text deutlich gekennzeichnet und gesondert aufgeführt. Dies gilt auch für Quellen oder Hilfsmittel aus dem Internet.
3748 \end{sloppypar}%
3749 \par
3750 Diese Arbeit hat in gleicher oder ähnlicher Form noch keiner Prüfungsbehörde vorgelegen.
3751 \par
3752 Mir ist bekannt, dass im Falle eines Plagiats (\S\,38~Abs.~2 ~APB) ein Täuschungsversuch vorliegt, der dazu führt, dass die Arbeit mit 5,0 bewertet und damit ein Prüfungsversuch verbraucht wird. Abschlussarbeiten dürfen nur einmal wiederholt werden.
3753 \csname bool_if:cT\endcsname {g_@@_architecture_note_bool} {%
3754 \par
3755 Bei einer Thesis des Fachbereichs Architektur entspricht die eingereichte elektronische Fassung dem vorgestellten Modell und den vorgelegten Plänen.
3756 }
3757 }
3758
3759 \ExplSyntaxOn
3760
3761 \cs_set_eq:NN \g_@@_affidavit_print_tl \g_@@_affidavit_digital_tl
3762
3763 \NewDocumentEnvironment{affidavit*}{om}{
3764 \IfNoValueF {#1} {\begin{otherlanguage}{#1}}
3765 \section*{#2}
3766 }{
3767 \IfNoValueF {#1} {\end{otherlanguage}}
3768 }
3769
3770 \NewDocumentCommand{\AffidavitSignature}{o}{
3771 \par
3772 \begingroup
3773 \IfNoValueF {#1} {%
3774 \tl_if_in:nnTF {#1} {=}
3775 {\keys_set:nn {ptxcd/thesis} {#1}}
3776 {\keys_set:nn {ptxcd/thesis} {signature-location=#1}}%
3777 }%
3778 \tl_if_empty:NT \l_ptxcd_signature_image_tl {\bigskip}
3779 \noindent \l_ptxcd_signature_location_tl,~ \ptxcd_submissiondate\hfill
3780 \SignatureBox{\l_ptxcd_signature_tl}
3781 \endgroup
3782 \\\strut
3783 }
3784
3785 \newcommand*{\SignatureBox}[2][5cm]{\parbox[t]{#1}{\centering
3786 \tl_if_empty:NF \l_ptxcd_signature_image_tl
3787 {\let\width\linewidth\l_ptxcd_signature_image_tl\par\nointerlineskip}
3788 \rule{\linewidth}{.3pt}\\\makebox[0pt][c]{#2}}
3789 }
3790
3791 % messages:
3792 \msg_new:nnn{tudapub/thesis} {dr-field-only} {
3793 You~submitted~#1~data~for~title~information.\\
3794 This~field~is~only~used~for~type=dr/drfinal.\\
3795 It~will~be~ignored.
3796 }
3797
3798 \msg_new:nnn{tudapub/thesis} {unrecognized-department} {
3799 I~can't~recognize~your~department~#1.\\
3800 I~will~use~the~string~'#1'~directly.\\
3801 Ensure~your~department~has~to~shortcut.\\
3802 See~tudathesis~documentation~for~further~details.
3803 }
3804
3805 \msg_new:nnnn{tudapub/thesis} {unsupported-title-language} {
3806 You~chose~an~unsupported~language~"#1".\\
3807 \string\maketitle\ ~ist~not~configured~for~this~language.
3808 }{
3809 You~can~manually~configure~it,~as~described~in~tudathesis~documentation.\\
3810 Use~"ignore-title-language"~Option~to~ignore~this~message~at~your~own~risk.
3811 }
3812
3813 \PassOptionsToPackage{german}{babel}
3814 \AtBeginDocument{
3815 \@ifpackageloaded{babel}{}{
3816 \msg_new:nnnn{tudapub/thesis} {missing-babel} {
3817 The~babel~package~is~not~loaded.\\
3818 Please~load~babel~with~option\\
3819 main=<main~language~of~your~document>\\
3820 to~ensure~correct~hyphenation.
3821 }{
3822 I~will~use~a~workaround~(redefine~\string\otherlanguagen)~to~be~able~to~compile,~but~can't~configure~hyphenation~correctly.
3823 }
3824 \msg_warning:nn {tudapub/thesis} {missing-babel}
3825 \renewenvironment{otherlanguage}[1]{}{}
3826 }
3827 }
3828
3829 % Fallback mechanism for older l3 kernels
3830 \cs_if_exist:NF \text_titlecase:n {
3831 \cs_set_eq:NN \text_titlecase:n \tl_mixed_case:n
3832 }
3833
3834 \seq_new:N \g_ptxcd_reviewer_name_seq
3835 \NewDocumentCommand{\setupReviewName}{som}{
3836 \IfBooleanTF {#1} {
3837 \clist_map_inline:nn {#3} {
3838 \int_incr:N \l_tmpb_int
3839 \cs_set:cn {_@@_reviewname_\int_use:N \l_tmpb_int :} {##1}
3840 }
3841 } {
3842 \IfNoValueTF {#2} {
3843 \cs_set:Npn \ptxcd_reviewname {#3}
3844 } {
3845 \ifnum #2 > 0
3846 \cs_set:cn {_@@_reviewname_#2:}
3847 {#3}
3848 \fi
3849 }
3850 }
3851 }
3852 % \end{macrocode}
3853 % \iffalse
3854 %</tudathesis>
3855 % \fi
3856 % \Finale
3857 \endinput