summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tuda-ci/tudaleaflet.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-02-22 22:20:48 +0000
committerKarl Berry <karl@freefriends.org>2021-02-22 22:20:48 +0000
commit1f8a99f91f89d808a685fb90434693017786a8a6 (patch)
treec0adb02e7b8fd39fc9335d04d8dcd020fb37b570 /Master/texmf-dist/tex/latex/tuda-ci/tudaleaflet.cls
parent4220324e99226b427519e0380034f951f67a011f (diff)
parentd9e54ef03db8d244f5386fc89efffccb3d483a5e (diff)
sync with trunk 57841 to continue testing
git-svn-id: svn://tug.org/texlive/branches/branch2020@57848 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tuda-ci/tudaleaflet.cls')
-rw-r--r--Master/texmf-dist/tex/latex/tuda-ci/tudaleaflet.cls257
1 files changed, 133 insertions, 124 deletions
diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudaleaflet.cls b/Master/texmf-dist/tex/latex/tuda-ci/tudaleaflet.cls
index d4fc2062c51..35813f97b55 100644
--- a/Master/texmf-dist/tex/latex/tuda-ci/tudaleaflet.cls
+++ b/Master/texmf-dist/tex/latex/tuda-ci/tudaleaflet.cls
@@ -1,9 +1,9 @@
-%% This is file `tudaleaflet.cls' version 2.09 (2020/03/09),
+%% This is file `tudaleaflet.cls' version 3.10 (2021/02/05),
%% it is part of
%% TUDa-CI -- Corporate Design for TU Darmstadt
%% ----------------------------------------------------------------------------
%%
-%% Copyright (C) 2018--2020 by Marei Peischl <marei@peitex.de>
+%% Copyright (C) 2018--2021 by Marei Peischl <marei@peitex.de>
%%
%% ============================================================================
%% This work may be distributed and/or modified under the
@@ -26,49 +26,60 @@
%%
%% ============================================================================
%%
-\def\fileversion{2.09}
-\def\filedate{2020/03/09}
-\def\filedate{2020/02/02}
-\def\fileversion{}
+\def\fileversion{3.10}
+\def\filedate{2021/02/05}
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
\ProvidesExplPackage{tudaleaflet}{\filedate}{\fileversion}{Leaflets using the Corporate Design of TU Darmstadt}
\RequirePackage{l3keys2e}
-\tl_new:N \g_TUDa_sponsor_pos_tl
-\keys_define:nn {TUDa/leaflet} {
- logofile .tl_gset:N = \g_TUDa_logofile_tl,
+
+\str_const:Nn \c__ptxcd_base_str {leaflet}
+
+\tl_new:N \g_ptxcd_sponsor_pos_tl
+\keys_define:nn {ptxcd/leaflet} {
+ logofile .tl_gset:N = \g_ptxcd_logofile_tl,
logofile .initial:n = tuda_logo,
color .meta:n = {accentcolor=#1},
accentcolor .code:n = {\PassOptionsToPackage{accentcolor=#1}{tudacolors}},
textaccentcolor .code:n = {\PassOptionsToPackage{textaccentcolor=#1}{tudacolors}},
identbarcolor .code:n = {\PassOptionsToPackage{identbarcolor=#1}{tudacolors}},
- colorback .bool_gset:N = \g_TUDa_colorback_bool,
+ colorback .bool_gset:N = \g_ptxcd_colorback_bool,
colorback .initial:n = true,
colorback .default:n = true,
- colorbacktitle .bool_gset:N = \g_TUDa_colorbacktitle_bool,
+ colorbacktitle .bool_gset:N = \g_ptxcd_colorbacktitle_bool,
colorbacktitle .initial:n = false,
colorbacktitle .default:n = true,
- colorbacksubtitle .bool_set:N = \g_TUDa_colorbacksubtitle_bool,
+ colorbacksubtitle .bool_set:N = \g_ptxcd_colorbacksubtitle_bool,
colorbacksubtitle .initial:n = false,
colorbacksubtitle .default:n = true,
- sponsor .choices:nn = {title,lastfoot,manual}{\tl_gset_eq:NN \g_TUDa_sponsor_pos_tl \l_keys_choice_tl},
+ sponsor .choices:nn = {title,lastfoot,manual}{\tl_gset_eq:NN \g_ptxcd_sponsor_pos_tl \l_keys_choice_tl},
sponsor .initial:n = title,
+ department .choice:,
+ department / default .code:n = \str_gset:Nn \g_ptxcd_department_str {default},
+ department / mecheng .code:n = {
+ \str_gset:Nn \g_ptxcd_department_str {mecheng}
+ \keys_set:nn {ptxcd/leaflet} {colorback=false, departmentlogofile=tuda_maschinenbau_logo}
+ },
+ department .initial:n = default,
+ mecheng .meta:n = {department=mecheng},
+ departmentlogofile .tl_gset:N = \g_ptxcd_departmentlogo_tl,
+ departmentlogofile .initial:n =,
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{leaflet}}
-\ProcessKeysOptions{TUDa/leaflet}
+\ProcessKeysOptions{ptxcd/leaflet}
\ProcessOptions\relax
-\bool_if:NT \g_TUDa_colorbacksubtitle_bool {
- \bool_if:NF \g_TUDa_colorbacktitle_bool {
- \msg_new:nnnn {TUDa/leaflet} {incompatible-options} {You~cannot~use~the~setting~#1~at~the~same~time~as~#2.} {See~TUDaLeaflet~documentation~for~further~information.}
- \msg_error:nn {TUDa/leaflet} {incompatible-options} {colorbacksubtitle=true} {colorbacktitle=false}
+\bool_if:NT \g_ptxcd_colorbacksubtitle_bool {
+ \bool_if:NF \g_ptxcd_colorbacktitle_bool {
+ \msg_new:nnnn {ptxcd/leaflet} {incompatible-options} {You~cannot~use~the~setting~#1~at~the~same~time~as~#2.} {See~TUDaLeaflet~documentation~for~further~information.}
+ \msg_error:nn {ptxcd/leaflet} {incompatible-options} {colorbacksubtitle=true} {colorbacktitle=false}
}
}
-\LoadClass[notumble,9pt]{leaflet}
+\LoadClass[notumble]{leaflet}
%to workaround incompatibilities between leaflet and scrextend
\let\sectfont\relax
@@ -82,17 +93,10 @@
\setlength{\footheight}{2mm}
\setmargins{10mm}{\dimexpr10mm+\headheight\relax}{10mm}{10mm}%Hardcoded, according to the guideline
-\TUDa@makeheadrule[color=identbarcolor]{TUDa_headrule}
-\box_new:N \TUDa_footrule_box
-\hbox_gset:Nn \TUDa_footrule_box {\rule{\textwidth}{.5\c_TUDa_smallrule_dim}}
-
-\dim_new:N \g_TUDa_titlerule_dim
-\dim_gset:Nn \g_TUDa_titlerule_dim {.5\c_TUDa_smallrule_dim}
-
\DeclareNewLayer[
head,
mode=picture,
- contents=\putUL{\box_use:N \TUDa_headrule_box}
+ contents=\putUL{\box_use:N \ptxcd_headrule_box}
]{TUDa.flyer.headline}
\DeclareNewLayer[
@@ -100,7 +104,7 @@
mode=picture,
height=\z@,
voffset=\paperheight-14mm,
- contents=\smash{\box_use:N \TUDa_footrule_box}
+ contents=\smash{\box_use:N \ptxcd_footrule_box}
]{TUDa.flyer.footline}
\DeclareNewPageStyleByLayers{TUDa.flyer}{
@@ -111,27 +115,27 @@
% Title specific additions to pagestyle
\DeclareNewLayer[textarea,mode=picture,
-addheight=\headheight-\box_dp:N \TUDa_headrule_box+\dp\strutbox,
+addheight=\headheight-\box_dp:N \ptxcd_headrule_box+\dp\strutbox,
contents={
- \bool_if:NT \g_TUDa_colorback_bool {\putLL{\color{identbarcolor}\rule{\layerwidth}{\layerheight}}}
- \tl_if_empty:NTF \g_TUDa_titleimage_code_tl
- {\bool_if:NT \g_TUDa_colorback_bool {\putLL{\color{identbarcolor}\rule{\layerwidth}{\layerheight}}}}
+ \bool_if:NT \g_ptxcd_colorback_bool {\putLL{\color{identbarcolor}\rule{\layerwidth}{\layerheight}}}
+ \tl_if_empty:NTF \g_ptxcd_titleimage_code_tl
+ {\bool_if:NT \g_ptxcd_colorback_bool {\putLL{\color{identbarcolor}\rule{\layerwidth}{\layerheight}}}}
{\putUL{\color{identbarcolor}\raisebox{-\height}{\parbox[t]{\textwidth}{
\let\width\layerwidth
\let\height\layerheight
- \g_TUDa_titleimage_code_tl
+ \g_ptxcd_titleimage_code_tl
}}}}
- \put(\dim_to_decimal_in_unit:nn {\layerwidth-2.2\c_TUDa_logoheight_dim
+ \put(\dim_to_decimal_in_unit:nn {\layerwidth-2.2\c_ptxcd_logoheight_dim
} {\unitlength},
- \dim_to_decimal_in_unit:nn {\layerheight-\box_ht:N \g_TUDa_title_info_box - .5\c_TUDa_logoheight_dim} {\unitlength}){
- \rlap{\box_use:N \g_TUDa_title_info_box}
+ \dim_to_decimal_in_unit:nn {\layerheight-\box_ht:N \g_ptxcd_title_info_box - .5\c_ptxcd_logoheight_dim} {\unitlength}){
+ \rlap{\box_use:N \g_ptxcd_title_info_box}
}
}
]{title.TUDa.image}
\DeclareNewLayer[textarea,background,mode=picture,
contents={
- \bool_if:NT \g_TUDa_colorbacktitle_bool {
+ \bool_if:NT \g_ptxcd_colorbacktitle_bool {
\color{identbarcolor}\rule{\layerwidth}{\layerheight}
}
}
@@ -144,21 +148,21 @@ contents={
TUDa.flyer.footline,
}
-\cs_new:Nn \TUDa_Setup_Title_box: {
- \hbox_gset:Nn \g_TUDa_title_info_box
+\cs_new:Nn \ptxcd_Setup_Title_box: {
+ \hbox_gset:Nn \g_ptxcd_title_info_box
{
- \parbox{\dimexpr2.5\c_TUDa_logoheight_dim}{
- \seq_use:Nn \g_TUDa_title_info_seq {\par\nointerlineskip\vspace{\dim_eval:n {\c_TUDa_largerule_dim+\c_TUDa_rulesep_dim}}}
+ \parbox{\dimexpr2.5\c_ptxcd_logoheight_dim}{
+ \seq_use:Nn \g_ptxcd_title_info_seq {\par\nointerlineskip\vspace{\dim_eval:n {\c_ptxcd_largerule_dim+\c_ptxcd_rulesep_dim}}}
}
}
}
\newcommand*\sectionlinesformat[1]{%
\parbox{\linewidth}{
- \rule[\TUDa_titlerule_sep:]{\linewidth}{\g_TUDa_titlerule_dim}\par\nointerlineskip
+ \rule[\ptxcd_titlerule_sep:]{\linewidth}{\g_ptxcd_titlerule_dim}\par\nointerlineskip
#1\strut\rule[-\dp\strutbox]{0pt}{\dp\strutbox}\par\nointerlineskip
- \skip_vertical:n {\TUDa_titlerule_sep: -.5\dp\strutbox}
- \smash{\rule{\linewidth}{\g_TUDa_titlerule_dim}}
+ \skip_vertical:n {\ptxcd_titlerule_sep: -.5\dp\strutbox}
+ \smash{\rule{\linewidth}{\g_ptxcd_titlerule_dim}}
}
}
@@ -166,27 +170,27 @@ contents={
\newcommand*{\raggedtitle}{\raggedright}
\renewcommand*{\maketitle}{
\def\and{,~ }
- \hbox_gset:Nn \g_TUDa_sponsor_box {
- \def\height{\dimexpr.8\c_TUDa_logoheight_dim\relax}
+ \hbox_gset:Nn \g_ptxcd_sponsor_box {
+ \def\height{\dimexpr.8\c_ptxcd_logoheight_dim\relax}
\parbox[b]{\textwidth}{%
- \rule{\linewidth}{\g_TUDa_titlerule_dim}\par\nointerlineskip
- \vspace{.1\c_TUDa_logoheight_dim}
- \seq_use:Nn \g_TUDa_sponsors_seq {\hfill}\par
- \addvspace{.1\c_TUDa_logoheight_dim}
+ \rule{\linewidth}{\g_ptxcd_titlerule_dim}\par\nointerlineskip
+ \vspace{.1\c_ptxcd_logoheight_dim}
+ \seq_use:Nn \g_ptxcd_sponsors_seq {\hfill}\par
+ \addvspace{.1\c_ptxcd_logoheight_dim}
\ifx\@sponsors\@empty
\else
\@sponsors\par
\fi
- \par\nointerlineskip\addvspace{\dim_eval:n {.1\c_TUDa_logoheight_dim-\c_TUDa_rulesep_dim}}
-% \rule{\linewidth}{\g_TUDa_titlerule_dim}
+ \par\nointerlineskip\addvspace{\dim_eval:n {.1\c_ptxcd_logoheight_dim-\c_ptxcd_rulesep_dim}}
+% \rule{\linewidth}{\g_ptxcd_titlerule_dim}
}
}
\begin{titlepage}
\def\thefootnote{\fnsymbol{footnote}}
- \hbox_gset:Nn \g_TUDa_title_box {
+ \hbox_gset:Nn \g_ptxcd_title_box {
\parbox[t]{\linewidth}{
\begin{minipage}[b]{\linewidth}
- \bool_if:NT \g_TUDa_colorbacktitle_bool {\color{textonaccentcolor}}
+ \bool_if:NT \g_ptxcd_colorbacktitle_bool {\color{textonaccentcolor}}
\begin{addmargin}{3mm}
\raggedtitle
\Huge
@@ -198,13 +202,13 @@ contents={
\end{addmargin}
\end{minipage}%
\par\nointerlineskip
- \bool_if:NTF \g_TUDa_colorbacksubtitle_bool
- {\textcolor{white}{\rule{\linewidth}{\c_TUDa_rulesep_dim}}}
- {\rule{\linewidth}{\g_TUDa_titlerule_dim}}
+ \bool_if:NTF \g_ptxcd_colorbacksubtitle_bool
+ {\textcolor{white}{\rule{\linewidth}{\c_ptxcd_rulesep_dim}}}
+ {\rule{\linewidth}{\g_ptxcd_titlerule_dim}}
\par
- \vspace{\c_TUDa_rulesep_dim}
+ \vspace{\c_ptxcd_rulesep_dim}
\begin{addmargin}{3mm}
- \bool_if:NT \g_TUDa_colorbacksubtitle_bool {\color{textonaccentcolor}}
+ \bool_if:NT \g_ptxcd_colorbacksubtitle_bool {\color{textonaccentcolor}}
\raggedtitle
\usekomafont{disposition}
{\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle\par}\fi}%
@@ -216,18 +220,18 @@ contents={
}%
{\usekomafont{date}{\@date\par}}%
\end{addmargin}\nointerlineskip
- \vspace{\c_TUDa_rulesep_dim}
- \bool_if:NT \g_TUDa_colorbacktitle_bool
+ \vspace{\c_ptxcd_rulesep_dim}
+ \bool_if:NT \g_ptxcd_colorbacktitle_bool
{
- \textcolor{white}{\rule{\linewidth}{\c_TUDa_rulesep_dim}}\par\nointerlineskip
+ \textcolor{white}{\rule{\linewidth}{\c_ptxcd_rulesep_dim}}\par\nointerlineskip
}
- \rule{\linewidth}{\g_TUDa_titlerule_dim}\par
+ \rule{\linewidth}{\g_ptxcd_titlerule_dim}\par
}
}
- \TUDa_adjust_titlepage_style:
+ \ptxcd_adjust_titlepage_style:
\par
- \vspace*{\dimexpr.5\c_TUDa_logoheight_dim-\topskip}
- \box_use:N \g_TUDa_title_box
+ \vspace*{\dimexpr.5\c_ptxcd_logoheight_dim-\topskip}
+ \box_use:N \g_ptxcd_title_box
\par
\vfill\null
\if@twoside
@@ -245,51 +249,51 @@ contents={
}
-\cs_set:Nn \TUDa_adjust_titlepage_style: {
- \dim_set:Nn \l_tmpa_dim {1\c_TUDa_logoheight_dim}%\fp_to_dim:n {2.8\baselineskip}}
- \dim_compare:nT {\box_ht:N \g_TUDa_title_box < \l_tmpa_dim} {
- \skip_set:Nn \g_TUDa_title_fill_skip {\dim_eval:n {\l_tmpa_dim - \box_ht:N \g_TUDa_title_box}}
+\cs_set:Nn \ptxcd_adjust_titlepage_style: {
+ \dim_set:Nn \l_tmpa_dim {1\c_ptxcd_logoheight_dim}%\fp_to_dim:n {2.8\baselineskip}}
+ \dim_compare:nT {\box_ht:N \g_ptxcd_title_box < \l_tmpa_dim} {
+ \skip_set:Nn \g_ptxcd_title_fill_skip {\dim_eval:n {\l_tmpa_dim - \box_ht:N \g_ptxcd_title_box}}
}
\dim_set:Nn \l_tmpa_dim {
- +\box_ht:N \g_TUDa_title_box
- +.5\c_TUDa_logoheight_dim
- +\box_dp:N \g_TUDa_title_box
- +\g_TUDa_title_fill_skip
+ +\box_ht:N \g_ptxcd_title_box
+ +.5\c_ptxcd_logoheight_dim
+ +\box_dp:N \g_ptxcd_title_box
+ +\g_ptxcd_title_fill_skip
}
\ModifyLayer[
addvoffset=\l_tmpa_dim,
addheight= -\l_tmpa_dim
]{title.TUDa.image}
- \DeclareNewLayer[clone=TUDa.flyer.footline,%clone=title.TUDa.image,
+ \DeclareNewLayer[clone=TUDa.flyer.footline,
mode=picture,
align=bl,
- height=\box_ht:N \g_TUDa_sponsor_box + \box_dp:N \g_TUDa_sponsor_box,
+ height=\box_ht:N \g_ptxcd_sponsor_box + \box_dp:N \g_ptxcd_sponsor_box,
addvoffset=-\dp\strutbox,
- contents=\raisebox{\depth}{\box_use:N \g_TUDa_sponsor_box}
+ contents=\raisebox{\depth}{\box_use:N \g_ptxcd_sponsor_box}
]
{title.TUDa.sponsor}
- \exp_args:Nx \tl_if_eq:nnT {\g_TUDa_sponsor_pos_tl} {title} {
+ \exp_args:Nx \tl_if_eq:nnT {\g_ptxcd_sponsor_pos_tl} {title} {
\AddLayersToPageStyle{title.TUDa}{title.TUDa.sponsor}
\ModifyLayer[
- addheight=-\box_ht:N \g_TUDa_sponsor_box -\box_dp:N \g_TUDa_sponsor_box-\dp\strutbox
+ addheight=-\box_ht:N \g_ptxcd_sponsor_box -\box_dp:N \g_ptxcd_sponsor_box-\dp\strutbox
]{title.TUDa.image}
}
\ModifyLayer[
- addvoffset={-\dim_eval:n {\headheight -\box_ht:N \TUDa_headrule_box-\box_dp:N \TUDa_headrule_box }},
+ addvoffset={-\dim_eval:n {\headheight -\box_ht:N \ptxcd_headrule_box-\box_dp:N \ptxcd_headrule_box }},
height={
- \bool_if:NT \g_TUDa_colorbacksubtitle_bool {\box_dp:N \g_TUDa_title_box}
- +\box_ht:N \g_TUDa_title_box+\g_TUDa_title_fill_skip+.5\c_TUDa_logoheight_dim+
- \headheight -\box_ht:N \TUDa_headrule_box-\box_dp:N \TUDa_headrule_box
+ \bool_if:NT \g_ptxcd_colorbacksubtitle_bool {\box_dp:N \g_ptxcd_title_box}
+ +\box_ht:N \g_ptxcd_title_box+\g_ptxcd_title_fill_skip+.5\c_ptxcd_logoheight_dim+
+ \headheight -\box_ht:N \ptxcd_headrule_box-\box_dp:N \ptxcd_headrule_box
}
]{title.TUDa.background}
\AddLayersToPageStyle{title.TUDa}{title.TUDa.background}
\thispagestyle{title.TUDa}
\nointerlineskip
- \TUDa_Setup_Title_box:
+ \ptxcd_Setup_Title_box:
\par
- \vspace*{\skip_use:N \g_TUDa_title_fill_skip}
+ \vspace*{\skip_use:N \g_ptxcd_title_fill_skip}
\setlength{\fboxsep}{\z@}
}
%
@@ -300,7 +304,7 @@ contents={
\renewcommand*{\familydefault}{\sfdefault}
%Titlepage font setup
-\setkomafont{disposition}{\accentfont\bfseries}
+\setkomafont{disposition}{\bfseries}
\setkomafont{title}{\Huge}
\setkomafont{subtitle}{}
\setkomafont{date}{}
@@ -326,86 +330,86 @@ contents={
{\usekomafont{disposition}\usekomafont{subsubsection}\sectfont}}
\clist_map_inline:nn {section, subsection, subsubsection} {
- \cs_set_eq:cc {TUDa_save_#1} {#1}
+ \cs_set_eq:cc {ptxcd_save_#1} {#1}
\exp_args:Nc \RenewDocumentCommand{#1}{sO{##3}m}{
\IfBooleanTF{##1}{
- \use:c {TUDa_save_#1}*{\sectionlinesformat{##3}}
+ \use:c {ptxcd_save_#1}*{\sectionlinesformat{##3}}
}{
- \use:c {TUDa_save_#1}[##2]{\sectionlinesformat{##3}}
+ \use:c {ptxcd_save_#1}[##2]{\sectionlinesformat{##3}}
}
}
}
-\cs_new:Nn \TUDa_titlerule_sep: {\the\dp\strutbox}
+\cs_new:Nn \ptxcd_titlerule_sep: {\the\dp\strutbox}
\def\subtitle#1{\def\@subtitle{#1}}
\subtitle{}
-\seq_new:N \g_TUDa_sponsors_seq
-\def\AddSponsor{\seq_gput_right:Nn \g_TUDa_sponsors_seq}
+\seq_new:N \g_ptxcd_sponsors_seq
+\def\AddSponsor{\seq_gput_right:Nn \g_ptxcd_sponsors_seq}
\def\sponsors#1{\def\@sponsors{#1}}
\sponsors{}
-\box_new:N \g_TUDa_sponsor_box
+\box_new:N \g_ptxcd_sponsor_box
\newcommand*{\footergraphics}[1]{
\begingroup
- \let\height\g_TUDa_footheight_dim
- \hbox_gset:Nn \g_TUDa_footergraphics_box {#1}
+ \let\height\g_ptxcd_footheight_dim
+ \hbox_gset:Nn \g_ptxcd_footergraphics_box {#1}
\endgroup
}
-\tl_new:N \g_TUDa_titleimage_code_tl
-\tl_gset_eq:NN \g_TUDa_titleimage_code_tl \c_empty_tl
-\newcommand{\titleimage}[1]{\tl_gset:Nn \g_TUDa_titleimage_code_tl {#1}}
+\tl_new:N \g_ptxcd_titleimage_code_tl
+\tl_gset_eq:NN \g_ptxcd_titleimage_code_tl \c_empty_tl
+\newcommand{\titleimage}[1]{\tl_gset:Nn \g_ptxcd_titleimage_code_tl {#1}}
-\box_new:N \g_TUDa_title_box
-\skip_new:N \g_TUDa_title_fill_skip
+\author{}%to remove warning if no author given
-\seq_new:N \g_TUDa_title_info_seq
-\box_new:N \g_TUDa_title_info_box
+\box_new:N \g_ptxcd_title_box
+\skip_new:N \g_ptxcd_title_fill_skip
-\colorlet{TUDa@InfoBoxColor}{white}
+\seq_new:N \g_ptxcd_title_info_seq
+\box_new:N \g_ptxcd_title_info_box
-\cs_new:Nn \TUDa_make_title_info_box:n {
+\cs_new:Nn \ptxcd_make_title_info_box:n {
\setlength{\fboxsep}{1.5mm}%
- \colorbox{TUDa@InfoBoxColor}{
- \makebox[\dim_eval:n {2.2\c_TUDa_logoheight_dim-\fboxsep}][r]{
- \parbox{2\c_TUDa_logoheight_dim}{
+ \colorbox{InfoBox}{
+ \makebox[\dim_eval:n {2.2\c_ptxcd_logoheight_dim-\fboxsep}][r]{
+ \parbox{2\c_ptxcd_logoheight_dim}{
\usekomafont{institution}
\raggedright%
#1
}}}
}
-\cs_new:Nn \TUDa_make_title_logo_box:n {
+\cs_new:Nn \ptxcd_make_title_logo_box:n {
\setlength{\fboxsep}{\z@}
- \parbox{2.2\c_TUDa_logoheight_dim}{
- \colorbox{TUDa@InfoBoxColor}{
+ \parbox{2.2\c_ptxcd_logoheight_dim}{
+ \colorbox{InfoBox}{
\rlap{
- \makebox[2.5\c_TUDa_logoheight_dim][r]{
- \colorbox{TUDa@InfoBoxColor}{#1\hspace{.3\c_TUDa_logoheight_dim}}
+ \makebox[2.5\c_ptxcd_logoheight_dim][r]{
+ \colorbox{InfoBox}{#1\hspace{.3\c_ptxcd_logoheight_dim}}
}
}
}
}
}
-\newcommand{\addTitleBox}[1]{\seq_gput_right:Nn \g_TUDa_title_info_seq {\TUDa_make_title_info_box:n {#1}}}
+\newcommand{\addTitleBox}[1]{\seq_gput_right:Nn \g_ptxcd_title_info_seq {\ptxcd_make_title_info_box:n {#1}}}
\NewDocumentCommand{\addTitleBoxLogo}{sm}{
\IfBooleanTF{#1}{
- \seq_gput_right:Nn \g_TUDa_title_info_seq {
- \TUDa_make_title_logo_box:n {#2}
+ \seq_gput_right:Nn \g_ptxcd_title_info_seq {
+ \ptxcd_make_title_logo_box:n {#2}
}
}{
- \seq_gput_right:Nn \g_TUDa_title_info_seq {
- \TUDa_make_title_logo_box:n {
+ \seq_gput_right:Nn \g_ptxcd_title_info_seq {
+ \ptxcd_make_title_logo_box:n {
\hbox_set:Nn \l_tmpa_box {
- \includegraphics[width=1.5\c_TUDa_logoheight_dim]{#2}
+ \includegraphics[width=1.5\c_ptxcd_logoheight_dim]{#2}
}
- \dim_set:Nn \l_tmpa_dim {2\c_TUDa_logoheight_dim/3}
+ \dim_set:Nn \l_tmpa_dim {2\c_ptxcd_logoheight_dim/3}
\dim_compare:nTF {\box_ht:N \l_tmpa_box > \l_tmpa_dim}
{\includegraphics[width=\l_tmpa_dim]{#2}}
{\box_use:N \l_tmpa_box}
@@ -414,24 +418,29 @@ contents={
}
}
-\addTitleBoxLogo*{\makebox[\linewidth][l]{\includegraphics[height=\c_TUDa_logoheight_dim]{\g_TUDa_logofile_tl}}}
+\addTitleBoxLogo*{\makebox[\linewidth][l]{\includegraphics[height=\c_ptxcd_logoheight_dim]{\g_ptxcd_logofile_tl}}}
\date{}
\let\insertSponsors\relax
-\str_case:Vn \g_TUDa_sponsor_pos_tl {
+\str_case:Vn \g_ptxcd_sponsor_pos_tl {
{lastfoot}{
\AtEndDocument{
\par\vspace*{\fill}
\leavevmode\raisebox{\dimexpr\depth-\baselineskip}[0pt][0pt]{
- \box_use:N \g_TUDa_sponsor_box
+ \box_use:N \g_ptxcd_sponsor_box
}
}
}
{manual} {
- \renewcommand*{\insertSponsors}{\par\vfill\leavevmode\box_use:N \g_TUDa_sponsor_box\par\nobreak\nointerlineskip\rule{\linewidth}{\g_TUDa_titlerule_dim}
+ \renewcommand*{\insertSponsors}{\par\vfill\leavevmode\box_use:N \g_ptxcd_sponsor_box\par\nobreak\nointerlineskip\rule{\linewidth}{\g_ptxcd_titlerule_dim}
}
}
}
-\endinput \ No newline at end of file
+\file_if_exist_input:n {tuda\g_ptxcd_department_str.cfg}
+
+\ptxcd_makeheadrule[color=identbarcolor]{ptxcd_headrule}
+\ptxcd_makefootrule{ptxcd_footrule}
+
+\endinput