Debian Codegraph @

texmf-dist/source/latex/tuda-ci/tudaleaflet.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% no documentation on this
31 % \iffalse^^A Preparation for real docstrip documentation
32 %<*driver>
33 \ProvidesFile{tudaleaflet.dtx}
34 [2025-11-13 v4.05 Leaflets using the Corporate Design of TU Darmstadt]
35 \typeout{***********************************************************}
36 \typeout{No documentation included in this file! Please see tuda-ci.pdf for more information and DEMO-TUDaLeaflet.tex/.pdf for an example of use.}
37 \typeout{***********************************************************}
38 \stop
39 %</driver>
40 %<*class&initialization>
41 %<@@=ptxcd>
42 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
43 \ProvidesExplPackage{tudaleaflet}{2025-11-13}{4.05}{Leaflets using the Corporate Design of TU Darmstadt}
44 %</class&initialization>
45 %
46 %
47 %<*driver>^^A Preparation for real docstrip documentation
48 \providecommand*{\TUDaDocDTXfiles}{tudaleaflet.dtx}
49 \input{tuda-ci.dtx}
50 %</driver>
51 % \fi
52 %
53 % \changes{v4.00}{2025-01-26}{Converted to DTX file}
54 %
55 % \DoNotIndex{\newcommand,\newenvironment}
56 %
57 % \GetFileInfo{tudaleaflet.dtx}
58 % \title{The \textsf{tudaleaflet} package}
59 % \author{<+author+>\thanks{Email: \href{mailto:<+email+>}{<+email+>}}}
60 % \date{\fileversion~from \filedate}
61 %
62 % \maketitle
63 %
64 %
65 % \DescribeMacro{\maketitle}
66 %
67 %
68 % \DescribeMacro{\section}
69 %
70 %
71 % \DescribeMacro{\subsection}
72 %
73 %
74 % \DescribeMacro{\subsubsection}
75 %
76 %
77 % \DescribeMacro{\subtitle}
78 %
79 %
80 % \DescribeMacro{\AddSponsor}
81 %
82 %
83 % \DescribeMacro{\sponsors}
84 %
85 %
86 % \DescribeMacro{\footergraphics}
87 %
88 %
89 % \DescribeMacro{\titleimage}
90 %
91 %
92 % \DescribeMacro{\addTitleBox}
93 %
94 %
95 % \DescribeMacro{\addTitleBoxLogo}
96 %
97 %
98 % \MaybeStop{}
99 %
100 % \section{Implementation}
101 %
102 % \iffalse
103 %<*initialization>
104 % \fi
105 % \begin{macrocode}
106 \str_const:Nn \c_@@_base_str {leaflet}
107 \tl_new:N \g_ptxcd_sponsor_pos_tl
108 \keys_define:nn {ptxcd/leaflet} {
109 sponsor .choices:nn = {title,lastfoot,manual}{\tl_gset_eq:NN \g_ptxcd_sponsor_pos_tl \l_keys_choice_tl},
110 sponsor .initial:n = title,
111 % \end{macrocode}
112 % \iffalse
113 %</initialization>
114 %<*body>
115 % \fi
116 % \begin{macrocode}
117 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{leaflet}}
118
119 \ProcessKeyOptions[ptxcd/leaflet]
120 \ProcessOptions\relax
121 \bool_if:NT \g_ptxcd_colorbacksubtitle_bool {
122 \bool_if:NF \g_ptxcd_colorbacktitle_bool {
123 \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.}
124 \msg_error:nn {ptxcd/leaflet} {incompatible-options} {colorbacksubtitle=true} {colorbacktitle=false}
125 }
126 }
127 \LoadClass[notumble]{leaflet}
128 % \end{macrocode}
129 % to workaround incompatibilities between leaflet and scrextend
130 % \begin{macrocode}
131 \let\sectfont\relax
132 \RequirePackage{scrextend}
133 \RequirePackage{scrlayer}
134 \PassOptionsToPackage{cmyk}{tudacolors}
135 \RequirePackage[paper=leaflet]{tudarules}
136 \setlength{\headheight}{1cm}%to add headline
137 \setlength{\footheight}{2mm}
138 \setmargins{10mm}{\dimexpr10mm+\headheight\relax}{10mm}{10mm}%Hardcoded, according to the guideline
139 \DeclareNewLayer[
140 head,
141 mode=picture,
142 contents=\putUL{\box_use:N \ptxcd_headrule_box}
143 ]{TUDa.flyer.headline}
144 \DeclareNewLayer[
145 foot,
146 mode=picture,
147 height=\z@,
148 voffset=\paperheight-14mm,
149 contents=\smash{\box_use:N \ptxcd_footrule_box}
150 ]{TUDa.flyer.footline}
151 \DeclareNewPageStyleByLayers{TUDa.flyer}{
152 TUDa.flyer.headline,
153 TUDa.flyer.footline,
154 }
155 % \end{macrocode}
156 % Title specific additions to pagestyle
157 %
158 % \begin{macrocode}
159 \DeclareNewLayer[textarea,mode=picture,
160 addheight=\headheight-\box_dp:N \ptxcd_headrule_box+\dp\strutbox,
161 contents={
162 \bool_if:NT \g_ptxcd_colorback_bool {\putLL{\color{identbarcolor}\rule{\layerwidth}{\layerheight}}}
163 \tl_if_empty:NTF \g_ptxcd_titleimage_code_tl
164 {\bool_if:NT \g_ptxcd_colorback_bool {\putLL{\color{identbarcolor}\rule{\layerwidth}{\layerheight}}}}
165 {\putUL{\color{identbarcolor}\raisebox{-\height}{\parbox[t]{\textwidth}{
166 \let\width\layerwidth
167 \let\height\layerheight
168 \g_ptxcd_titleimage_code_tl
169 }}}}
170 \put(\dim_to_decimal_in_unit:nn {\layerwidth-\_@@_logowidth:
171 } {\unitlength},
172 \dim_to_decimal_in_unit:nn {\layerheight-\box_ht:N \g_ptxcd_title_info_box - .5\c_ptxcd_logoheight_dim} {\unitlength}){
173 \rlap{\box_use:N \g_ptxcd_title_info_box}
174 }
175 }
176 ]{title.TUDa.image}
177 \DeclareNewLayer[textarea,background,mode=picture,
178 contents={
179 \bool_if:NT \g_ptxcd_colorbacktitle_bool {
180 \color{identbarcolor}\rule{\layerwidth}{\layerheight}
181 }
182 }
183 ]{title.TUDa.background}
184 \DeclareNewPageStyleByLayers{title.TUDa}{
185 title.TUDa.image,
186 title.TUDa.background,
187 TUDa.flyer.headline,
188 TUDa.flyer.footline,
189 }
190 \cs_new:Nn \ptxcd_Setup_Title_box: {
191 \hbox_gset:Nn \g_ptxcd_title_info_box
192 {
193 \parbox{\dim_eval:n {\_@@_logowidth: + \_@@_logosep:}}{
194 \seq_use:Nn \g_ptxcd_title_info_seq {\par\nointerlineskip\vspace{\dim_eval:n {\c_ptxcd_largerule_dim+\c_ptxcd_rulesep_dim}}}
195 }
196 }
197 }
198 % \end{macrocode}
199 % \begin{documentation}
200 % \DescribeMacro{\sectionlinesformat}
201 %
202 % \end{documentation}
203 % \begin{implementation}
204 % \begin{macro}{\sectionlinesformat}
205 % \begin{macrocode}
206 \newcommand*\sectionlinesformat[1]{%
207 \parbox{\linewidth}{
208 \rule[\ptxcd_titlerule_sep:]{\linewidth}{\g_ptxcd_titlerule_dim}\par\nointerlineskip
209 #1\strut\rule[-\dp\strutbox]{0pt}{\dp\strutbox}\par\nointerlineskip
210 \skip_vertical:n {\ptxcd_titlerule_sep: -.5\dp\strutbox}
211 \smash{\rule{\linewidth}{\g_ptxcd_titlerule_dim}}
212 }
213 }
214 % \end{macrocode}
215 % \end{macro}
216 % \end{implementation}
217 %
218 % \begin{documentation}
219 % \DescribeMacro{\raggedtitle}
220 %
221 % \end{documentation}
222 % \begin{implementation}
223 % \begin{macro}{\raggedtitle}
224 % \begin{macrocode}
225 \newcommand*{\raggedtitle}{\raggedright}
226 % \end{macrocode}
227 % \end{macro}
228 % \end{implementation}
229 %
230 % \begin{documentation}
231 % \DescribeMacro{\maketitle}
232 %
233 % \end{documentation}
234 % \begin{implementation}
235 % \begin{macro}{\maketitle}
236 % \begin{macrocode}
237 \renewcommand*{\maketitle}{
238 \def\and{,~ }
239 \hbox_gset:Nn \g_ptxcd_sponsor_box {
240 \edef\height{\noexpand\dimexpr\dim_eval:n {\_@@_logosep: + .5\c_ptxcd_logoheight_dim}}
241 \parbox[b]{\textwidth}{%
242 \rule{\linewidth}{\g_ptxcd_titlerule_dim}\par\nointerlineskip
243 \vspace{.1\c_ptxcd_logoheight_dim}
244 \seq_use:Nn \g_ptxcd_sponsors_seq {\hfill}\par
245 \addvspace{.1\c_ptxcd_logoheight_dim}
246 \ifx\@sponsors\@empty
247 \else
248 \@sponsors\par
249 \fi
250 \par\nointerlineskip\addvspace{\dim_eval:n {.1\c_ptxcd_logoheight_dim-\c_ptxcd_rulesep_dim}}
251 }
252 }
253 \begin{titlepage}
254 \def\thefootnote{\fnsymbol{footnote}}
255 \hbox_gset:Nn \g_ptxcd_title_box {
256 \parbox[t]{\linewidth}{
257 \begin{minipage}[b]{\linewidth}
258 \bool_if:NT \g_ptxcd_colorbacktitle_bool {\color{textonaccentcolor}}
259 \begin{addmargin}{3mm}
260 \raggedtitle
261 \Huge
262 \usekomafont{disposition}
263 \usekomafont{title}
264 \leavevmode%
265 \@title\strut\par
266 \vskip0pt
267 \end{addmargin}
268 \end{minipage}%
269 \par\nointerlineskip
270 \bool_if:NTF \g_ptxcd_colorbacksubtitle_bool
271 {\textcolor{white}{\rule{\linewidth}{\c_ptxcd_rulesep_dim}}}
272 {\rule{\linewidth}{\g_ptxcd_titlerule_dim}}
273 \par
274 \vspace{\c_ptxcd_rulesep_dim}
275 \begin{addmargin}{3mm}
276 \bool_if:NT \g_ptxcd_colorbacksubtitle_bool {\color{textonaccentcolor}}
277 \raggedtitle
278 \usekomafont{disposition}
279 {\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle\par}\fi}%
280 {%
281 \usekomafont{author}
282 \lineskip 0.75em
283 \@author
284 \par
285 }%
286 {\usekomafont{date}{\@date\par}}%
287 \end{addmargin}
288 \nointerlineskip
289 \vspace{\c_ptxcd_rulesep_dim}
290 \bool_if:NT \g_ptxcd_colorbacktitle_bool
291 {
292 \textcolor{white}{\rule{\linewidth}{\c_ptxcd_rulesep_dim}}\par\nointerlineskip
293 }
294 \rule{\linewidth}{\g_ptxcd_titlerule_dim}\par
295 }
296 }
297 \ptxcd_adjust_titlepage_style:
298 \par
299 \vspace*{\dimexpr.5\c_ptxcd_logoheight_dim-\topskip}
300 \box_use:N \g_ptxcd_title_box
301 \par
302 \vfill\null
303 \if@twoside
304 \@tempswatrue
305 \expandafter\ifnum \@nameuse{scr@[email protected]}>\scr@compatibility\relax
306 \else
307 \ifx\@uppertitleback\@empty\ifx\@lowertitleback\@empty
308 \@tempswafalse
309 \fi\fi
310 \fi
311 \fi
312 \end{titlepage}
313 \setcounter{footnote}{0}%
314 \global\let\and\relax
315 }
316 % \end{macrocode}
317 % \end{macro}
318 % \end{implementation}
319 %
320 % \begin{macrocode}
321 \cs_set:Nn \ptxcd_adjust_titlepage_style: {
322 \dim_set:Nn \l_tmpa_dim {1\c_ptxcd_logoheight_dim}%\fp_to_dim:n {2.8\baselineskip}}
323 \dim_compare:nT {\box_ht:N \g_ptxcd_title_box < \l_tmpa_dim} {
324 \skip_set:Nn \g_ptxcd_title_fill_skip {\dim_eval:n {\l_tmpa_dim - \box_ht:N \g_ptxcd_title_box}}
325 }
326 \dim_set:Nn \l_tmpa_dim {
327 +\box_ht:N \g_ptxcd_title_box
328 +.5\c_ptxcd_logoheight_dim
329 +\box_dp:N \g_ptxcd_title_box
330 +\g_ptxcd_title_fill_skip
331 }
332 \ModifyLayer[
333 addvoffset=\l_tmpa_dim,
334 addheight= -\l_tmpa_dim
335 ]{title.TUDa.image}
336 \DeclareNewLayer[clone=TUDa.flyer.footline,
337 mode=picture,
338 align=bl,
339 height=\box_ht:N \g_ptxcd_sponsor_box + \box_dp:N \g_ptxcd_sponsor_box,
340 addvoffset=-\dp\strutbox,
341 contents=\raisebox{\depth}{\box_use:N \g_ptxcd_sponsor_box}
342 ]
343 {title.TUDa.sponsor}
344 \exp_args:Nx \tl_if_eq:nnT {\g_ptxcd_sponsor_pos_tl} {title} {
345 \AddLayersToPageStyle{title.TUDa}{title.TUDa.sponsor}
346 \ModifyLayer[
347 addheight=-\box_ht:N \g_ptxcd_sponsor_box -\box_dp:N \g_ptxcd_sponsor_box-\dp\strutbox
348 ]{title.TUDa.image}
349 }
350 \ModifyLayer[
351 addvoffset={-\dim_eval:n {\headheight -\box_ht:N \ptxcd_headrule_box-\box_dp:N \ptxcd_headrule_box }},
352 height={
353 \bool_if:NT \g_ptxcd_colorbacksubtitle_bool {\box_dp:N \g_ptxcd_title_box}
354 +\box_ht:N \g_ptxcd_title_box+\g_ptxcd_title_fill_skip+.5\c_ptxcd_logoheight_dim+
355 \headheight -\box_ht:N \ptxcd_headrule_box-\box_dp:N \ptxcd_headrule_box
356 }
357 ]{title.TUDa.background}
358 \AddLayersToPageStyle{title.TUDa}{title.TUDa.background}
359 \thispagestyle{title.TUDa}
360 \nointerlineskip
361 \ptxcd_Setup_Title_box:
362 \par
363 \vspace*{\skip_use:N \g_ptxcd_title_fill_skip}
364 \setlength{\fboxsep}{\z@}
365 }
366 % \end{macrocode}
367 % \begin{macrocode}
368 \pagestyle{TUDa.flyer}
369 \RequirePackage{tudafonts}
370 % \end{macrocode}
371 % \begin{documentation}
372 % \DescribeMacro{\familydefault}
373 %
374 % \end{documentation}
375 % \begin{implementation}
376 % \begin{macro}{\familydefault}
377 % \begin{macrocode}
378 \renewcommand*{\familydefault}{\sfdefault}
379 % \end{macrocode}
380 % \end{macro}
381 % \end{implementation}
382 %
383 % Titlepage font setup
384 % compatibility after disposition was removed from scrextend
385 % \begin{macrocode}
386 \expandafter\ifx\csname scr@fnt@disposition\endcsname\relax
387 \newkomafont{disposition}
388 \fi
389 \setkomafont{disposition}{\bfseries}
390 \setkomafont{title}{\Huge}
391 \setkomafont{subtitle}{}
392 \setkomafont{date}{}
393 \setkomafont{author}{}
394 \newkomafont{institution}{}
395 % \end{macrocode}
396 % Adjust section font setup to be komafont compatible
397 % \begin{macrocode}
398 \newkomafont{section}{}
399 \newkomafont{subsection}{}
400 \newkomafont{subsubsection}{}
401 % \end{macrocode}
402 % \begin{documentation}
403 % \DescribeMacro{\section}
404 %
405 % \end{documentation}
406 % \begin{implementation}
407 % \begin{macrocode}
408 \renewcommand\section{\@startsection{section}{1}{\z@}%
409 {-3.5ex \@plus -.75ex}%
410 {1ex}%
411 {\usekomafont{disposition}\usekomafont{section}\sectfont}}
412 \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
413 {-2.5ex plus -.5ex}%
414 {1\p@}%
415 {\usekomafont{disposition}\usekomafont{subsection}\sectfont}}
416 \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
417 {-2.5ex plus -.5ex}%
418 {-1em}%
419 {\usekomafont{disposition}\usekomafont{subsubsection}\sectfont}}
420 \clist_map_inline:nn {section, subsection, subsubsection} {
421 \cs_set_eq:cc {ptxcd_save_#1} {#1}
422 \exp_args:Nc \RenewDocumentCommand{#1}{sO{##3}m}{
423 \IfBooleanTF{##1}{
424 \use:c {ptxcd_save_#1}*{\sectionlinesformat{##3}}
425 }{
426 \use:c {ptxcd_save_#1}[##2]{\sectionlinesformat{##3}}
427 }
428 }
429 }
430 % \end{macrocode}
431 % \end{implementation}
432 % \begin{macrocode}
433 \cs_new:Nn \ptxcd_titlerule_sep: {\the\dp\strutbox}
434 % \end{macrocode}
435 % \begin{documentation}
436 % \DescribeMacro{\subtitle}
437 %
438 % \end{documentation}
439 % \begin{implementation}
440 % \begin{macro}{\subtitle}
441 % \begin{macrocode}
442 \def\subtitle#1{\def\@subtitle{#1}}
443 % \end{macrocode}
444 % \end{macro}
445 % \end{implementation}
446 %
447 % \begin{macrocode}
448 \subtitle{}
449 \seq_new:N \g_ptxcd_sponsors_seq
450 % \end{macrocode}
451 % \begin{documentation}
452 % \DescribeMacro{\AddSponsor}
453 %
454 % \end{documentation}
455 % \begin{implementation}
456 % \begin{macro}{\AddSponsor}
457 % \begin{macrocode}
458 \def\AddSponsor{\seq_gput_right:Nn \g_ptxcd_sponsors_seq}
459 % \end{macrocode}
460 % \end{macro}
461 % \end{implementation}
462 %
463 % \begin{documentation}
464 % \DescribeMacro{\sponsors}
465 %
466 % \end{documentation}
467 % \begin{implementation}
468 % \begin{macro}{\sponsors}
469 % \begin{macrocode}
470 \def\sponsors#1{\def\@sponsors{#1}}
471 % \end{macrocode}
472 % \end{macro}
473 % \end{implementation}
474 %
475 % \begin{macrocode}
476 \sponsors{}
477 \box_new:N \g_ptxcd_sponsor_box
478 % \end{macrocode}
479 % \begin{documentation}
480 % \DescribeMacro{\footergraphics}
481 %
482 % \end{documentation}
483 % \begin{implementation}
484 % \begin{macro}{\footergraphics}
485 % \begin{macrocode}
486 \newcommand*{\footergraphics}[1]{
487 \begingroup
488 \let\height\g_ptxcd_footheight_dim
489 \hbox_gset:Nn \g_ptxcd_footergraphics_box {#1}
490 \endgroup
491 }
492 % \end{macrocode}
493 % \end{macro}
494 % \end{implementation}
495 %
496 % \begin{macrocode}
497 \tl_new:N \g_ptxcd_titleimage_code_tl
498 \tl_gset_eq:NN \g_ptxcd_titleimage_code_tl \c_empty_tl
499 % \end{macrocode}
500 % \begin{documentation}
501 % \DescribeMacro{\titleimage}
502 %
503 % \end{documentation}
504 % \begin{implementation}
505 % \begin{macro}{\titleimage}
506 % \begin{macrocode}
507 \newcommand{\titleimage}[1]{\tl_gset:Nn \g_ptxcd_titleimage_code_tl {#1}}
508 % \end{macrocode}
509 % \end{macro}
510 % \end{implementation}
511 %
512 % \begin{macrocode}
513 \author{}%to remove warning if no author given
514 \box_new:N \g_ptxcd_title_box
515 \skip_new:N \g_ptxcd_title_fill_skip
516 \seq_new:N \g_ptxcd_title_info_seq
517 \box_new:N \g_ptxcd_title_info_box
518 \cs_new:Nn \ptxcd_make_title_info_box:n {
519 \setlength{\fboxsep}{1.5mm}%
520 \colorbox{InfoBox}{
521 \makebox[\dim_eval:n {\_@@_logowidth:-\fboxsep}][r]{
522 \parbox{2\c_ptxcd_logoheight_dim}{
523 \usekomafont{institution}
524 \raggedright%
525 #1
526 }}}
527 }
528 \cs_new:Nn \ptxcd_make_title_logo_box:n {
529 \setlength{\fboxsep}{\z@}
530 \parbox{\_@@_logowidth:}{
531 \colorbox{InfoBox}{
532 \rlap{
533 \makebox[\dim_eval:n {\_@@_logowidth: + \_@@_logosep:}][r]{
534 \colorbox{InfoBox}{#1\hspace{.3\c_ptxcd_logoheight_dim}}
535 }
536 }
537 }
538 }
539 }
540 % \end{macrocode}
541 % \begin{documentation}
542 % \DescribeMacro{\addTitleBox}
543 %
544 % \end{documentation}
545 % \begin{implementation}
546 % \begin{macro}{\addTitleBox}
547 % \begin{macrocode}
548 \newcommand{\addTitleBox}[1]{\seq_gput_right:Nn \g_ptxcd_title_info_seq {\ptxcd_make_title_info_box:n {#1}}}
549 % \end{macrocode}
550 % \end{macro}
551 % \end{implementation}
552 %
553 % \begin{documentation}
554 % \DescribeMacro{\addTitleBoxLogo}
555 %
556 % \end{documentation}
557 % \begin{implementation}
558 % \begin{macro}{\addTitleBoxLogo}
559 % \begin{macrocode}
560 \NewDocumentCommand{\addTitleBoxLogo}{sm}{
561 \IfBooleanTF{#1}{
562 \seq_gput_right:Nn \g_ptxcd_title_info_seq {
563 \ptxcd_make_title_logo_box:n {#2}
564 }
565 }{
566 \seq_gput_right:Nn \g_ptxcd_title_info_seq {
567 \ptxcd_make_title_logo_box:n {
568 \hbox_set:Nn \l_tmpa_box {
569 \includegraphics[width=1.5\c_ptxcd_logoheight_dim]{#2}
570 }
571 \dim_set:Nn \l_tmpa_dim {2\c_ptxcd_logoheight_dim/3}
572 \dim_compare:nTF {\box_ht:N \l_tmpa_box > \l_tmpa_dim}
573 {\includegraphics[width=\l_tmpa_dim]{#2}}
574 {\box_use:N \l_tmpa_box}
575 }
576 }
577 }
578 }
579 % \end{macrocode}
580 % \end{macro}
581 % \end{implementation}
582 %
583 % \begin{macrocode}
584 \addTitleBoxLogo*{\makebox[\linewidth][l]{\_@@_insert_logo:}}
585 \date{}
586 \let\insertSponsors\relax
587 \str_case:Vn \g_ptxcd_sponsor_pos_tl {
588 {lastfoot}{
589 \AtEndDocument{
590 \par\vspace*{\fill}
591 \leavevmode\raisebox{\dimexpr\depth-\baselineskip}[0pt][0pt]{
592 \box_use:N \g_ptxcd_sponsor_box
593 }
594 }
595 }
596 {manual} {
597 \renewcommand*{\insertSponsors}{\par\vfill\leavevmode\box_use:N \g_ptxcd_sponsor_box\par\nobreak\nointerlineskip\rule{\linewidth}{\g_ptxcd_titlerule_dim}
598 }
599 }
600 }
601 \file_if_exist_input:n {\g_@@_config_prefix_tl\g_ptxcd_department_str.cfg}
602 \ptxcd_makeheadrule[color=identbarcolor]{ptxcd_headrule}
603 \ptxcd_makefootrule{ptxcd_footrule}
604 \endinput
605 % \end{macrocode}
606
607 %
608 % \iffalse
609 %</body>
610 % \fi
611 %
612 % \Finale
613 % \fi^^A No documentation on this
614 \endinput