diff options
Diffstat (limited to 'macros/latex/contrib/tuda-ci/tex/tudapub.cls')
-rw-r--r-- | macros/latex/contrib/tuda-ci/tex/tudapub.cls | 546 |
1 files changed, 324 insertions, 222 deletions
diff --git a/macros/latex/contrib/tuda-ci/tex/tudapub.cls b/macros/latex/contrib/tuda-ci/tex/tudapub.cls index 6fe6093903..35f91dda99 100644 --- a/macros/latex/contrib/tuda-ci/tex/tudapub.cls +++ b/macros/latex/contrib/tuda-ci/tex/tudapub.cls @@ -1,4 +1,4 @@ -%% This is file `tudapub.cls' version 1.11 (2019/09/25), +%% This is file `tudapub.cls' version 2.0 (2019/11/07), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -7,12 +7,12 @@ %% %% ============================================================================ %% This work may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 +%% conditions of the LaTeX Project Public License, either version 1.3c %% of this license or (at your option) any later version. %% The latest version of this license is in %% http://www.latex-project.org/lppl.txt -%% and version 1.3 or later is part of all distributions of LaTeX -%% version 2005/12/01 or later. +%% and version 1.3c or later is part of all distributions of LaTeX +%% version 2008/05/04 or later. %% %% This work has the LPPL maintenance status `maintained'. %% @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{1.11} -\def\filedate{2019/09/25} +\def\fileversion{2.0} +\def\filedate{2019/11/07} \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplClass{tudapub} @@ -50,12 +50,11 @@ \int_new:N \g_TUDa_ruledheaders_int \int_new:N \g_TUDa_paper_int - -%Message Declaration for option processing -\msg_new:nnn {TUDaPub} {titlepage-option-disabled} { - You~set~the~titlepage~option~to~#1.\\ - The~Corporate~Design~guidelines~for~TU~Darmstadt~do~not~support~this~option.\\ - The~KOMA-Script~option~titlepage~is~forced~to~"firstiscover". +\msg_new:nnnn {TUDa} {compatibility-only} { + You~used~the~outdated~#1~option.\\ + This~only~exists~due~to~compatibility~reasons. +}{ + Please~look~at~tuda-ci~documentation~for~further~information~and~avoid~using~outdated~options. } \bool_new:N \g_TUDa_geometry_bool @@ -100,6 +99,7 @@ }, ruledheaders .initial:n = all, type .choices:nn = {publication, thesis} {\tl_gset_eq:NN \g_TUDa_pubType_tl \l_keys_choice_tl}, + type / intern .code:n = {\keys_set:nn {TUDa/pub} {titlepage=false, pdfa=false, IMRAD=false}}, type .initial:n = publication, unknown .code:n = {\prop_gput:NVn \g_TUDa_unknown_clsopts_prop \l_keys_key_tl {#1}}, headline .choice:, @@ -110,6 +110,7 @@ headline .initial:n =false, colorback .bool_gset:N = \g_TUDa_colorback_bool, colorback .initial:n = true, + colortitleback .code:n = \msg_warning:nnx {TUDa} {compatibility-only} {\l_keys_key_tl}\keys_set:nn {TUDa/pub} {logo=head,colorback=false}, pdfa .bool_gset:N = \g_TUDa@pdfa_bool, pdfa .initial:n = true, twocolumn .bool_gset:N = \g_TUDa_twocolumn_bool, @@ -128,7 +129,6 @@ logo / top .code:n = {\bool_gset_true:N \g_TUDa_logo@inhead_bool}, logo / bottom .code:n = {\bool_gset_false:N \g_TUDa_logo@inhead_bool}, logo .initial:n = {body}, - titlepage .code:n = {\msg_warning:nnn {TUDaPub} {titlepage-option-disabled} {#1}}, paper .choices:nn = {a0,a1,a2,a3,a4,a5,a6}{ \int_gset_eq:NN \g_TUDa_paper_int \l_keys_choice_int \PassOptionsToPackage{paper=\l_keys_choice_tl}{tudarules} @@ -143,6 +143,11 @@ noinstbox .code:n = {\tl_gput_right:Nn \g_TUDa_thesis_options_tl {,noinstbox=#1}}, logofile .tl_gset:N = \g_TUDa_logofile_tl, logofile .initial:n = tuda_logo, + title .choice:, + title / default .meta:n = {title=large}, + title / large .code:n = \bool_gset_false:N \g_TUDa_smalltitle_bool, + title / small .code:n = \bool_gset_true:N \g_TUDa_smalltitle_bool, + title .initial:n = default, } % %%special option handling grouped values @@ -156,8 +161,11 @@ \ProcessKeysOptions{TUDa/pub} - -\bool_if:NT \g_TUDa@pdfa_bool {\PassOptionsToPackage{RGB}{xcolor}} +%Option adjustments required for valid PDF/A +\bool_if:NT \g_TUDa@pdfa_bool { + \PassOptionsToPackage{RGB}{xcolor} + \PassOptionsToPackage{T1}{tudafonts} +} \prop_gput:Nnx \g_TUDa_clsopts_prop {twocolumn} {\bool_if:NTF \g_TUDa_twocolumn_bool {true} {false}} @@ -400,7 +408,7 @@ -\setkomafont{disposition}{\sffamily\bfseries} + @@ -413,10 +421,11 @@ \usepackage{tudacolors} -%TODO: mode -> light head. - +\setkomafont{disposition}{\sffamily\bfseries} \setkomafont{pageheadfoot}{\sffamily\small} \setkomafont{pagenumber}{} +\addtokomafont{captionlabel}{\accentfont} +\addtokomafont{caption}{\accentfont} \KOMAoptions{footsepline=.5\c_TUDa_smallrule_dim} @@ -467,27 +476,31 @@ \setkomafont{pagehead}{\Large\bfseries} - \if@twocolumn \edef\sls@evenheadshift{\dim_eval:n {-\marginparwidth-\marginparsep\relax}} \let\sls@oddheadshift\sls@evenheadshift \let\sls@evenfootshift\sls@evenheadshift \let\sls@oddfootshift\sls@evenheadshift \fi - \ModifyLayer[ + \RedeclareLayer[ + clone=scrheadings.head.above.line, background, - mode=picture, contents={ \dim_compare:nF {\box_wd:N \TUDa@headline_box=\layerwidth} { \TUDa@makeheadrule*[color=identbarcolor, width=\layerwidth]{TUDa@headline} } \smash{\TUDa@headline} } - ]{TUDa.head.above.line} - \ModifyLayer[ + ]{TUDa.head.above.line} + \RedeclareLayer[ + clone=plain.scrheadings.head.above.line, background, - mode=picture, - contents={\smash{\TUDa@headline}} + contents={ + \dim_compare:nF {\box_wd:N \TUDa@headline_box=\layerwidth} { + \TUDa@makeheadrule*[color=identbarcolor, width=\layerwidth]{TUDa@headline} + } + \smash{\TUDa@headline} + } ]{plain.TUDa.head.above.line} \bool_if:NT \g_TUDa_headline_bool { \clist_map_variable:nNn {oneside, even, odd} \l_tmpa_tl { @@ -526,7 +539,7 @@ \box_new:N \g_TUDa_title_box \skip_new:N \g_TUDa_title_fill_skip -\renewcommand{\titlepagestyle}{title.TUDa} +\renewcommand{\titlepagestyle}{TUDa} \seq_new:N \g_TUDa_author_seq @@ -559,152 +572,6 @@ You~should~probably~switch~to~logo=bottom~or~reduce~the~number/size~of~InfoBoxes. } -\exp_args:NV \tl_if_eq:nnTF {\g_TUDa_pubType_tl} {thesis} { - \input{tudathesis.cfg} -} { - -\msg_new:nnnn {TUDa/pub} {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} - -\clist_map_inline:nn {birthplace, group, examdate, submissiondate, tuprints, urn, reviewer} { - \expandafter\newcommand\csname #1\endcsname[2][]{ - \msg_error:nnn {TUDa/pub} {only-thesis} {#1} - } -} -\newcommand*{\TUDa@title@footnote}[2][1]{ -\textsuperscript{\@fnsymbol{#1}}#2 -} - - - - -\renewcommand*{\maketitle}[1][1]{ - \def\and{,~ } - \cs_if_exist_use:N \TUDa_pass_TitleData: - \TUDa_disable_marginpar: - \cleardoublepage - \begin{titlepage} - \setcounter{page}{% - #1% - }% - \def\thefootnote{\fnsymbol{footnote}} - \if@titlepageiscoverpage - \edef\titlepage@restore{% - \noexpand\endgroup - \noexpand\global\noexpand\@colht\the\@colht - \noexpand\global\noexpand\@colroom\the\@colroom - \noexpand\global\vsize\the\vsize - \noexpand\global\noexpand\@titlepageiscoverpagefalse - \noexpand\let\noexpand\titlepage@restore\noexpand\relax - }% - \begingroup - \topmargin=\dimexpr \coverpagetopmargin-1in\relax - \oddsidemargin=\dimexpr \coverpageleftmargin-1in\relax - \evensidemargin=\dimexpr \coverpageleftmargin-1in\relax - \textwidth=\dimexpr - \paperwidth-\coverpageleftmargin-\coverpagerightmargin\relax - \textheight=\dimexpr - \paperheight-\coverpagetopmargin-\coverpagebottommargin\relax - \headheight=0pt - \headsep=0pt - \footskip=\baselineskip - \@colht=\textheight - \@colroom=\textheight - \vsize=\textheight - \columnwidth=\textwidth - \hsize=\columnwidth - \linewidth=\hsize - \else - \let\titlepage@restore\relax - \fi - \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative - \hbox_gset:Nn \g_TUDa_title_box { - \parbox[t]{\linewidth}{ - \begin{minipage}[b]{\bool_if:NT \g_TUDa_logo@inhead_bool {.75}\linewidth} - \begin{addmargin}{3mm} - \raggedright - \tl_if_empty:NF \@titlehead {\usekomafont{titlehead}{\@titlehead\par}} - \leavevmode\usekomafont{title}% - \expandafter\fontsize\TUDa_title_fontsize: - \selectfont - \@title\strut\par - \vskip0pt - \end{addmargin} - \end{minipage}% - \par\nointerlineskip - \rule{\linewidth}{\g_TUDa_titlerule_dim}\par - \begin{addmargin}{3mm} - \expandafter\fontsize\TUDa_titleinfo_fontsize: - \selectfont - {\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle\par}\fi}% - {\ifx\@subject\@empty\else\usekomafont{subject}{\@subject\par}\fi} - {% - \usekomafont{author} - \lineskip 0.75em - \@author - \par - }% - {\usekomafont{date}{\@date\par}}% - {\usekomafont{publishers}{\@publishers \par}}% - \end{addmargin} - \tl_if_empty:NF \@thanks { - \expandafter\fontsize\TUDa_titlethanks_fontsize:\selectfont\par - \rule{\linewidth}{\g_TUDa_titlerule_dim}\par - \begin{addmargin}{3mm} - \let\footnotetext\TUDa@title@footnote - \@thanks - \end{addmargin} - \par\vspace{-\dp\strutbox} - \let\@thanks\@empty - } - \rule{\linewidth}{\g_TUDa_titlerule_dim}\par} - - } - - \TUDa_adjust_titlepage_style: - - - \nointerlineskip\box_use:N \g_TUDa_title_box - \par - \vfill\null - \if@twoside - \@tempswatrue - \expandafter\ifnum \@nameuse{scr@v@3.12}>\scr@compatibility\relax - \else - \ifx\@uppertitleback\@empty\ifx\@lowertitleback\@empty - \@tempswafalse - \fi\fi - \fi - \if@tempswa - \next@tpage - \begin{minipage}[t]{\textwidth} - \@uppertitleback - \end{minipage}\par - \vfill - \begin{minipage}[b]{\textwidth} - \@lowertitleback - \end{minipage}\par - \@thanks\let\@thanks\@empty - \fi - \fi - \ifx\@dedication\@empty - \else - \next@tdpage\null\vfill - {\centering\usekomafont{dedication}{\@dedication \par}}% - \vskip \z@ \@plus3fill - \@thanks\let\@thanks\@empty - \cleardoubleemptypage - \fi - \ifx\titlepage@restore\relax\else\clearpage\titlepage@restore\fi - \end{titlepage} - \setcounter{footnote}{0}% - \global\let\and\relax - \cleardoublepage - \TUDa_restore_typearea: - \aftergroup\TUDa_restore_typearea: -} - - -} \cs_set:Nn \TUDa_adjust_titlepage_style: { \dim_set:Nn \l_tmpa_dim {\fp_to_dim:n {\expandafter \use_ii:nn\TUDa_title_fontsize: *2.8}} @@ -770,55 +637,11 @@ \setkomafont{author}{} \setkomafont{date}{} -%TODO finish font setup - -\int_case:nn {\g_TUDa_paper_int} -{ - %paper=a0 - {1} { - \cs_set:Nn \TUDa_title_fontsize: {{125pt}{165pt}} - \cs_set:Nn \TUDa_titleinfo_fontsize: {{42pt}{55pt}} - \cs_set:Nn \TUDa_titlethanks_fontsize: {{28pt}{35pt}} - } - %paper=a1 - {2} { - \cs_set:Nn \TUDa_title_fontsize: {{86pt}{120pt}} - \cs_set:Nn \TUDa_titleinfo_fontsize: {{35pt}{42pt}} - \cs_set:Nn \TUDa_titlethanks_fontsize: {{22pt}{26pt}} - } - %paper=a2 - {3} { - \cs_set:Nn \TUDa_title_fontsize: {{65pt}{82pt}} - \cs_set:Nn \TUDa_titleinfo_fontsize: {{22pt}{28pt}} - \cs_set:Nn \TUDa_titlethanks_fontsize: {{14pt}{20pt}} - } - %paper=a3 - {4} { - \cs_set:Nn \TUDa_title_fontsize: {{47pt}{61pt}} - \cs_set:Nn \TUDa_titleinfo_fontsize: {{16pt}{20pt}} - \cs_set:Nn \TUDa_titlethanks_fontsize: {{12pt}{16pt}} - } - %paper=a4 - {5} { - \cs_set:Nn \TUDa_title_fontsize: {{36pt}{47pt}} - \cs_set:Nn \TUDa_titleinfo_fontsize: {{12pt}{14pt}} - \cs_set:Nn \TUDa_titlethanks_fontsize: {{10pt}{11.5pt}} - } - %paper=a5 - {6} { - \cs_set:Nn \TUDa_title_fontsize: {{22pt}{28pt}} - \cs_set:Nn \TUDa_titleinfo_fontsize: {{10pt}{11.5pt}} - \cs_set:Nn \TUDa_titlethanks_fontsize: {{10pt}{11.5pt}} - } - %paper=a6 - {7} { - \cs_set:Nn \TUDa_title_fontsize: {{14pt}{16pt}} - \cs_set:Nn \TUDa_titleinfo_fontsize: {{9pt}{10pt}} - \cs_set:Nn \TUDa_titlethanks_fontsize: {{9pt}{10pt}} - } +\bool_if:NF \g_TUDa_smalltitle_bool { + \int_gdecr:N \g_TUDa_paper_int } - - +\file_input:n {tuda-a\int_use:N \g_TUDa_paper_int paper.clo} +\TUDa_setup_title_sizes: \seq_new:N \g_TUDa_title_info_seq \box_new:N \g_TUDa_title_info_box @@ -919,7 +742,7 @@ contents={\color{identbarcolor}\rule{\layerwidth}{\layerheight}} \hbox_gset:Nn \g_TUDa_title_info_box { \parbox{\dimexpr2.5\c_TUDa_logoheight_dim}{ - \seq_use:Nn \g_TUDa_title_info_seq {\par\nointerlineskip\vspace{5mm}} + \seq_use:Nn \g_TUDa_title_info_seq {\par\nointerlineskip\vspace{\dim_eval:n {\c_TUDa_largerule_dim+\c_TUDa_rulesep_dim}}} } } } @@ -938,7 +761,7 @@ contents={\color{identbarcolor}\rule{\layerwidth}{\layerheight}} } - \PassOptionsToPackage{a-1b}{pdfx} + \PassOptionsToPackage{a-2b}{pdfx} \RequirePackage{pdfx} \sys_if_engine_pdftex:T { @@ -1030,6 +853,285 @@ contents={\color{identbarcolor}\rule{\layerwidth}{\layerheight}} \newcommand{\Metadata}[1]{\ClassError{tudapub}{You~cannot~use~\string\Metadata\ ~with~pdfa=false.}{}} \fi: +\csname if@TUDa@T1\endcsname +\ifLuaTeX +\RequirePackage[utf8]{luainputenc} +\fi +\fi + +\exp_args:NV \tl_if_eq:nnTF {\g_TUDa_pubType_tl} {thesis} { + \input{tudathesis.cfg} +} { + +\msg_new:nnnn {TUDa/pub} {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} + +\clist_map_inline:nn {birthplace, group, examdate, submissiondate, tuprints, urn, reviewer} { + \expandafter\newcommand\csname #1\endcsname[2][]{ + \msg_error:nnn {TUDa/pub} {only-thesis} {#1} + } +} +\newcommand*{\TUDa@title@footnote}[2][1]{ +\textsuperscript{\@fnsymbol{#1}}#2 +} + +% The following macro is an adapted version of the corresponding KOMA-Script macro +% Copyright (c) 1994-2019 Markus Kohm [komascript at gmx info] +\renewcommand*{\maketitle}[1][1]{ + \def\and{,~ } + \cs_if_exist_use:N \TUDa_pass_TitleData: + \if@titlepage + \TUDa_disable_marginpar: + \begin{titlepage} + \setcounter{page}{% + #1% + }% + \def\thefootnote{\fnsymbol{footnote}} + \if@titlepageiscoverpage + \edef\titlepage@restore{% + \noexpand\endgroup + \noexpand\global\noexpand\@colht\the\@colht + \noexpand\global\noexpand\@colroom\the\@colroom + \noexpand\global\vsize\the\vsize + \noexpand\global\noexpand\@titlepageiscoverpagefalse + \noexpand\let\noexpand\titlepage@restore\noexpand\relax + }% + \begingroup + \topmargin=\dimexpr \coverpagetopmargin-1in\relax + \oddsidemargin=\dimexpr \coverpageleftmargin-1in\relax + \evensidemargin=\dimexpr \coverpageleftmargin-1in\relax + \textwidth=\dimexpr + \paperwidth-\coverpageleftmargin-\coverpagerightmargin\relax + \textheight=\dimexpr + \paperheight-\coverpagetopmargin-\coverpagebottommargin\relax + \headheight=0pt + \headsep=0pt + \footskip=\baselineskip + \@colht=\textheight + \@colroom=\textheight + \vsize=\textheight + \columnwidth=\textwidth + \hsize=\columnwidth + \linewidth=\hsize + \else + \let\titlepage@restore\relax + \fi + \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative + \hbox_gset:Nn \g_TUDa_title_box { + \parbox[t]{\linewidth}{ + \begin{minipage}[b]{\bool_if:NT \g_TUDa_logo@inhead_bool {.75}\linewidth} + \bool_if:NT \g_TUDa_logo@inhead_bool {\color{textonaccentcolor}} + \begin{addmargin}{3mm} + \raggedright + \tl_if_empty:NF \@titlehead {\usekomafont{titlehead}{\@titlehead\par}} + \leavevmode\usekomafont{title}% + \expandafter\fontsize\TUDa_title_fontsize: + \selectfont + \@title\strut\par + \vskip0pt + \end{addmargin} + \end{minipage}% + \par\nointerlineskip + \rule{\linewidth}{\g_TUDa_titlerule_dim}\par + \begin{addmargin}{3mm} + \expandafter\fontsize\TUDa_titleinfo_fontsize: + \selectfont + {\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle\par}\fi}% + {\ifx\@subject\@empty\else\usekomafont{subject}{\@subject\par}\fi} + {% + \usekomafont{author} + \lineskip 0.75em + \@author + \par + }% + {\usekomafont{date}{\@date\par}}% + {\usekomafont{publishers}{\@publishers \par}}% + \end{addmargin} + \tl_if_empty:NF \@thanks { + \expandafter\fontsize\TUDa_titlethanks_fontsize:\selectfont\par + \rule{\linewidth}{\g_TUDa_titlerule_dim}\par + \begin{addmargin}{3mm} + \let\footnotetext\TUDa@title@footnote + \@thanks + \end{addmargin} + \par\vspace{-\dp\strutbox} + \let\@thanks\@empty + } + \rule{\linewidth}{\g_TUDa_titlerule_dim}\par} + + } + + \TUDa_adjust_titlepage_style: + + + \nointerlineskip\box_use:N \g_TUDa_title_box + \par + \vfill\null + \if@twoside + \@tempswatrue + \expandafter\ifnum \@nameuse{scr@v@3.12}>\scr@compatibility\relax + \else + \ifx\@uppertitleback\@empty\ifx\@lowertitleback\@empty + \@tempswafalse + \fi\fi + \fi + \if@tempswa + \next@tpage + \begin{minipage}[t]{\textwidth} + \@uppertitleback + \end{minipage}\par + \vfill + \begin{minipage}[b]{\textwidth} + \@lowertitleback + \end{minipage}\par + \@thanks\let\@thanks\@empty + \fi + \fi + \ifx\@dedication\@empty + \else + \next@tdpage\null\vfill + {\centering\usekomafont{dedication}{\@dedication \par}}% + \vskip \z@ \@plus3fill + \@thanks\let\@thanks\@empty + \cleardoubleemptypage + \fi + \ifx\titlepage@restore\relax\else\clearpage\titlepage@restore\fi + \end{titlepage} + \setcounter{footnote}{0}% + \global\let\and\relax + \cleardoublepage + \TUDa_restore_typearea: + \aftergroup\TUDa_restore_typearea: + \else + \par + \@tempcnta=% + #1% + \relax\ifnum\@tempcnta=1\else + \ClassWarning{\KOMAClassName}{% + Optional argument of \string\maketitle\space ignored\MessageBreak + in `titlepage=false' mode% + }% + \fi + \ifx\@uppertitleback\@empty\else + \ClassWarning{\KOMAClassName}{% + non empty \string\uppertitleback\space ignored + by \string\maketitle\MessageBreak + in `titlepage=false' mode% + }% + \fi + \ifx\@lowertitleback\@empty\else + \ClassWarning{\KOMAClassName}{% + non empty \string\lowertitleback\space ignored + by \string\maketitle\MessageBreak + in `titlepage=false' mode% + }% + \fi + \begingroup + \let\titlepage@restore\relax + \def\thefootnote{\fnsymbol{footnote}} + \next@tdpage + \ifx\@extratitle\@empty + \ifx\@frontispiece\@empty\else \mbox{}\fi + \else + \@makeextratitle + \fi + \ifx\@frontispiece\@empty + \ifx\@extratitle\@empty\else\next@tdpage\fi + \else + \next@tpage + \@makefrontispiece + \next@tdpage + \fi + \@maketitle + \ifx\titlepagestyle\@empty\else\thispagestyle{\titlepagestyle}\fi + \@thanks\global\let\@thanks\@empty + \endgroup + \fi +} + + +} + +\renewcommand*{\@maketitle}{% + \global\@topnum=\z@ + \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative + \vspace*{-\dim_eval:n { + \headheight + +\headsep + +\topskip + -\box_ht:N\TUDa@headline_box + -\box_dp:N \TUDa@headline_box +% -\dp\strutbox + }} + \par + \nointerlineskip + \begingroup + \usekomafont{disposition} + \hsize=\g_TUDa_headwidth_dim + \raisebox{\dim_eval:n { + -.5\c_TUDa_logoheight_dim + }}[0pt][.5\c_TUDa_logoheight_dim]{ + \bool_if:NT \g_TUDa_colorback_bool {\color{accentcolor}\rule{\g_TUDa_headwidth_dim}{.5\c_TUDa_logoheight_dim}} + } + \par\nointerlineskip + \setlength{\fboxsep}{\z@} + \bool_if:NT \g_TUDa_colorback_bool {\colorbox{accentcolor}}{\parbox[t]{\g_TUDa_headwidth_dim}{ + \raisebox{-\height}{% + \begin{minipage}[t]{\dimexpr\linewidth-2.2\c_TUDa_logoheight_dim-1ex} + \bool_if:NT \g_TUDa_colorback_bool {\begin{addmargin}{.5\c_TUDa_largerule_dim}} + \raggedright + \bool_if:NT \g_TUDa_colorback_bool {\color{textonaccentcolor}} + \tl_if_empty:NF \@titlehead {\usekomafont{titlehead}{\@titlehead\par}} + \leavevmode + {\Huge\usekomafont{title}{ + \Huge + \@title \par + }}% + \vskip 1em + \bool_if:NTF \g_TUDa_colorback_bool {\end{addmargin}} {\par} + \vspace{\dim_eval:n {\c_TUDa_largerule_dim+\c_TUDa_rulesep_dim}} + \end{minipage} + } + \hfill + \raisebox{-\height}{ + \TUDa_Setup_Title_box: + \makebox[2.2\c_TUDa_logoheight_dim][l]{ + \box_use:N \g_TUDa_title_info_box + } + } + \dim_compare:nNnTF {\box_ht:N \g_TUDa_title_info_box + \box_ht:N \g_TUDa_title_info_box} > {1.1\c_TUDa_logoheight_dim} + {\vspace{\c_TUDa_largerule_dim}} + {\vspace{.5\c_TUDa_logoheight_dim}} + + \par + }} + \par + \nointerlineskip + \rule{\g_TUDa_headwidth_dim}{\g_TUDa_titlerule_dim} + \begin{addmargin}{.5\c_TUDa_largerule_dim} + \Large + \clist_map_inline:nn {subtitle, subject, author, date, publishers} + {\tl_if_empty:cF {@##1} {{\usekomafont{##1}\use:c {@##1}\par}}} + \vspace{\c_TUDa_rulesep_dim} + \end{addmargin} + \tl_if_empty:NF \@thanks { + \par\nointerlineskip + \rule{\g_TUDa_headwidth_dim}{\g_TUDa_titlerule_dim} + \expandafter\fontsize\TUDa_titlethanks_fontsize:\selectfont + \begin{addmargin}{.5\c_TUDa_largerule_dim} + \let\footnotetext\TUDa@title@footnote + \@thanks + \vspace{\c_TUDa_rulesep_dim} + \end{addmargin} + \par + \let\@thanks\@empty + } + \par\nointerlineskip + \rule{\g_TUDa_headwidth_dim}{\g_TUDa_titlerule_dim} + \par + \endgroup + \vskip .5\c_TUDa_logoheight_dim +}% + %%Abstract anpassungen mit Sprache \providecommand{\abstract}{}% für book \RenewDocumentEnvironment{abstract}{o}{ |