From b5081102bc45191d77f3665817270ae63e4b06a3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 28 Nov 2019 22:01:59 +0000 Subject: tuda-ci (28nov19) git-svn-id: svn://tug.org/texlive/trunk@52963 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/tuda-ci/tudathesis.cfg | 77 ++++++++++------------ 1 file changed, 34 insertions(+), 43 deletions(-) (limited to 'Master/texmf-dist/tex/latex/tuda-ci/tudathesis.cfg') diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudathesis.cfg b/Master/texmf-dist/tex/latex/tuda-ci/tudathesis.cfg index 1c8b47c5965..1adf2fc8ab0 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudathesis.cfg +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudathesis.cfg @@ -1,33 +1,3 @@ -%% This is file `tudathesis.cfg' version 2.02 (2019/11/16), -%% it is part of -%% TUDa-CI -- Corporate Design for TU Darmstadt -%% ---------------------------------------------------------------------------- -%% -%% Copyright (C) 2018--2019 by Marei Peischl -%% -%% ============================================================================ -%% This work may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3c -%% of this license or (at your option) any later version. -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.3c or later is part of all distributions of LaTeX -%% version 2008/05/04 or later. -%% -%% This work has the LPPL maintenance status `maintained'. -%% -%% The Current Maintainers of this work are -%% Marei Peischl -%% Markus Lazanowski -%% -%% The development respository can be found at -%% https://github.com/tudace/tuda_latex_templates -%% Please use the issue tracker for feedback! -%% -%% ============================================================================ -%% -\def\fileversion{2.02} -\def\filedate{2019/11/16} \RequirePackage{expl3} \ProvidesExplFile{tudathesis.cfg} {\filedate}{\fileversion}{Special Features for publication type 'thesis' using TU Darmstadt's Coporate Design (tuda-ci)} @@ -71,7 +41,7 @@ \TUDa_declare_caption:Nnn \TUDa_in_department {im~ \departmentname}{in~the~\departmentname{}~ of} \TUDa_declare_caption:Nnn \departmentfullname {\departmentname{}~ \TUDa@department} { \TUDa@department{}~ \tl_mixed_case:n{\departmentname}} } - {\bool_if:NTF \g_TUDa_dr_bool + {\bool_if:NTF \g_TUDa_dr_bool { \msg_warning:nnn {tudapub/tudathesis} {unrecognized-department} {#1} \gdef\TUDa@department{#1} @@ -111,7 +81,7 @@ %Fallback content for box if not overwritten \newcommand*\TUDa@box_department {\cs_if_exist_use:NF \departmentfullname {\TUDa@department}} -\newcommand*\TUDa@in_department {\TUDa_in_department{}~\TUDa@department} +\newcommand*\TUDa@in_department {} \keys_define:nn {TUDa/thesis} { @@ -156,11 +126,15 @@ \cs_new:Npn \drtext #1 {\tl_gset:Nn \g_TUDa_thesis_drtext_tl {#1}} +\tl_new:N \g_TUDa_titleintro_tl +\cs_new:Npn \titleintro #1 {\tl_gset:Nn \g_TUDa_titleintro_tl {#1}} +\tl_new:N \g_TUDa_titleaddendum_tl +\cs_new:Npn \titleaddendum #1 {\tl_gset:Nn \g_TUDa_titleaddendum_tl {#1}} \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.} \cs_new:Nn \TUDa_missing_title_data:n { - \bool_if:NTF \g_TUDa_missing_data_warning_bool + \bool_if:NTF \g_TUDa_missing_data_warning_bool \msg_warning:nnn \msg_error:nnn {TUDapub/thesis} {required-data-missing} {#1} } @@ -168,7 +142,7 @@ \cs_new:Nn \TUDa_check_title_data:Nn { \clist_if_in:NnT \g_TUDa_Required_title_data_clist {#2} { \tl_if_empty:NT #1 { - \bool_if:NTF \g_TUDa_missing_data_warning_bool + \bool_if:NTF \g_TUDa_missing_data_warning_bool {\msg_warning:nnn} {\msg_error:nnn} {TUDapub/thesis} {required-data-missing} {#2} } @@ -230,7 +204,7 @@ } \int_zero:N \l_tmpb_int \par\vspace*{\baselineskip} - \seq_map_inline:Nn \g_TUDa_reviewer_seq + \seq_map_inline:Nn \g_TUDa_reviewer_seq { \int_incr:N \l_tmpb_int \int_to_arabic:n {\l_tmpb_int}.~\tl_mixed_case:n{\TUDa@reviewname}:~\exp_not:n {##1}\\ @@ -276,7 +250,7 @@ } \newcommand{\tuprints}[1]{% - \tl_if_in:nnTF {#1} {=} + \tl_if_in:nnTF {#1} {=} {\keys_set:nn {TUDa/thesis} {#1}} {\keys_set:nn {TUDa/thesis} {printid=#1}} \lowertitleback{ @@ -333,7 +307,7 @@ %\msg_new:nn {tudathesis.cfg} {unknown-choiche} { % The key #1 only accepts a fix set of choices. -% +% %} % %\msg_error:nnxxx { mymodule } { unknown-choice } @@ -443,6 +417,7 @@ {\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle\par}\fi}% \usekomafont{subject} \bool_if:NT \g_TUDa_dr_bool {\selectlanguage{ngerman}} + \tl_if_empty:NF \g_TUDa_titleintro_tl {\g_TUDa_titleintro_tl\par} \tl_if_empty:NF \g_TUDa_thesis_drtext_tl {\g_TUDa_thesis_drtext_tl\par} {% \usekomafont{author} @@ -453,6 +428,7 @@ {\usekomafont{date}{\TUDa@thesis@dates\par}}% \TUDa@thesis@reviewer\par {\usekomafont{publishers}{\@publishers \par}}% + \tl_if_empty:NF \g_TUDa_titleaddendum_tl {\g_TUDa_titleaddendum_tl\par} \end{addmargin}%\vspace{\dim_eval:n {-2\ht\strutbox -\dp\strutbox}}%\baselineskip} \rule{\linewidth}{\g_TUDa_titlerule_dim}\par}} \bool_if:NF \g_TUDa_manual_info_box_bool { @@ -466,7 +442,7 @@ } \TUDa_adjust_titlepage_style: - + \nointerlineskip\box_use:N \g_TUDa_title_box \par \@thanks\let\@thanks\@empty @@ -480,7 +456,7 @@ \@tempswafalse \fi \fi - \fi + \fi \else \exp_args:Nf \tl_if_empty:nTF {\g_TUDa_thesis_urn_tl\g_TUDa_thesis_tuprints_tl} {\@tempswafalse} @@ -517,8 +493,7 @@ \ExplSyntaxOff \NewDocumentCommand{\affidavit}{s}{ \clearpage -\begingroup -\selectlanguage{ngerman} +\begin{otherlanguage}{ngerman} \csname bool_if:cTF\endcsname {g_TUDa_dr_bool} { \section*{Erklärungen laut Promotionsordnung} \subsection*{\S{}8 Abs. 1 lit. c PromO} @@ -545,11 +520,27 @@ Bei einer Thesis des Fachbereichs Architektur entspricht die eingereichte elektr \par \bigskip -Darmstadt, den \TUDa@submissiondate\hfill\parbox[t]{5cm}{\centering\rule{\linewidth}{.3pt}\\\makebox[0pt][c]{\TUDa@signature}}\\\strut -\endgroup +\AffidavitSignature +\end{otherlanguage} \IfBooleanF{#1}{\clearpage} } +\NewDocumentEnvironment{affidavit*}{om}{ +\IfNoValueF {#1} {\begin{otherlanguage}{#1}} +\section*{#2} +}{ +\IfNoValueF {#1} {\end{otherlanguage}} +} + +\newcommand*{\AffidavitSignature}[1][Darmstadt]{ +\par +\bigskip +#1, \TUDa@submissiondate\hfill\SignatureBox{\TUDa@signature}\\\strut +} + +\newcommand*{\SignatureBox}[2][5cm]{\parbox[t]{#1}{\centering\rule{\linewidth}{.3pt}\\\makebox[0pt][c]{#2}}} + + \ExplSyntaxOn %messages: -- cgit v1.2.3