diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tuda-ci/tudathesis.cfg')
-rw-r--r-- | Master/texmf-dist/tex/latex/tuda-ci/tudathesis.cfg | 107 |
1 files changed, 83 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudathesis.cfg b/Master/texmf-dist/tex/latex/tuda-ci/tudathesis.cfg index 1342704480b..23958c3baba 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudathesis.cfg +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudathesis.cfg @@ -1,4 +1,4 @@ -%% This is file `tudathesis.cfg' version 3.07 (2020/10/21), +%% This is file `tudathesis.cfg' version 3.08 (2020/11/12), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,8 +26,8 @@ %% %% ============================================================================ %% -\def\fileversion{3.07} -\def\filedate{2020/10/21} +\def\fileversion{3.08} +\def\filedate{2020/11/12} \RequirePackage{expl3} \ProvidesExplFile{tudathesis.cfg} {\filedate}{\fileversion}{Special Features for publication type 'thesis' using TU Darmstadt's Corporate Design (tuda-ci)} @@ -279,17 +279,61 @@ } } +\tl_new:N \g_ptxcd_license_info_tl + \keys_define:nn {ptxcd/thesis} { urn .tl_gset:N =\g_ptxcd_thesis_urn_tl, urn .initial:V = \c_empty_tl, printid .tl_gset:N = \g_ptxcd_thesis_tuprints_tl, printid .initial:V = \c_empty_tl, doi .tl_gset:N = \g_ptxcd_thesis_doi_tl, - license .tl_gset:N = \g_ptxcd_license_info_tl, - license .initial:n = {Die~Veröffentlichung~steht~unter~folgender~Creative~Commons~Lizenz:\\ - Namensnennung~--~Keine~kommerzielle~Nutzung~--~Keine~Bearbeitung~ 2.0~Deutschland\\ - \url{http://creativecommons.org/licenses/by-nc-nd/2.0/de/} - } + license .choices:nn = {cc-by-4.0,cc-by-nc-nd-4.0} { + \tl_gset:Nx \g_ptxcd_license_info_tl {\exp_not:N \use:c {g__ptxcd_\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 \use:c {g__ptxcd_\l_keys_choice_tl :}}}} + }, + license / cc-by-nc-nd-2.0-de .code:n = \tl_gset:Nn \g_ptxcd_license_info_tl {\use:c {g__ptxcd_cc-by-nc-nd-2.0-de:}}, + license / initial .code:n = { + \keys_set:nn {ptxcd/thesis} {license=cc-by-nc-nd-2-de} + \tl_put_right:Nn \g_ptxcd_license_info_tl {\msg_warning:nn {tudapub/thesis} {default-license-will-change}} + }, + license / unknown .code:n = \tl_gset:Nn \g_ptxcd_license_info_tl {#1}, + license .initial:n = initial, +} + +\msg_new:nnnn {tudapub/thesis} {default-license-will-change} { + TUprints~changed~their~default~license.\\ + tuda-ci~will~adapt~this~change~in~the~next~major~update.~\\ + Please~choose~your~license~manually~to~avoid~unintended~changes. +} {Use~either~the~old~default~value~license=cc-by-nc-nd-2.0-de or~license=cc-by-4.0~or~license={<custom~text>}~with~\string\tuprints.} + + +\cs_new:cn {g__ptxcd_cc-by-nc-nd-2.0-de:} { + Die~Veröffentlichung~steht~unter~folgender~Creative~Commons~Lizenz:\\ + Namensnennung~--~Keine~kommerzielle~Nutzung~--~Keine~Bearbeitung~ 2.0~Deutschland\\ + \url{http://creativecommons.org/licenses/by-nc-nd/2.0/de/} +} + +\exp_args:Nnc \defcaptionname{ngerman, german}{g__ptxcd_cc-by-nc-nd-4.0:}{ + Die~Veröffentlichung~steht~unter~folgender~Creative~Commons~Lizenz:\\ + Namensnennung~--~Nicht~kommerziell~--~Keine~Bearbeitungen~4.0~International\\ + \url{http://creativecommons.org/licenses/by-nc-nd/4.0/} +} + +\exp_args:Nnc \defcaptionname{english, USenglish, american, UKenglish, british}{g__ptxcd_cc-by-nc-nd-4.0:}{ + This~work~is~licensed~under~a~Creative~Commons~License:\\ + Attribution--NonCommercial--NoDerivatives~4.0~International\\ + \url{https://creativecommons.org/licenses/by-nc-nd/4.0/} +} + +\exp_args:Nnc \defcaptionname{ngerman, german}{g__ptxcd_cc-by-4.0:}{ + Die~Veröffentlichung~steht~unter~folgender~Creative~Commons~Lizenz:\\ + Namensnennung~4.0~International\\ + \url{http://creativecommons.org/licenses/by/4.0/} +} + +\exp_args:Nnc \defcaptionname{english, USenglish, american, UKenglish, british}{g__ptxcd_cc-by-4.0:}{ + This~work~is~licensed~under~a~Creative~Commons~License:\\ + Attribution~4.0~International\\ + \url{https://creativecommons.org/licenses/by/4.0/} } \newcommand{\tuprints}[1]{% @@ -298,6 +342,7 @@ {\keys_set:nn {ptxcd/thesis} {printid=#1}} \lowertitleback{ \urlstyle{same} + \selectlanguage{ngerman} Bitte~zitieren~Sie~dieses~Dokument~als: \tl_if_empty:NF \g_ptxcd_thesis_urn_tl {\\URN:~urn:nbn:de:tuda-tuprints-\g_ptxcd_thesis_urn_tl}\\ URL:~\url{http://tuprints.ulb.tu-darmstadt.de/\g_ptxcd_thesis_tuprints_tl}\\ @@ -389,13 +434,15 @@ }% \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 + \def\titlepage@restore{% + \endgroup + \ptxcd_restore_typearea: + \dim_sub:Nn \evensidemargin {\marginparwidth+\marginparsep} + \dim_add:Nn \textwidth {\marginparwidth+\marginparsep} + \columnwidth=\textwidth + \hsize=\columnwidth + \global\@titlepageiscoverpagefalse + \let\titlepage@restore\relax }% \begingroup \topmargin=\dimexpr \coverpagetopmargin-1in\relax @@ -421,8 +468,8 @@ \ptxcd_setup_sponsor_box: \hbox_gset:Nn \g_ptxcd_title_box { \parbox[t]{\linewidth}{ - \begin{minipage}[b]{\bool_if:NT \g_ptxcd_logo@inhead_bool {.75}\linewidth} - \bool_if:NT \g_ptxcd_logo@inhead_bool {\color{textonaccentcolor}} + \begin{minipage}[b]{\bool_if:NT \g__ptxcd_LogoInHead_bool {.75}\linewidth} + \bool_lazy_and:nnT {\g_ptxcd_colorback_bool} {\g_ptxcd_colorbacktitle_bool} {\color{textonaccentcolor}} \tl_if_empty:NF \@titlehead { \begin{addmargin}{3mm} {\usekomafont{titlehead}{\@titlehead\par}} @@ -441,6 +488,7 @@ {\rule{0pt}{.5\c_ptxcd_logoheight_dim}} \end{addmargin} \end{minipage}% + \bool_if:NT \g_ptxcd_colorbacksubtitle_bool {\color{textonaccentcolor}} \par\nointerlineskip \rule{\linewidth}{\g_ptxcd_titlerule_dim}\par\vspace{\c_ptxcd_rulesep_dim} \begin{addmargin}{3mm} @@ -464,7 +512,20 @@ {\usekomafont{publishers}{\@publishers \par}}% \tl_if_empty:NF \g_ptxcd_titleaddendum_tl {\g_ptxcd_titleaddendum_tl\par} \end{addmargin} - \rule{\linewidth}{\g_ptxcd_titlerule_dim}\par}} + \tl_if_empty:NF \@thanks { + \expandafter\fontsize\ptxcd_titlethanks_fontsize:\selectfont\par + \rule{\linewidth}{\g_ptxcd_titlerule_dim}\par + \begin{addmargin}{3mm} + \let\footnotetext\ptxcd_title@footnote + \@thanks + \end{addmargin} + \par\vspace{-\dp\strutbox} + } + \normalcolor + \rule{\linewidth}{\g_ptxcd_titlerule_dim}\par + } + } + \let\@thanks\@empty \bool_if:NF \g_ptxcd_manual_info_box_bool { \exp_args:Nf \tl_if_empty:nF {\ptxcd_institution\ptxcd_department\ptxcd_institute\ptxcd_group} { \addTitleBox{ @@ -480,7 +541,6 @@ \nointerlineskip\box_use:N \g_ptxcd_title_box \par \vfill - \@thanks\let\@thanks\@empty \box_if_empty:NTF \g_ptxcd_sponsor_box { \raisebox{-\c_ptxcd_rulesep_dim}[0pt][0pt]{\rule{\linewidth}{\g_ptxcd_titlerule_dim}} }{ @@ -489,13 +549,13 @@ \if@twoside \@tempswatrue \expandafter\ifnum \@nameuse{scr@v@3.12}>\scr@compatibility\relax - \else - \ifx\@uppertitleback\@empty + \else + \ifx\@uppertitleback\@empty \ifx\@lowertitleback\@empty - \@tempswafalse + \@tempswafalse + \fi \fi \fi - \fi \else \exp_args:Nf \tl_if_empty:nTF {\g_ptxcd_thesis_urn_tl\g_ptxcd_thesis_tuprints_tl} {\@tempswafalse} @@ -530,7 +590,6 @@ } \newcommand*{\@ThesisType}{\ptxcd_thesisType} -%\ExplSyntaxOff \bool_if:NTF \g_ptxcd_dr_bool { \keys_define:nn {ptxcd/thesis} { |