| 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{tudasciposter.dtx} |
| 34 |
[2025-11-13 v4.05 Scientific Poster Layout for TUDa-CI] |
| 35 |
\typeout{***********************************************************} |
| 36 |
\typeout{No documentation included in this file! Please see tuda-ci.pdf for more information and DEMO-TUDaSciPoster.tex/.pdf for an example of use.} |
| 37 |
\typeout{***********************************************************} |
| 38 |
\stop |
| 39 |
%</driver> |
| 40 |
%<@@=ptxcd> |
| 41 |
%<*class&initialization> |
| 42 |
\NeedsTeXFormat{LaTeX2e}[2022/06/01] |
| 43 |
\ProvidesExplClass{tudasciposter}{2025-11-13}{4.05}{Scientific Poster Layout for TU Darmstadt} |
| 44 |
%</class&initialization> |
| 45 |
% |
| 46 |
%<*driver>^^A Preparation for real docstrip documentation |
| 47 |
\providecommand*{\TUDaDocDTXfiles}{tudasciposter.dtx} |
| 48 |
\input{tuda-ci.dtx} |
| 49 |
%</driver> |
| 50 |
% \fi |
| 51 |
% |
| 52 |
% \changes{v4.00}{2025-01-26}{Converted to DTX file} |
| 53 |
% |
| 54 |
% \DoNotIndex{\newcommand,\newenvironment} |
| 55 |
% |
| 56 |
% |
| 57 |
% \DescribeMacro{\title} |
| 58 |
% |
| 59 |
% |
| 60 |
% \DescribeMacro{\footergraphics} |
| 61 |
% |
| 62 |
% |
| 63 |
% \DescribeMacro{\footer} |
| 64 |
% |
| 65 |
% |
| 66 |
% \DescribeMacro{\footerqrcode} |
| 67 |
% |
| 68 |
% |
| 69 |
% \DescribeMacro{\Metadata} |
| 70 |
% |
| 71 |
% |
| 72 |
% \DescribeMacro{\author} |
| 73 |
% |
| 74 |
% |
| 75 |
% \DescribeMacro{\authorandname} |
| 76 |
% |
| 77 |
% |
| 78 |
% \DescribeMacro{\titlegraphic} |
| 79 |
% |
| 80 |
% |
| 81 |
% \DescribeMacro{\institute} |
| 82 |
% |
| 83 |
% |
| 84 |
% \MaybeStop{} |
| 85 |
% |
| 86 |
% \section{Implementation} |
| 87 |
% |
| 88 |
% \iffalse |
| 89 |
%<*class&initialization> |
| 90 |
% \fi |
| 91 |
% \begin{macrocode} |
| 92 |
\prop_new:N \g_ptxcd_clsopts_prop |
| 93 |
\tl_new:N \g_ptxcd_boxstyle_tl |
| 94 |
\int_new:N \g_ptxcd_paper_int |
| 95 |
\str_new:N \g_ptxcd_department_str |
| 96 |
\str_const:Nn \c_@@_base_str {sciposter} |
| 97 |
\keys_define:nn {ptxcd/poster} { |
| 98 |
titletext .code:n = {\PassOptionsToPackage{text =#1}{tudacolors}}, |
| 99 |
footer .bool_gset:N = \g_ptxcd_poster_foot_bool, |
| 100 |
footer .default:n = true, |
| 101 |
footer .initial:n = true, |
| 102 |
thanks .tl_gset:N = \g_ptxcd_footnote_label_tl, |
| 103 |
thanks .initial:n = arabic*, |
| 104 |
boxstyle .choice:, |
| 105 |
boxstyle / official .code:n = \tl_gset:Nn \g_ptxcd_boxstyle_tl {TUDa}, |
| 106 |
boxstyle / colored .code:n= \tl_gset:Nn \g_ptxcd_boxstyle_tl {TUDa-colored}, |
| 107 |
boxstyle / boxed .code:n= \tl_gset:Nn \g_ptxcd_boxstyle_tl {TUDa-boxed}, |
| 108 |
boxstyle /default .meta:n = {boxstyle=official}, |
| 109 |
boxstyle .initial:n = default, |
| 110 |
unknown .code:n = {\prop_gput:NVn \g_ptxcd_clsopts_prop \l_keys_key_tl {#1}}, |
| 111 |
fontsize .tl_gset:N = \g_ptxcd_fontsize_tl, |
| 112 |
titlesepline .bool_gset:N = \g_ptxcd_titlesepline_bool, |
| 113 |
titlesepline .initial:n = true, |
| 114 |
%</class&initialization> |
| 115 |
%<gobble>} |
| 116 |
%<*class&packages> |
| 117 |
\ProcessKeyOptions[ptxcd/poster] |
| 118 |
\dim_new:N \g_ptxcd_margin_dim |
| 119 |
\bool_if:NTF \g_ptxcd_smalltitle_bool { |
| 120 |
\file_input:n {tuda-a\int_use:N \g_ptxcd_paper_int paper.clo} |
| 121 |
\ptxcd_setup_title_sizes: |
| 122 |
\file_input:n {tuda-a\int_use:N \g_ptxcd_paper_int paper.clo} |
| 123 |
\ptxcd_setup_base_sizes: |
| 124 |
}{ |
| 125 |
\int_gdecr:N \g_ptxcd_paper_int |
| 126 |
\file_input:n {tuda-a\int_use:N \g_ptxcd_paper_int paper.clo} |
| 127 |
\ptxcd_setup_title_sizes: |
| 128 |
\ptxcd_setup_base_sizes: |
| 129 |
} |
| 130 |
\prop_gput:NnV \g_ptxcd_clsopts_prop {fontsize} \g_ptxcd_fontsize_tl |
| 131 |
\prop_map_inline:Nn \g_ptxcd_clsopts_prop { |
| 132 |
\tl_if_empty:nTF {#2} |
| 133 |
{\PassOptionsToClass{#1}{scrartcl}} |
| 134 |
{\clist_map_inline:nn {#2} {\PassOptionsToClass{#1=##1}{scrartcl}}} |
| 135 |
} |
| 136 |
\ExplSyntaxOff |
| 137 |
\PassOptionsToPackage{typeareawarninfolimit=-1,DIV=10}{typearea} |
| 138 |
\LoadClass[parskip=full-]{scrartcl} |
| 139 |
\ExplSyntaxOn |
| 140 |
% \end{macrocode} |
| 141 |
% \iffalse |
| 142 |
%</class&packages> |
| 143 |
%<*class&body> |
| 144 |
% \fi |
| 145 |
% \begin{macrocode} |
| 146 |
\ExplSyntaxOff |
| 147 |
\RequirePackage{tudafonts} |
| 148 |
\RequirePackage{tudacolors} |
| 149 |
\RequirePackage[margin=0pt]{geometry} |
| 150 |
\RequirePackage{tcolorbox} |
| 151 |
\tcbuselibrary{poster} |
| 152 |
\RequirePackage[mode=tikz]{tudarules} |
| 153 |
\RequirePackage{qrcode} |
| 154 |
\ExplSyntaxOn |
| 155 |
|
| 156 |
\renewcommand*{\familydefault}{\sfdefault} |
| 157 |
\setkomafont{title}{ |
| 158 |
\color{titlefgcolor} |
| 159 |
\expandafter\fontsize\ptxcd_title_fontsize:\selectfont |
| 160 |
\bfseries |
| 161 |
} |
| 162 |
\setkomafont{author}{\bfseries} |
| 163 |
\setkomafont{captionlabel}{\bfseries} |
| 164 |
\setkomafont{disposition}{\sffamily\bfseries} |
| 165 |
% \end{macrocode} |
| 166 |
% end of font adjustments |
| 167 |
% |
| 168 |
% \begin{macrocode} |
| 169 |
\dim_const:Nn \c_ptxcd_headrule_ht_dim {\c_ptxcd_rulesep_dim +\c_ptxcd_largerule_dim + \c_ptxcd_smallrule_dim} |
| 170 |
% \end{macrocode} |
| 171 |
% Setup title |
| 172 |
% \begin{macrocode} |
| 173 |
\box_new:N \l_ptxcd_tmpa_box |
| 174 |
\box_new:N \g_ptxcd_titlegraphic_box |
| 175 |
\box_new:N \g_ptxcd_title_box |
| 176 |
\box_new:N \g_ptxcd_author_box |
| 177 |
\box_new:N \g_ptxcd_credit_box |
| 178 |
\tl_new:N \g_ptxcd_thanks_tl |
| 179 |
% \end{macrocode} |
| 180 |
% \begin{documentation} |
| 181 |
% \DescribeMacro{\ptxcd_title@footnote} |
| 182 |
% |
| 183 |
% \end{documentation} |
| 184 |
% \begin{implementation} |
| 185 |
% \begin{macro}{\ptxcd_title@footnote} |
| 186 |
% \begin{macrocode} |
| 187 |
\newcommand*{\ptxcd_title@footnote}[2][1]{ |
| 188 |
\begingroup |
| 189 |
\ptxcd_def_footnotelabel: |
| 190 |
\footnotemark[#1]\,#2\quad |
| 191 |
\endgroup |
| 192 |
} |
| 193 |
% \end{macrocode} |
| 194 |
% \end{macro} |
| 195 |
% \end{implementation} |
| 196 |
% |
| 197 |
% \begin{macrocode} |
| 198 |
\tl_greplace_all:Nnn \g_ptxcd_footnote_label_tl {*} {{footnote}} |
| 199 |
\clist_map_inline:nn {alph, arabic, fnsymbol, Alph, roman, Roman} { |
| 200 |
\tl_greplace_all:Nnn \g_ptxcd_footnote_label_tl {#1} {\use:c {#1}} |
| 201 |
} |
| 202 |
\cs_set:Nn \ptxcd_def_footnotelabel: { |
| 203 |
\renewcommand*{\thefootnote}{\g_ptxcd_footnote_label_tl} |
| 204 |
} |
| 205 |
\pagestyle{empty} |
| 206 |
% \end{macrocode} |
| 207 |
% \begin{documentation} |
| 208 |
% \DescribeMacro{\title} |
| 209 |
% |
| 210 |
% \end{documentation} |
| 211 |
% \begin{implementation} |
| 212 |
% \begin{macro}{\title} |
| 213 |
% \begin{macrocode} |
| 214 |
\renewcommand*{\title}[1]{\gdef \@title {#1}} |
| 215 |
% \end{macrocode} |
| 216 |
% \end{macro} |
| 217 |
% \end{implementation} |
| 218 |
% |
| 219 |
% \begin{macrocode} |
| 220 |
\dim_new:N \g_ptxcd_footheight_dim |
| 221 |
\dim_gset:Nn \g_ptxcd_footheight_dim {0.06\paperwidth}% |
| 222 |
\box_new:N \g_ptxcd_footergraphics_box |
| 223 |
% \end{macrocode} |
| 224 |
% \begin{documentation} |
| 225 |
% \DescribeMacro{\footergraphics} |
| 226 |
% |
| 227 |
% \end{documentation} |
| 228 |
% \begin{implementation} |
| 229 |
% \begin{macro}{\footergraphics} |
| 230 |
% \begin{macrocode} |
| 231 |
\newcommand*{\footergraphics}[1]{ |
| 232 |
\begingroup |
| 233 |
\let\height\g_ptxcd_footheight_dim |
| 234 |
\hbox_gset:Nn \g_ptxcd_footergraphics_box {#1} |
| 235 |
\endgroup |
| 236 |
} |
| 237 |
% \end{macrocode} |
| 238 |
% \end{macro} |
| 239 |
% \end{implementation} |
| 240 |
% |
| 241 |
% \begin{macrocode} |
| 242 |
\tl_new:N \g_ptxcd_poster_foot_tl |
| 243 |
% \end{macrocode} |
| 244 |
% \begin{documentation} |
| 245 |
% \DescribeMacro{\footer} |
| 246 |
% |
| 247 |
% \end{documentation} |
| 248 |
% \begin{implementation} |
| 249 |
% \begin{macro}{\footer} |
| 250 |
% \begin{macrocode} |
| 251 |
\newcommand{\footer}[1]{ |
| 252 |
\tl_gset:Nn \g_ptxcd_poster_foot_tl {#1} |
| 253 |
} |
| 254 |
% \end{macrocode} |
| 255 |
% \end{macro} |
| 256 |
% \end{implementation} |
| 257 |
% |
| 258 |
% \begin{macrocode} |
| 259 |
\tl_new:N \g_ptxcd_poster_qrcode_tl |
| 260 |
\msg_new:nnnn {tudapub} {biblatex-required}{ |
| 261 |
You~tried~to~use~#1.\\ |
| 262 |
This~feature~requires~the~biblatex~package. |
| 263 |
} { |
| 264 |
Try~to~remove~the~star~or~load~biblatex. |
| 265 |
} |
| 266 |
% \end{macrocode} |
| 267 |
% \begin{documentation} |
| 268 |
% \DescribeMacro{\footerqrcode} |
| 269 |
% |
| 270 |
% \end{documentation} |
| 271 |
% \begin{implementation} |
| 272 |
% \begin{macro}{\footerqrcode} |
| 273 |
% \begin{macrocode} |
| 274 |
\NewDocumentCommand{\footerqrcode}{sm}{ |
| 275 |
\IfBooleanTF {#1} { |
| 276 |
\cs_if_exist:NTF \blx@blxinit { |
| 277 |
\begingroup |
| 278 |
\blx@blxinit |
| 279 |
\entrydata{#2}{ |
| 280 |
\tl_gset:Nx \g_ptxcd_poster_qrcode_tl{\thefield{url}} |
| 281 |
} |
| 282 |
\endgroup |
| 283 |
}{ |
| 284 |
\msg_error:nnx {tudapub} {biblatex-required} {\use:c{footerqrcode*}} |
| 285 |
} |
| 286 |
}{ |
| 287 |
\tl_gset:Nn \g_ptxcd_poster_qrcode_tl {#2} |
| 288 |
} |
| 289 |
} |
| 290 |
% \end{macrocode} |
| 291 |
% \end{macro} |
| 292 |
% \end{implementation}% |
| 293 |
% redefine \author to manage \and and \thanks |
| 294 |
% |
| 295 |
% \begin{macrocode} |
| 296 |
\seq_new:N \g_ptxcd_author_seq |
| 297 |
% \end{macrocode} |
| 298 |
% \begin{documentation} |
| 299 |
% \DescribeMacro{\author} |
| 300 |
% |
| 301 |
% \end{documentation} |
| 302 |
% \begin{implementation} |
| 303 |
% \begin{macro}{\author} |
| 304 |
% \begin{macrocode} |
| 305 |
\renewcommand*\author[1]{ |
| 306 |
\seq_gset_split:Nnn \g_ptxcd_author_seq {\and} {#1} |
| 307 |
} |
| 308 |
% \end{macrocode} |
| 309 |
% \end{macro} |
| 310 |
% \end{implementation} |
| 311 |
% |
| 312 |
% \begin{macrocode} |
| 313 |
\msg_new:nnn{tudasciposter} {unknown-language} { |
| 314 |
You~selected~an~unknown~language~#1.\\ |
| 315 |
The~Variable~#2~does~not~have~a~predefined~value.\\ |
| 316 |
Ensure~to~redefine~#2~to~match~your~language.\\ |
| 317 |
Otherwise~the~ngerman~vaue~#3~will~be~used. |
| 318 |
} |
| 319 |
% \end{macrocode} |
| 320 |
% \begin{documentation} |
| 321 |
% \DescribeMacro{\authorandname} |
| 322 |
% |
| 323 |
% \end{documentation} |
| 324 |
% \begin{implementation} |
| 325 |
% \begin{macro}{\authorandname} |
| 326 |
% \begin{macrocode} |
| 327 |
\providecommand*\authorandname{ |
| 328 |
\msg_warning:nnxxx{tudasciposter} {unknown-language} |
| 329 |
{\languagename} {\exp_not:N \authorandname} {und} |
| 330 |
und |
| 331 |
} |
| 332 |
% \end{macrocode} |
| 333 |
% \end{macro} |
| 334 |
% \end{implementation} |
| 335 |
% |
| 336 |
% \begin{macrocode} |
| 337 |
\defcaptionname{ngerman, german}{\authorandname}{und} |
| 338 |
\defcaptionname{english, USenglish, american, UKenglish, british}{\authorandname}{and} |
| 339 |
% \end{macrocode} |
| 340 |
% \begin{documentation} |
| 341 |
% \DescribeMacro{\@author} |
| 342 |
% |
| 343 |
% \end{documentation} |
| 344 |
% \begin{implementation} |
| 345 |
% \begin{macro}{\@author} |
| 346 |
% \begin{macrocode} |
| 347 |
\renewcommand*{\@author}{ |
| 348 |
\seq_use:Nnnn \g_ptxcd_author_seq {~\authorandname{}~} {,~} {~\&~} |
| 349 |
} |
| 350 |
% \end{macrocode} |
| 351 |
% \end{macro} |
| 352 |
% \end{implementation} |
| 353 |
% |
| 354 |
% \begin{documentation} |
| 355 |
% \DescribeMacro{\titlegraphic} |
| 356 |
% |
| 357 |
% \end{documentation} |
| 358 |
% \begin{implementation} |
| 359 |
% \begin{macro}{\titlegraphic} |
| 360 |
% \begin{macrocode} |
| 361 |
\newcommand\titlegraphic[1]{\def\@titlegraphic{#1}} |
| 362 |
% \end{macrocode} |
| 363 |
% \end{macro} |
| 364 |
% \end{implementation} |
| 365 |
% |
| 366 |
% \begin{macrocode} |
| 367 |
\titlegraphic{} |
| 368 |
% \end{macrocode} |
| 369 |
% \begin{documentation} |
| 370 |
% \DescribeMacro{\institute} |
| 371 |
% |
| 372 |
% \end{documentation} |
| 373 |
% \begin{implementation} |
| 374 |
% \begin{macro}{\institute} |
| 375 |
% \begin{macrocode} |
| 376 |
\newcommand{\institute}[1]{\def\@institute{#1}} |
| 377 |
% \end{macrocode} |
| 378 |
% \end{macro} |
| 379 |
% \end{implementation} |
| 380 |
% |
| 381 |
% \begin{macrocode} |
| 382 |
\institute{} |
| 383 |
% \end{macrocode} |
| 384 |
% Language dependent configuration |
| 385 |
% \begin{macrocode} |
| 386 |
\AtBeginDocument{ |
| 387 |
\@ifpackageloaded{babel}{ |
| 388 |
\addto\extrasngerman{\def\authorandname{und}} |
| 389 |
\addto\extrasgerman{\def\authorandname{und}} |
| 390 |
\addto\extrasenglish{\def\authorandname{and}} |
| 391 |
\addto\extrasbritish{\def\authorandname{and}} |
| 392 |
\addto\captionsngerman{\renewcommand{\figurename}{Abb.}} |
| 393 |
\addto\captionsgerman{\renewcommand{\figurename}{Abb.}} |
| 394 |
\addto\captionsenglish{\renewcommand{\figurename}{Fig.}} |
| 395 |
\addto\captionsbritish{\renewcommand{\figurename}{Fig.}} |
| 396 |
}{} |
| 397 |
} |
| 398 |
\newlength{\contentwidth} |
| 399 |
\setlength{\contentwidth}{\dimexpr\paperwidth-2\g_ptxcd_margin_dim\relax} |
| 400 |
\newlength{\contentheight} |
| 401 |
\cs_new:Nn \_@@_logo_code:n { |
| 402 |
\node[anchor=north~east,inner~sep=0pt,minimum~width=\dim_eval:n {\_@@_logowidth: + \_@@_logosep:}](#1) at ([xshift=\_@@_logosep:,yshift=-.5\c_ptxcd_logoheight_dim]identbar.south~east){ |
| 403 |
\_@@_insert_logo: |
| 404 |
}; |
| 405 |
} |
| 406 |
\tcbposterset{ |
| 407 |
coverage = |
| 408 |
{ |
| 409 |
spread, |
| 410 |
parbox=false, |
| 411 |
bottom=\dim_eval:n {\g_ptxcd_margin_dim |
| 412 |
\bool_if:NT \g_ptxcd_poster_foot_bool {+\g_ptxcd_footheight_dim + 3\c_ptxcd_rulesep_dim} |
| 413 |
}, |
| 414 |
left=\g_ptxcd_margin_dim, |
| 415 |
right=\g_ptxcd_margin_dim, |
| 416 |
before= {\ptxcd_poster_setup_title_box:}, |
| 417 |
top= \dim_eval:n { |
| 418 |
\bool_if:NF \g_ptxcd_colorback_bool {1.5} |
| 419 |
\g_ptxcd_margin_dim |
| 420 |
+\box_ht:N \ptxcd_headrule_box |
| 421 |
+\box_dp:N \ptxcd_headrule_box |
| 422 |
+\g_ptxcd_titleblock_dim |
| 423 |
+4\c_ptxcd_rulesep_dim |
| 424 |
+\box_ht:N \g_ptxcd_author_box |
| 425 |
+\box_dp:N \g_ptxcd_author_box |
| 426 |
}, |
| 427 |
overlay={% |
| 428 |
\coordinate(topleft) at ([xshift=\g_ptxcd_margin_dim, yshift=-\g_ptxcd_margin_dim]current~page.north~ west); |
| 429 |
\coordinate(topright) at ([xshift=-\g_ptxcd_margin_dim, yshift=-\g_ptxcd_margin_dim]current~page.north~ east); |
| 430 |
\coordinate(bottomleft) at ([xshift=\g_ptxcd_margin_dim, yshift=\g_ptxcd_margin_dim]current~page.south~ west); |
| 431 |
\coordinate(bottomright) at ([xshift=-\g_ptxcd_margin_dim, yshift=\g_ptxcd_margin_dim]current~page.south~ east); |
| 432 |
\dim_gset:Nn \g_ptxcd_titleindent_dim {\bool_if:NTF \g_ptxcd_colorback_bool {3\c_ptxcd_rulesep_dim} {\c_zero_dim}} |
| 433 |
\node[inner~sep=0pt, anchor=north~west](identbar) at (topleft){\ptxcd_headrule}; |
| 434 |
\bool_if:NTF \g_ptxcd_colorback_bool |
| 435 |
\fill \path [identbarcolor] |
| 436 |
(identbar.south~east)rectangle([yshift=-\g_ptxcd_titleblock_dim]identbar.south~west) coordinate(bottomlefttitleblock); |
| 437 |
\_@@_logo_code:n {TUDalogo} |
| 438 |
\node[inner~sep=0pt,text~width=\_@@_logowidth:,align=right,anchor=north~west,](titlegraphic) at ([yshift=-\c_ptxcd_rulesep_dim]TUDalogo.south~west){\box_use:N \g_ptxcd_titlegraphic_box}; |
| 439 |
\node[anchor=north~west,inner~sep=0pt,] (title) at ([ |
| 440 |
xshift=\g_ptxcd_titleindent_dim,yshift=-.5\c_ptxcd_logoheight_dim]identbar.south~west) {\box_use:N \g_ptxcd_title_box}; |
| 441 |
\bool_if:NT \g_ptxcd_titlesepline_bool |
| 442 |
{\draw[line~ width=.5\c_ptxcd_smallrule_dim](bottomlefttitleblock)--++(\contentwidth,0);} |
| 443 |
\node[anchor=north~west, inner~xsep=0pt, inner~ ysep=\c_ptxcd_rulesep_dim] (author) at ([xshift=\g_ptxcd_titleindent_dim]bottomlefttitleblock) {\box_use:N \g_ptxcd_author_box}; |
| 444 |
\draw[line~ width=.5\c_ptxcd_smallrule_dim](author.south-|identbar.west)--++(\contentwidth,0); |
| 445 |
\bool_if:NT \g_ptxcd_poster_foot_bool {\_@@_typeset_footer:} |
| 446 |
}} |
| 447 |
} |
| 448 |
\cs_new:Nn \_@@_typeset_footer: { |
| 449 |
\coordinate(lastpos) at (bottomright); |
| 450 |
\tl_if_empty:NF \g_ptxcd_poster_qrcode_tl |
| 451 |
{ |
| 452 |
\node[anchor=south~east, inner~sep=\z@] (qrcode)at (lastpos) |
| 453 |
{ |
| 454 |
\exp_args:NnV \use:n {\qrcode[height=\dim_use:N \g_ptxcd_footheight_dim]}\g_ptxcd_poster_qrcode_tl |
| 455 |
}; |
| 456 |
\coordinate (lastpos) at (qrcode.south~west); |
| 457 |
} |
| 458 |
\box_if_empty:NF \g_ptxcd_footergraphics_box { |
| 459 |
\node[anchor=south~east, inner~sep=\z@] at (lastpos) { |
| 460 |
\accentfont |
| 461 |
\box_use:N \g_ptxcd_footergraphics_box |
| 462 |
}; |
| 463 |
} |
| 464 |
\node[anchor=north~ west, inner~ sep=\z@] (infofooter) at ([yshift=\g_ptxcd_footheight_dim]bottomleft) { |
| 465 |
\parbox{\dim_eval:n {\contentwidth |
| 466 |
-\box_wd:N \g_ptxcd_footergraphics_box |
| 467 |
\tl_if_empty:NF \g_ptxcd_poster_qrcode_tl {-\g_ptxcd_footheight_dim-\c_ptxcd_rulesep_dim} |
| 468 |
}}{ |
| 469 |
\rule{\linewidth}{.5\c_ptxcd_smallrule_dim}\\ |
| 470 |
\accentfont\small\g_ptxcd_poster_foot_tl |
| 471 |
\par\medskip |
| 472 |
\let\footnotetext\ptxcd_title@footnote |
| 473 |
\g_ptxcd_thanks_tl} |
| 474 |
}; |
| 475 |
} |
| 476 |
\hook_gput_code:nnn {ptxcd/init-colors} {tudasciposter} { |
| 477 |
\bool_if:NTF \g_ptxcd_colorback_bool |
| 478 |
{\colorlet{titlefgcolor}{textonaccentcolor}} |
| 479 |
{\colorlet{titlefgcolor}{black}} |
| 480 |
\colorlet{titlebgcolor}{accentcolor} |
| 481 |
% \end{macrocode} |
| 482 |
% Block Colors |
| 483 |
% \begin{macrocode} |
| 484 |
\colorlet{blocktitlebgcolor}{accentcolor} |
| 485 |
\colorlet{blocktitlefgcolor}{textonaccentcolor} |
| 486 |
% \end{macrocode} |
| 487 |
% Innerblock Colors |
| 488 |
% \begin{macrocode} |
| 489 |
\colorlet{innerblockbodybgcolor}{textonaccentcolor} |
| 490 |
} |
| 491 |
% \end{macrocode} |
| 492 |
% Background Colors |
| 493 |
% \begin{macrocode} |
| 494 |
\colorlet{backgroundcolor}{white} |
| 495 |
\colorlet{framecolor}{white} |
| 496 |
% \end{macrocode} |
| 497 |
% Block Colors |
| 498 |
% \begin{macrocode} |
| 499 |
\colorlet{blockbodybgcolor}{white} |
| 500 |
\colorlet{blockbodyfgcolor}{black} |
| 501 |
% \end{macrocode} |
| 502 |
% Innerblock Colors |
| 503 |
% \begin{macrocode} |
| 504 |
\colorlet{innerblocktitlebgcolor}{black!15} |
| 505 |
\colorlet{innerblocktitlefgcolor}{black} |
| 506 |
\colorlet{innerblockbodyfgcolor}{black} |
| 507 |
\dim_new:N \g_ptxcd_titleblock_dim |
| 508 |
\dim_new:N \g_ptxcd_titleindent_dim |
| 509 |
\cs_new:Nn \_@@_inst:n {\textsuperscript{#1}} |
| 510 |
\cs_new:Nn \ptxcd_poster_setup_title_box: { |
| 511 |
\hbox_gset:Nn \g_ptxcd_title_box { |
| 512 |
\parbox{.65\paperwidth}{ |
| 513 |
\raggedright |
| 514 |
\usekomafont{disposition}\usekomafont{title}\leavevmode\@title \par |
| 515 |
} |
| 516 |
} |
| 517 |
\hbox_gset:Nn \g_ptxcd_author_box { |
| 518 |
\parbox{\dimexpr\contentwidth-6\c_ptxcd_rulesep_dim\relax}{ |
| 519 |
\ptxcd_def_footnotelabel: |
| 520 |
\cs_set_eq:NN \inst\_@@_inst:n |
| 521 |
{\usekomafont{author}\@author\\} |
| 522 |
\tl_gset:No \g_ptxcd_thanks_tl {\@thanks} |
| 523 |
\@institute |
| 524 |
} |
| 525 |
} |
| 526 |
\tl_if_empty:NF \@titlegraphic { |
| 527 |
\hbox_gset:Nn \g_ptxcd_titlegraphic_box { |
| 528 |
\parbox{\_@@_logowidth:}{ |
| 529 |
\raggedleft |
| 530 |
\@titlegraphic |
| 531 |
} |
| 532 |
} |
| 533 |
} |
| 534 |
\dim_gset:Nn \g_ptxcd_titleblock_dim { |
| 535 |
\dim_max:nn |
| 536 |
{ |
| 537 |
+\box_ht:N \g_ptxcd_titlegraphic_box +\box_dp:N \g_ptxcd_titlegraphic_box+ 2\c_ptxcd_logoheight_dim |
| 538 |
} |
| 539 |
{\box_ht:N \g_ptxcd_title_box+ \box_dp:N \g_ptxcd_title_box+\c_ptxcd_logoheight_dim} |
| 540 |
} |
| 541 |
} |
| 542 |
% \end{macrocode} |
| 543 |
% %%%%%%%%%%%%%%%%%%%%% |
| 544 |
% Declare TCBstyles for tudaposter |
| 545 |
% \begin{macrocode} |
| 546 |
\tcbset { |
| 547 |
TUDa/.style = |
| 548 |
{ |
| 549 |
enhanced, |
| 550 |
coltitle=black, |
| 551 |
colbacktitle=white, |
| 552 |
coltext=black, |
| 553 |
colback=white, |
| 554 |
size=minimal, |
| 555 |
boxrule=.5\c_ptxcd_smallrule_dim, |
| 556 |
leftrule=\z@, |
| 557 |
rightrule=\z@, |
| 558 |
fonttitle=\usekomafont{disposition}\usekomafont{section}, |
| 559 |
before~title={\strut}, |
| 560 |
toptitle=.5\c_ptxcd_rulesep_dim, |
| 561 |
bottomtitle=.5\c_ptxcd_rulesep_dim, |
| 562 |
top=\c_ptxcd_rulesep_dim, |
| 563 |
bottom=\c_ptxcd_rulesep_dim, |
| 564 |
frame~code={ |
| 565 |
\iftcb@hasTitle |
| 566 |
\fill[tcbcolframe](frame.north~west)rectangle(title.north~east); |
| 567 |
\fill[tcbcolframe](title.south~west)rectangle(interior.north~east); |
| 568 |
\else |
| 569 |
\fill[tcbcolframe](frame.north~west)rectangle(interior.north~east); |
| 570 |
\fi |
| 571 |
\fill[tcbcolframe](interior.south~west)rectangle(frame.south~east); |
| 572 |
}, |
| 573 |
parbox=false, |
| 574 |
}, |
| 575 |
TUDa-inner/.style = |
| 576 |
{ |
| 577 |
TUDa, |
| 578 |
fonttitle=\usekomafont{disposition}\usekomafont{subsubsection} |
| 579 |
}, |
| 580 |
TUDa-colored/.style = |
| 581 |
{ |
| 582 |
TUDa, |
| 583 |
left=.5\c_ptxcd_rulesep_dim, |
| 584 |
right=.5\c_ptxcd_rulesep_dim, |
| 585 |
colbacktitle=blocktitlebgcolor, |
| 586 |
coltitle=blocktitlefgcolor, |
| 587 |
colback=blockbodybgcolor, |
| 588 |
coltext=blockbodyfgcolor, |
| 589 |
fonttitle=\usekomafont{disposition}\usekomafont{section}, |
| 590 |
titlerule=\z@, |
| 591 |
}, |
| 592 |
TUDa-colored-inner/.style = |
| 593 |
{ |
| 594 |
TUDa-colored, |
| 595 |
colbacktitle=innerblocktitlebgcolor, |
| 596 |
coltitle=innerblocktitlefgcolor, |
| 597 |
colback=innerblockbodybgcolor, |
| 598 |
coltext=innerblockbodyfgcolor, |
| 599 |
fonttitle=\usekomafont{disposition}\usekomafont{subsubsection} |
| 600 |
}, |
| 601 |
TUDa-boxed/.style = |
| 602 |
{ |
| 603 |
enhanced, |
| 604 |
size=minimal, |
| 605 |
colbacktitle=blocktitlebgcolor, |
| 606 |
coltitle=blocktitlefgcolor, |
| 607 |
colback=blockbodybgcolor, |
| 608 |
coltext=blockbodyfgcolor, |
| 609 |
boxsep=\c_ptxcd_rulesep_dim, |
| 610 |
boxrule=.5\c_ptxcd_smallrule_dim, |
| 611 |
titlerule=\z@, |
| 612 |
arc=1ex, |
| 613 |
auto~outer~arc, |
| 614 |
fonttitle=\usekomafont{disposition}\usekomafont{section}, |
| 615 |
before~title={\strut}, |
| 616 |
parbox=false, |
| 617 |
}, |
| 618 |
TUDa-boxed-inner/.style = |
| 619 |
{ |
| 620 |
TUDa-boxed, |
| 621 |
colbacktitle=innerblocktitlebgcolor, |
| 622 |
coltitle=innerblocktitlefgcolor, |
| 623 |
colback=innerblockbodybgcolor, |
| 624 |
coltext=innerblockbodyfgcolor, |
| 625 |
sharp~corners, |
| 626 |
fonttitle=\usekomafont{disposition}\usekomafont{subsubsection} |
| 627 |
}, |
| 628 |
} |
| 629 |
% \end{macrocode} |
| 630 |
% Select default box styles according to style option |
| 631 |
% \begin{macrocode} |
| 632 |
\tcbposterset{boxes ={\g_ptxcd_boxstyle_tl}, poster={spacing=5cm}} |
| 633 |
\tcbset{ |
| 634 |
every~ box~ on~ layer~ 3/.style={reset,\g_ptxcd_boxstyle_tl -inner}, |
| 635 |
every~ box~ on~ layer~ 4/.style={reset,\g_ptxcd_boxstyle_tl -inner}, |
| 636 |
} |
| 637 |
% \end{macrocode} |
| 638 |
% Adjust caption indent |
| 639 |
% \begin{macrocode} |
| 640 |
\setcapindent{1em} |
| 641 |
\file_if_exist_input:n {\g_@@_config_prefix_tl\g_ptxcd_department_str.cfg} |
| 642 |
\hook_use:n {ptxcd/init-colors} |
| 643 |
\ptxcd_makeheadrule[ |
| 644 |
width=\paperwidth-2\g_ptxcd_margin_dim, |
| 645 |
color=identbarcolor |
| 646 |
]{ptxcd_headrule} |
| 647 |
\endinput |
| 648 |
% \end{macrocode} |
| 649 |
|
| 650 |
% |
| 651 |
% \iffalse |
| 652 |
%</class&body> |
| 653 |
% \fi |
| 654 |
% |
| 655 |
% \Finale |
| 656 |
% \fi^^A No documentation on this |
| 657 |
\endinput |