| 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{tudaposter.dtx}[2025-11-13 v4.05 Announcement poster Layouts for the Corporate Design of TU Darmstadt] |
| 34 |
\typeout{***********************************************************} |
| 35 |
\typeout{No documentation included in this file! Please see tuda-ci.pdf for more information and DEMO-TUDaPoster.tex/.pdf for an example of use.} |
| 36 |
\typeout{***********************************************************} |
| 37 |
\stop |
| 38 |
%</driver> |
| 39 |
%<*class&initialization> |
| 40 |
%<@@=ptxcd> |
| 41 |
\NeedsTeXFormat{LaTeX2e}[2020/10/01] |
| 42 |
\ProvidesExplPackage{tudaposter}{2025-11-13}{4.05}{Announcement poster Layouts for the Corporate Design of TU Darmstadt} |
| 43 |
%</class&initialization> |
| 44 |
% |
| 45 |
%<*driver>^^A Preparation for real docstrip documentation |
| 46 |
\providecommand*{\TUDaDocDTXfiles}{tudaposter.dtx} |
| 47 |
\input{tuda-ci.dtx} |
| 48 |
%</driver> |
| 49 |
% \fi |
| 50 |
% |
| 51 |
% \changes{v4.00}{2025-01-26}{Converted to DTX file} |
| 52 |
% |
| 53 |
% \DoNotIndex{\newcommand,\newenvironment} |
| 54 |
% |
| 55 |
% \GetFileInfo{tudaposter.dtx} |
| 56 |
% \title{The \textsf{tudaposter} package} |
| 57 |
% \author{<+author+>\thanks{Email: \href{mailto:<+email+>}{<+email+>}}} |
| 58 |
% \date{\fileversion~from \filedate} |
| 59 |
% |
| 60 |
% \maketitle |
| 61 |
% |
| 62 |
% |
| 63 |
% \DescribeMacro{\familydefault} |
| 64 |
% |
| 65 |
% |
| 66 |
% \DescribeMacro{\titleinfo} |
| 67 |
% |
| 68 |
% |
| 69 |
% \DescribeMacro{\maketitle} |
| 70 |
% |
| 71 |
% |
| 72 |
% \DescribeMacro{\titlegraphic} |
| 73 |
% |
| 74 |
% |
| 75 |
% \DescribeMacro{\addTitleBox} |
| 76 |
% |
| 77 |
% |
| 78 |
% \DescribeMacro{\addTitleBoxLogo} |
| 79 |
% |
| 80 |
% |
| 81 |
% \DescribeMacro{\footer} |
| 82 |
% |
| 83 |
% |
| 84 |
% \DescribeMacro{\footerqrcode} |
| 85 |
% |
| 86 |
% |
| 87 |
% \DescribeMacro{\footerqrcodeimg} |
| 88 |
% |
| 89 |
% |
| 90 |
% \DescribeMacro{\infofont} |
| 91 |
% |
| 92 |
% |
| 93 |
% \DescribeMacro{\SetMarginpar} |
| 94 |
% |
| 95 |
% |
| 96 |
% \DescribeMacro{\contentwidth} |
| 97 |
% |
| 98 |
% |
| 99 |
% \DescribeMacro{\contentheight} |
| 100 |
% |
| 101 |
% |
| 102 |
% \DescribeMacro{\author} |
| 103 |
% |
| 104 |
% |
| 105 |
% \MaybeStop{} |
| 106 |
% |
| 107 |
% \section{Implementation} |
| 108 |
% |
| 109 |
% \iffalse |
| 110 |
%<*class&initialization> |
| 111 |
% \fi |
| 112 |
% \begin{macrocode} |
| 113 |
\bool_new:N \g_@@_logo_head_bool |
| 114 |
\dim_new:N \g_ptxcd_margin_dim |
| 115 |
\int_new:N \g_ptxcd_paper_int |
| 116 |
\int_new:N \g_ptxcd_postertype_int |
| 117 |
\str_new:N \g_ptxcd_department_str |
| 118 |
\str_const:Nn \c_@@_base_str {poster} |
| 119 |
\keys_define:nn {ptxcd/poster} { |
| 120 |
footer .bool_gset:N = \g_ptxcd_poster_foot_bool, |
| 121 |
footer .default:n = true, |
| 122 |
footer .initial:n = false, |
| 123 |
footheight .dim_gset:N = \g_ptxcd_footheight_dim, |
| 124 |
fontsize .choice:, |
| 125 |
fontsize / auto .code:n = \tl_gclear:N \g_ptxcd_fontsize_tl, |
| 126 |
fontsize / unknown .code:n = {\@defaultunits\@tempdima#1pt\relax\@nnil \tl_gset:Nx \g_ptxcd_fontsize_tl {\the\@tempdima}}, |
| 127 |
fontsize .initial:n = auto, |
| 128 |
type .choice:, |
| 129 |
type / default .code:n = { |
| 130 |
\int_gset:Nn \g_ptxcd_postertype_int {1} |
| 131 |
}, |
| 132 |
type / announcement .code:n = { |
| 133 |
\int_gset:Nn \g_ptxcd_postertype_int {2} |
| 134 |
\keys_set:nn {ptxcd/poster}{ |
| 135 |
marginpar=true, |
| 136 |
indenttext=false,%allow overwrite - check default |
| 137 |
logo=head, |
| 138 |
title=small, |
| 139 |
colorsubtitle=true |
| 140 |
} |
| 141 |
}, |
| 142 |
type .initial:n = default, |
| 143 |
indenttext .bool_gset:N = \g_ptxcd_indenttext_bool, |
| 144 |
indenttext .initial:n = false, |
| 145 |
indenttext .default:n = true, |
| 146 |
colorsubtitle .bool_gset:N = \g_ptxcd_colorsubtitle_bool, |
| 147 |
colorsubtitle .default:n = true, |
| 148 |
colorsubtitle .initial:n = false, |
| 149 |
%</class&initialization> |
| 150 |
%<gobble>} |
| 151 |
%<*class&body> |
| 152 |
\ProcessKeyOptions[ptxcd/poster] |
| 153 |
\ExplSyntaxOff |
| 154 |
\PassOptionsToPackage{DIV=6,typeareawarninfolimit=-1}{typearea} |
| 155 |
\LoadClass[parskip=half-]{scrartcl} |
| 156 |
\RequirePackage{scrlayer} |
| 157 |
\RequirePackage{scrlayer-notecolumn} |
| 158 |
\ExplSyntaxOn |
| 159 |
\bool_if:NTF \g_ptxcd_smalltitle_bool { |
| 160 |
\file_input:n {tuda-a\int_use:N \g_ptxcd_paper_int paper.clo} |
| 161 |
\ptxcd_setup_title_sizes: |
| 162 |
\file_input:n {tuda-a\int_use:N \g_ptxcd_paper_int paper.clo} |
| 163 |
\ptxcd_setup_base_sizes: |
| 164 |
}{ |
| 165 |
\int_gdecr:N \g_ptxcd_paper_int |
| 166 |
\file_input:n {tuda-a\int_use:N \g_ptxcd_paper_int paper.clo} |
| 167 |
\ptxcd_setup_title_sizes: |
| 168 |
\ptxcd_setup_base_sizes: |
| 169 |
} |
| 170 |
\setkomafont{title}{ |
| 171 |
\bool_if:NT \g_ptxcd_colorback_bool |
| 172 |
{\color{textonaccentcolor}}\expandafter\fontsize\ptxcd_title_fontsize:\selectfont} |
| 173 |
\setkomafont{subtitle}{\expandafter\fontsize\ptxcd_titleinfo_fontsize:\selectfont} |
| 174 |
\newkomafont{titleinfo}{\usekomafont{subtitle}} |
| 175 |
\clist_map_inline:nn {author, date, publishers} |
| 176 |
{\setkomafont{#1}{\usekomafont{subtitle}}} |
| 177 |
\ExplSyntaxOff |
| 178 |
\KOMAoptions{fontsize=\csname g_ptxcd_fontsize_tl\endcsname} |
| 179 |
\ExplSyntaxOn |
| 180 |
\RequirePackage{tudafonts} |
| 181 |
% \end{macrocode} |
| 182 |
% \begin{documentation} |
| 183 |
% \DescribeMacro{\familydefault} |
| 184 |
% |
| 185 |
% \end{documentation} |
| 186 |
% \begin{implementation} |
| 187 |
% \begin{macro}{\familydefault} |
| 188 |
% \begin{macrocode} |
| 189 |
\renewcommand*{\familydefault}{\sfdefault} |
| 190 |
% \end{macrocode} |
| 191 |
% \end{macro} |
| 192 |
% \end{implementation} |
| 193 |
% |
| 194 |
% \begin{macrocode} |
| 195 |
\exp_args:Nx \PassOptionsToPackage{mode=tikz}{tudarules} |
| 196 |
\RequirePackage{tudarules} |
| 197 |
\RequirePackage{tudacolors} |
| 198 |
\RequirePackage{qrcode} |
| 199 |
\RequirePackage{tikz} |
| 200 |
\newlength{\contentwidth} |
| 201 |
\setlength{\contentwidth}{\dimexpr\paperwidth-2\g_ptxcd_margin_dim} |
| 202 |
\ptxcd_makeheadrule[width=\contentwidth, color=identbarcolor]{ptxcd_headrule} |
| 203 |
% \end{macrocode} |
| 204 |
%%%%%%%%%%%%%%%%%%%%%% |
| 205 |
% \begin{macrocode} |
| 206 |
\int_case:nn {\g_ptxcd_postertype_int} |
| 207 |
{ |
| 208 |
{1} {} |
| 209 |
{2} { |
| 210 |
\addtokomafont{subtitle}{\bfseries} |
| 211 |
} |
| 212 |
} |
| 213 |
% \end{macrocode} |
| 214 |
% %%%%%%%%%%%%%%%%%%%%% |
| 215 |
% marginpar option |
| 216 |
% \begin{macrocode} |
| 217 |
\dim_new:N \g_ptxcd_marginpar_dim |
| 218 |
% \end{macrocode} |
| 219 |
% %%%%%%%%%%%%%%%%%%%%% |
| 220 |
% \begin{macrocode} |
| 221 |
\dim_new:N \g_ptxcd_titleindent_dim |
| 222 |
\begingroup |
| 223 |
\expandafter\fontsize\ptxcd_title_fontsize:\selectfont |
| 224 |
\dim_gset:Nn \g_ptxcd_titleindent_dim {.5ex} |
| 225 |
\endgroup |
| 226 |
\dim_new:N \g_ptxcd_columnSep_dim |
| 227 |
\dim_gset:Nn \g_ptxcd_columnSep_dim {1em} |
| 228 |
\RequirePackage{geometry} |
| 229 |
\geometry{ |
| 230 |
margin= \g_ptxcd_margin_dim, |
| 231 |
hmargin = \dim_eval:n { |
| 232 |
\g_ptxcd_margin_dim + |
| 233 |
\bool_if:NTF \g_ptxcd_indenttext_bool |
| 234 |
{\g_ptxcd_titleindent_dim} {0pt} |
| 235 |
}, |
| 236 |
top=\dim_eval:n { |
| 237 |
\box_ht:N \ptxcd_headrule_box + \box_dp:N \ptxcd_headrule_box |
| 238 |
+ .5\c_ptxcd_logoheight_dim |
| 239 |
+\g_ptxcd_margin_dim} |
| 240 |
} |
| 241 |
\bool_if:NTF \g_ptxcd_marginpar_bool { |
| 242 |
\dim_gset:Nn \g_ptxcd_marginpar_dim {\_@@_logowidth:} |
| 243 |
\geometry{ |
| 244 |
includemp, marginpar=\g_ptxcd_marginpar_dim, marginparsep=\g_ptxcd_columnSep_dim, |
| 245 |
right = \dim_eval:n { |
| 246 |
\g_ptxcd_margin_dim + |
| 247 |
\bool_if:nTF {\g_ptxcd_indenttext_bool && !\g_ptxcd_marginpar_bool} |
| 248 |
{\g_ptxcd_titleindent_dim} {0pt} |
| 249 |
}, |
| 250 |
} |
| 251 |
\KOMAoptions{mpinclude} |
| 252 |
}{ |
| 253 |
\dim_gzero:N \g_ptxcd_marginpar_dim |
| 254 |
\geometry{ |
| 255 |
nomarginpar, |
| 256 |
right = \dim_eval:n { |
| 257 |
\bool_if:NT \g_ptxcd_indenttext_bool |
| 258 |
{\g_ptxcd_titleindent_dim} |
| 259 |
+ \g_ptxcd_margin_dim |
| 260 |
}, |
| 261 |
} |
| 262 |
\KOMAoptions{mpinclude=false} |
| 263 |
} |
| 264 |
\bool_if:NT \g_ptxcd_poster_foot_bool { |
| 265 |
\dim_compare:nT {\g_ptxcd_footheight_dim = 0pt} { |
| 266 |
\dim_set:Nn \g_ptxcd_footheight_dim |
| 267 |
{1.5\baselineskip} |
| 268 |
} |
| 269 |
\geometry{bottom=\dim_eval:n {\g_ptxcd_footheight_dim+\footskip+\g_ptxcd_margin_dim}} |
| 270 |
} |
| 271 |
% \end{macrocode} |
| 272 |
% %%%%%%%%%%%%%%%%%%%%% |
| 273 |
% |
| 274 |
% \begin{macrocode} |
| 275 |
\dim_new:N \g_ptxcd_qrcode_dim |
| 276 |
\dim_gset:Nn \g_ptxcd_qrcode_dim {.7\c_ptxcd_logoheight_dim} |
| 277 |
\DeclareNewLayer[ |
| 278 |
background, |
| 279 |
align=br, |
| 280 |
width=\g_ptxcd_qrcode_dim, |
| 281 |
height=\g_ptxcd_qrcode_dim, |
| 282 |
hoffset=\paperwidth-\g_ptxcd_margin_dim, |
| 283 |
voffset=\paperheight-\g_ptxcd_margin_dim, |
| 284 |
mode=picture, |
| 285 |
contents={% |
| 286 |
\tl_if_empty:NF \g_ptxcd_poster_qrcode_tl { |
| 287 |
\let\width\g_ptxcd_qrcode_dim |
| 288 |
\let\height\g_ptxcd_qrcode_dim |
| 289 |
\g_ptxcd_poster_qrcode_tl |
| 290 |
} |
| 291 |
} |
| 292 |
]{TUDa.poster.qrcode} |
| 293 |
\DeclareNewLayer[ |
| 294 |
clone=TUDa.poster.qrcode, |
| 295 |
align=bl, |
| 296 |
hoffset=\g_ptxcd_margin_dim, |
| 297 |
width=\paperwidth-2\g_ptxcd_margin_dim, |
| 298 |
height=\g_ptxcd_footheight_dim, |
| 299 |
contents={ |
| 300 |
\bool_if:NTF \g_ptxcd_poster_foot_bool { |
| 301 |
\putUL{\rule{\layerwidth}{\g_ptxcd_titlerule_dim}} |
| 302 |
\put(0,0) {\parbox[b][\g_ptxcd_footheight_dim][c]{\layerwidth}{\strut\g_ptxcd_poster_foot_tl\strut}} |
| 303 |
\putLL{\rule{\layerwidth}{\g_ptxcd_titlerule_dim}} |
| 304 |
}{ |
| 305 |
\smash{\rule{\layerwidth}{\g_ptxcd_titlerule_dim}} |
| 306 |
} |
| 307 |
} |
| 308 |
]{TUDa.poster.footer} |
| 309 |
\DeclareNewLayer[ |
| 310 |
background,mode=picture, |
| 311 |
width=\paperwidth-2\g_ptxcd_margin_dim, |
| 312 |
hoffset=\g_ptxcd_margin_dim, |
| 313 |
voffset=\g_ptxcd_margin_dim+\box_ht:N \ptxcd_headrule_box + \box_dp:N \ptxcd_headrule_box, |
| 314 |
contents=\bool_if:NT \g_ptxcd_colorback_bool {\color{accentcolor}\rule{\layerwidth}{\layerheight}}, |
| 315 |
]{TUDa.poster.background} |
| 316 |
\DeclareNewLayer[ |
| 317 |
textarea, |
| 318 |
foreground, |
| 319 |
align=tr, |
| 320 |
hoffset=\paperwidth-\g_ptxcd_margin_dim, |
| 321 |
width=\_@@_logowidth:, |
| 322 |
height=.5\textheight, |
| 323 |
contents={\box_use:N \g_ptxcd_title_info_box} |
| 324 |
]{TUDa.poster.logo} |
| 325 |
\DeclareNewLayer[ |
| 326 |
clone=TUDa.poster.background, |
| 327 |
align=tl, |
| 328 |
voffset=\g_ptxcd_margin_dim, |
| 329 |
height=\box_ht:N \ptxcd_headrule_box + \box_dp:N \ptxcd_headrule_box, |
| 330 |
mode=picture, |
| 331 |
contents={\box_use:N \ptxcd_headrule_box} |
| 332 |
]{TUDa.poster.rule} |
| 333 |
\DeclareNewLayer[ |
| 334 |
clone=notecolumn.marginpar, |
| 335 |
]{TUDa.poster.marginpar} |
| 336 |
\DeclareNewPageStyleByLayers{TUDa.poster.title}{TUDa.poster.rule,TUDa.poster.background,TUDa.poster.qrcode,TUDa.poster.footer} |
| 337 |
\DeclareNewPageStyleByLayers{TUDa.poster}{TUDa.poster.rule,TUDa.poster.qrcode,TUDa.poster.footer, TUDa.poster.marginpar} |
| 338 |
\pagestyle{TUDa.poster} |
| 339 |
\dim_new:N \g_ptxcd_titlegraphic_max_height_dim |
| 340 |
\dim_new:N \g_ptxcd_titleback_dim |
| 341 |
% \end{macrocode} |
| 342 |
% \begin{documentation} |
| 343 |
% \DescribeMacro{\titleinfo} |
| 344 |
% |
| 345 |
% \end{documentation} |
| 346 |
% \begin{implementation} |
| 347 |
% \begin{macro}{\titleinfo} |
| 348 |
% \begin{macrocode} |
| 349 |
\newcommand*{\titleinfo}[1]{\def\@titleinfo{#1}} |
| 350 |
% \end{macrocode} |
| 351 |
% \end{macro} |
| 352 |
% \end{implementation} |
| 353 |
% |
| 354 |
% \begin{macrocode} |
| 355 |
\titleinfo{} |
| 356 |
% \end{macrocode} |
| 357 |
% \begin{documentation} |
| 358 |
% \DescribeMacro{\maketitle} |
| 359 |
% |
| 360 |
% \end{documentation} |
| 361 |
% \begin{implementation} |
| 362 |
% \begin{macro}{\maketitle} |
| 363 |
% \begin{macrocode} |
| 364 |
\renewcommand*{\maketitle}{ |
| 365 |
\begingroup |
| 366 |
\setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative |
| 367 |
\bool_if:NT \g_ptxcd_marginpar_bool |
| 368 |
{\setlength{\linewidth}{\dim_eval:n {\textwidth+\g_ptxcd_marginpar_dim + \marginparsep}}} |
| 369 |
\vbox_gset:Nn \g_ptxcd_title_box |
| 370 |
{ |
| 371 |
\usesizeofkomafont{title} |
| 372 |
\parbox[t]{\linewidth}{ |
| 373 |
\bool_if:NT \g_ptxcd_smalltitle_bool {\raisebox{ |
| 374 |
\dim_max:nn {0pt} {1.5\c_ptxcd_logoheight_dim - \height} |
| 375 |
}} |
| 376 |
{ |
| 377 |
\begin{minipage}[b]{\bool_if:NT \g_@@_logo_head_bool {.75}\linewidth} |
| 378 |
\leavevmode\par\nointerlineskip |
| 379 |
\bool_if:NF \g_ptxcd_indenttext_bool {\begin{addmargin}{\g_ptxcd_titleindent_dim }} |
| 380 |
\usekomafont{title} |
| 381 |
\raggedright |
| 382 |
\tl_if_empty:NF \@titlehead {\usekomafont{titlehead}{\@titlehead\par}} |
| 383 |
\leavevmode\usekomafont{disposition}\usekomafont{title}% |
| 384 |
\@title\strut\par |
| 385 |
\bool_if:NTF \g_ptxcd_indenttext_bool {\nointerlineskip\leavevmode}{\end{addmargin}} |
| 386 |
\end{minipage} |
| 387 |
} |
| 388 |
\par\nointerlineskip |
| 389 |
\exp_args:Nf \tl_if_empty:nF {\@subtitle\@titleinfo\@subject\@author\@date\@publishers} { |
| 390 |
\bool_if:NT \g_ptxcd_indenttext_bool {\hspace*{-\g_ptxcd_titleindent_dim}} |
| 391 |
\rule{\linewidth}{\g_ptxcd_titlerule_dim} |
| 392 |
\par |
| 393 |
\nointerlineskip |
| 394 |
\vspace{\c_ptxcd_rulesep_dim} |
| 395 |
\bool_if:NTF \g_ptxcd_indenttext_bool {\begingroup}{\begin{addmargin}{\g_ptxcd_titleindent_dim }} |
| 396 |
\bool_if:NT \g_ptxcd_colorsubtitle_bool {\color{textonaccentcolor}} |
| 397 |
\clist_map_inline:nn {subtitle, titleinfo, subject, author, date, publishers} |
| 398 |
{\tl_if_empty:cF {@##1} {{\usekomafont{##1}\use:c {@##1}\par}}} |
| 399 |
\nointerlineskip |
| 400 |
\bool_if:NTF \g_ptxcd_indenttext_bool {\endgroup} {\end{addmargin}} |
| 401 |
\vspace{\c_ptxcd_rulesep_dim} |
| 402 |
\par\nointerlineskip |
| 403 |
\bool_if:NT \g_ptxcd_indenttext_bool {\hspace*{-\g_ptxcd_titleindent_dim}} |
| 404 |
\tl_if_empty:NF \@thanks { |
| 405 |
\bool_if:NT \g_ptxcd_indenttext_bool {\hspace*{-\g_ptxcd_titleindent_dim}}\rule{\linewidth}{\g_ptxcd_titlerule_dim} |
| 406 |
\vspace{\c_ptxcd_rulesep_dim} |
| 407 |
\par\nointerlineskip |
| 408 |
\expandafter\fontsize\ptxcd_titlethanks_fontsize:\selectfont |
| 409 |
\bool_if:NTF \g_ptxcd_indenttext_bool {\begingroup}{\begin{addmargin}{\g_ptxcd_titleindent_dim }} |
| 410 |
\let\footnotetext\ptxcd_title@footnote |
| 411 |
\@thanks |
| 412 |
\vspace{\c_ptxcd_rulesep_dim} |
| 413 |
\bool_if:NTF \g_ptxcd_indenttext_bool {\endgroup} {\end{addmargin}} |
| 414 |
\global\let\@thanks\@empty |
| 415 |
\par |
| 416 |
} |
| 417 |
} |
| 418 |
\nointerlineskip |
| 419 |
\rule{\linewidth}{\g_ptxcd_titlerule_dim} |
| 420 |
} |
| 421 |
} |
| 422 |
\endgroup |
| 423 |
\ptxcd_Setup_Title_box: |
| 424 |
\dim_gset:Nn \g_ptxcd_titleback_dim { |
| 425 |
\bool_if:NT \g_ptxcd_colorsubtitle_bool {\box_dp:N \g_ptxcd_title_box}+ |
| 426 |
\box_ht:N \g_ptxcd_title_box+.5\c_ptxcd_logoheight_dim |
| 427 |
} |
| 428 |
\ModifyLayer[ |
| 429 |
height=\g_ptxcd_titleback_dim |
| 430 |
]{TUDa.poster.background} |
| 431 |
\bool_if:NF \g_@@_logo_head_bool { |
| 432 |
\ModifyLayer[ |
| 433 |
addvoffset= |
| 434 |
\bool_if:NF \g_ptxcd_colorsubtitle_bool {\box_dp:N \g_ptxcd_title_box}+\g_ptxcd_titleback_dim+\c_ptxcd_smallrule_dim |
| 435 |
]{TUDa.poster.logo} |
| 436 |
} |
| 437 |
\leavevmode\box_use:N \g_ptxcd_title_box\par |
| 438 |
\dim_set:Nn \g_ptxcd_titlegraphic_max_height_dim {\textheight-\pagetotal} |
| 439 |
\bool_if:NTF \g_@@_logo_head_bool { |
| 440 |
\dim_compare:nT {\box_ht:N \g_ptxcd_title_info_box+ \box_dp:N \g_ptxcd_title_info_box > \box_ht:N \g_ptxcd_title_box} |
| 441 |
{\msg_warning:nn{tudaposter} {infobox-too-high}} |
| 442 |
} { |
| 443 |
\dim_compare:nT {\box_ht:N \g_ptxcd_title_info_box+ \box_dp:N \g_ptxcd_title_info_box > \box_ht:N \g_ptxcd_titlegraphic_box + \box_dp:N \g_ptxcd_titlegraphic_box} |
| 444 |
{\msg_warning:nn{tudaposter} {infobox-too-high}} |
| 445 |
} |
| 446 |
\global\def\contentheight{\g_ptxcd_titlegraphic_max_height_dim} |
| 447 |
\tl_if_empty:NF \@titlegraphic{ |
| 448 |
\vbox_gset:Nn \g_ptxcd_titlegraphic_box {\parbox[t]{\dim_eval:n {\paperwidth-2\g_ptxcd_margin_dim}}{\@titlegraphic}} |
| 449 |
\par\nointerlineskip |
| 450 |
\box_use:N \g_ptxcd_titlegraphic_box |
| 451 |
} |
| 452 |
\DeclareLayer[ |
| 453 |
clone=TUDa.poster.marginpar, |
| 454 |
height=\bool_if:NF \l_ptxcd_marginpar_overlap_bool {-\box_ht:N \g_ptxcd_titlegraphic_box-\box_dp:N \g_ptxcd_titlegraphic_box} |
| 455 |
+\textheight-\box_ht:N \g_ptxcd_title_box-\box_dp:N \g_ptxcd_title_box-.5\c_ptxcd_logoheight_dim, |
| 456 |
addvoffset=\bool_if:NF \l_ptxcd_marginpar_overlap_bool {+\box_ht:N\g_ptxcd_titlegraphic_box+\box_dp:N \g_ptxcd_titlegraphic_box} |
| 457 |
+\box_ht:N \g_ptxcd_title_box+\box_dp:N \g_ptxcd_title_box+.5\c_ptxcd_logoheight_dim, |
| 458 |
]{TUDa.poster.marginpar.title} |
| 459 |
\tl_if_empty:NF \g_ptxcd_poster_qrcode_tl { |
| 460 |
\ModifyLayer[addwidth=-\g_ptxcd_qrcode_dim-\c_ptxcd_rulesep_dim]{TUDa.poster.footer} |
| 461 |
} |
| 462 |
\AddLayersToPageStyle{TUDa.poster.title}{TUDa.poster.marginpar.title} |
| 463 |
\AddLayersToPageStyle{TUDa.poster.title}{TUDa.poster.logo} |
| 464 |
\thispagestyle{TUDa.poster.title} |
| 465 |
\global\def\contentwidth{\linewidth} |
| 466 |
\par |
| 467 |
\let\@title\@empty |
| 468 |
\let\@subtitle\@empty |
| 469 |
\let\@titleinfo\@empty |
| 470 |
} |
| 471 |
% \end{macrocode} |
| 472 |
% \end{macro} |
| 473 |
% \end{implementation} |
| 474 |
% \begin{macrocode} |
| 475 |
\def\@titlegraphic{} |
| 476 |
\newcommand{\titlegraphic}[1]{ |
| 477 |
\def\@titlegraphic{#1} |
| 478 |
} |
| 479 |
|
| 480 |
\box_new:N \g_ptxcd_titlegraphic_box |
| 481 |
\seq_new:N \g_ptxcd_title_info_seq |
| 482 |
\seq_gput_right:Nn \g_ptxcd_title_info_seq {\rlap{\_@@_insert_logo:}} |
| 483 |
\box_new:N \g_ptxcd_title_info_box |
| 484 |
\box_new:N \g_ptxcd_title_box |
| 485 |
\cs_new:Nn \ptxcd_make_title_info_box:n { |
| 486 |
\usekomafont{titleinfo} |
| 487 |
\setlength{\fboxsep}{.2\baselineskip} |
| 488 |
\colorbox{InfoBox}{\hspace*{\dimexpr.2\c_ptxcd_logoheight_dim-\fboxsep}% |
| 489 |
\parbox{2\c_ptxcd_logoheight_dim}{ |
| 490 |
\raggedright |
| 491 |
#1 |
| 492 |
}} |
| 493 |
} |
| 494 |
\cs_new:Nn \ptxcd_make_title_logo_box:n { |
| 495 |
\setlength{\fboxsep}{\z@}% |
| 496 |
\parbox{\_@@_logowidth:}{ |
| 497 |
\colorbox{InfoBox}{ |
| 498 |
\rlap{ |
| 499 |
\makebox[\dim_eval:n {\_ptxcd_logowidth: + \_ptxcd_logowsep:}][r]{ |
| 500 |
\colorbox{InfoBox}{#1\hspace{\_@@_logosep:}} |
| 501 |
} |
| 502 |
} |
| 503 |
} |
| 504 |
} |
| 505 |
} |
| 506 |
% \end{macrocode} |
| 507 |
% \begin{documentation} |
| 508 |
% \DescribeMacro{\addTitleBox} |
| 509 |
% |
| 510 |
% \end{documentation} |
| 511 |
% \begin{implementation} |
| 512 |
% \begin{macro}{\addTitleBox} |
| 513 |
% \begin{macrocode} |
| 514 |
\newcommand{\addTitleBox}[1]{\seq_gput_right:Nn \g_ptxcd_title_info_seq {\ptxcd_make_title_info_box:n {#1}}} |
| 515 |
% \end{macrocode} |
| 516 |
% \end{macro} |
| 517 |
% \end{implementation} |
| 518 |
% |
| 519 |
% \begin{documentation} |
| 520 |
% \DescribeMacro{\addTitleBoxLogo} |
| 521 |
% |
| 522 |
% \end{documentation} |
| 523 |
% \begin{implementation} |
| 524 |
% \begin{macro}{\addTitleBoxLogo} |
| 525 |
% \begin{macrocode} |
| 526 |
\NewDocumentCommand{\addTitleBoxLogo}{sm}{ |
| 527 |
\IfBooleanTF{#1}{ |
| 528 |
\seq_gput_right:Nn \g_ptxcd_title_info_seq { |
| 529 |
\ptxcd_make_title_logo_box:n {#2} |
| 530 |
} |
| 531 |
}{ |
| 532 |
\seq_gput_right:Nn \g_ptxcd_title_info_seq { |
| 533 |
\ptxcd_make_title_logo_box:n { |
| 534 |
\hbox_set:Nn \l_tmpa_box { |
| 535 |
\includegraphics[width=1.5\c_ptxcd_logoheight_dim]{#2} |
| 536 |
} |
| 537 |
\dim_set:Nn \l_tmpa_dim {2\c_ptxcd_logoheight_dim/3} |
| 538 |
\dim_compare:nTF {\box_ht:N \l_tmpa_box > \l_tmpa_dim} |
| 539 |
{\includegraphics[width=\l_tmpa_dim]{#2}} |
| 540 |
{\box_use:N \l_tmpa_box} |
| 541 |
} |
| 542 |
} |
| 543 |
} |
| 544 |
} |
| 545 |
% \end{macrocode} |
| 546 |
% \end{macro} |
| 547 |
% \end{implementation} |
| 548 |
% |
| 549 |
% \begin{macrocode} |
| 550 |
\cs_new:Nn \ptxcd_Setup_Title_box: { |
| 551 |
\hbox_gset:Nn \g_ptxcd_title_info_box |
| 552 |
{\parbox{\_@@_logowidth:}{ |
| 553 |
\seq_use:Nn \g_ptxcd_title_info_seq {\par\nointerlineskip\skip_vertical:n |
| 554 |
{ |
| 555 |
\box_ht:N \ptxcd_headrule_box + \box_dp:N \ptxcd_headrule_box |
| 556 |
} |
| 557 |
} |
| 558 |
}} |
| 559 |
} |
| 560 |
\tl_new:N \g_ptxcd_poster_foot_tl |
| 561 |
% \end{macrocode} |
| 562 |
% \begin{documentation} |
| 563 |
% \DescribeMacro{\footer} |
| 564 |
% |
| 565 |
% \end{documentation} |
| 566 |
% \begin{implementation} |
| 567 |
% \begin{macro}{\footer} |
| 568 |
% \begin{macrocode} |
| 569 |
\newcommand{\footer}[1]{ |
| 570 |
\tl_gset:Nn \g_ptxcd_poster_foot_tl {#1} |
| 571 |
} |
| 572 |
% \end{macrocode} |
| 573 |
% \end{macro} |
| 574 |
% \end{implementation} |
| 575 |
% |
| 576 |
% \begin{macrocode} |
| 577 |
\tl_new:N \g_ptxcd_poster_qrcode_tl |
| 578 |
% \end{macrocode} |
| 579 |
% \begin{documentation} |
| 580 |
% \DescribeMacro{\footerqrcode} |
| 581 |
% |
| 582 |
% \end{documentation} |
| 583 |
% \begin{implementation} |
| 584 |
% \begin{macro}{\footerqrcode} |
| 585 |
% \begin{macrocode} |
| 586 |
\newcommand*{\footerqrcode}[1]{ |
| 587 |
\tl_gset:Nn \g_ptxcd_poster_qrcode_tl |
| 588 |
{\raisebox{\depth}{\qrcode[height={\g_ptxcd_qrcode_dim}]{#1}}} |
| 589 |
} |
| 590 |
% \end{macrocode} |
| 591 |
% \end{macro} |
| 592 |
% \end{implementation} |
| 593 |
% |
| 594 |
% \begin{documentation} |
| 595 |
% \DescribeMacro{\footerqrcodeimg} |
| 596 |
% |
| 597 |
% \end{documentation} |
| 598 |
% \begin{implementation} |
| 599 |
% \begin{macro}{\footerqrcodeimg} |
| 600 |
% \begin{macrocode} |
| 601 |
\newcommand*{\footerqrcodeimg}[1]{\tl_gset:Nn \g_ptxcd_poster_qrcode_tl {#1}} |
| 602 |
% \end{macrocode} |
| 603 |
% \end{macro} |
| 604 |
% \end{implementation} |
| 605 |
% |
| 606 |
% \begin{macrocode} |
| 607 |
\RedeclareSectionCommand[afterskip=1ex plus .2ex]{section} |
| 608 |
\RedeclareSectionCommand[afterskip=.2ex plus .2ex]{subsection} |
| 609 |
\msg_new:nnn{tudaposter} {infobox-too-high} { |
| 610 |
The~height~of~your~Infobox~exeeds~the~space~reserved~in~the~title~block.\\ |
| 611 |
You~should~probably~switch~to~logo=bottom~or~reduce~the~number/size~of~InfoBoxes. |
| 612 |
} |
| 613 |
\keys_define:nn {ptxcd/poster/marginparopts}{ |
| 614 |
valign .tl_set:N = \l_ptxcd_marginpar_valign_tl, |
| 615 |
valign .initial:n = t, |
| 616 |
overlap .bool_set:N = \l_ptxcd_marginpar_overlap_bool, |
| 617 |
overlap .initial:n = false, |
| 618 |
overlap .default:n = true |
| 619 |
} |
| 620 |
% \end{macrocode} |
| 621 |
% \begin{documentation} |
| 622 |
% \DescribeMacro{\infofont} |
| 623 |
% |
| 624 |
% \end{documentation} |
| 625 |
% \begin{implementation} |
| 626 |
% \begin{macro}{\infofont} |
| 627 |
% \begin{macrocode} |
| 628 |
\newcommand*{\infofont}{\accentfont\normalcolor\footnotesize} |
| 629 |
% \end{macrocode} |
| 630 |
% \end{macro} |
| 631 |
% \end{implementation} |
| 632 |
% |
| 633 |
% \begin{macrocode} |
| 634 |
\DeclareTextFontCommand{\infotext}{\infofont} |
| 635 |
\int_new:N \g_ptxcd_marginpar_int |
| 636 |
% \end{macrocode} |
| 637 |
% \begin{documentation} |
| 638 |
% \DescribeMacro{\SetMarginpar} |
| 639 |
% |
| 640 |
% \end{documentation} |
| 641 |
% \begin{implementation} |
| 642 |
% \begin{macro}{\SetMarginpar} |
| 643 |
% \begin{macrocode} |
| 644 |
\NewDocumentCommand{\SetMarginpar}{o+m}{ |
| 645 |
\bool_if:NF \g_ptxcd_marginpar_bool {\msg_warning:nn {ptxcd/Poster} {marginpar-disabled}} |
| 646 |
\IfNoValueF{#1}{\keys_set:nn {ptxcd/poster/marginparopts} {#1}} |
| 647 |
\ModifyLayer[addvoffset={-\ht\strutbox},contents={\parbox[t][\layerheight][\l_ptxcd_marginpar_valign_tl]{\layerwidth}{#2\strut}}]{TUDa.poster.marginpar} |
| 648 |
\bool_set_true:N \l_tmpa_bool |
| 649 |
} |
| 650 |
% \end{macrocode} |
| 651 |
% \end{macro} |
| 652 |
% \end{implementation} |
| 653 |
% |
| 654 |
% \begin{macrocode} |
| 655 |
\msg_new:nnnn {ptxcd/Poster} {marginpar-disabled} { |
| 656 |
You~are~adding~data~to~the~marginpar~box,~though~marginpar option is set to false.\\ |
| 657 |
I~will~add~it,~but~cannot~ensure~the~position. |
| 658 |
} { |
| 659 |
I'd~suggest~to~switch~the~marginpar~option~to~true. |
| 660 |
See~the~TUDa-CI~documentation~for~further~information. |
| 661 |
} |
| 662 |
% \end{macrocode} |
| 663 |
|
| 664 |
\global\def\contentwidth{\linewidth} |
| 665 |
\global\def\contentheight{\g_ptxcd_titlegraphic_max_height_dim} |
| 666 |
% \end{macrocode} |
| 667 |
% |
| 668 |
%author setup |
| 669 |
% |
| 670 |
% \begin{macrocode} |
| 671 |
\seq_new:N \g_ptxcd_author_seq |
| 672 |
% \end{macrocode} |
| 673 |
% \begin{documentation} |
| 674 |
% \DescribeMacro{\author} |
| 675 |
% |
| 676 |
% \end{documentation} |
| 677 |
% \begin{implementation} |
| 678 |
% \begin{macro}{\author} |
| 679 |
% \begin{macrocode} |
| 680 |
\renewcommand*\author[1]{ |
| 681 |
\seq_gset_split:Nnn \g_ptxcd_author_seq {\and} {#1} |
| 682 |
} |
| 683 |
% \end{macrocode} |
| 684 |
% \end{macro} |
| 685 |
% \end{implementation} |
| 686 |
% |
| 687 |
% \begin{macrocode} |
| 688 |
\msg_new:nnn{tudapub} {unknown-language} { |
| 689 |
You~selected~an~unknown~language~#1.\\ |
| 690 |
The~Variable~#2~does~not~have~a~predefined~value.\\ |
| 691 |
Ensure~to~redefine~#2~to~match~your~language.\\ |
| 692 |
Otherwise~the~ngerman~vaue~#3~will~be~used. |
| 693 |
} |
| 694 |
\cs_new:Nn \ptxcd_define_captionFallback:Nn { |
| 695 |
\providecommand*#1{ |
| 696 |
\msg_warning:nnxxx{tudapub} {unknown-language} |
| 697 |
{\languagename} {\exp_not:N #1} {#2} |
| 698 |
\def#1{#2} |
| 699 |
} |
| 700 |
} |
| 701 |
\cs_new:Nn \ptxcd_declare_caption:Nnnn { |
| 702 |
\ptxcd_define_captionFallback:Nn #1 {#2} |
| 703 |
\defcaptionname{ngerman, german}{#1}{#2} |
| 704 |
\defcaptionname{english, USenglish, american}{#1}{#3} |
| 705 |
\defcaptionname{UKenglish, british}{#1}{#4} |
| 706 |
} |
| 707 |
\cs_new:Nn \ptxcd_declare_caption:Nnn { |
| 708 |
\ptxcd_declare_caption:Nnnn #1 {#2} {#3} {#3} |
| 709 |
} |
| 710 |
% \end{macrocode} |
| 711 |
% \begin{documentation} |
| 712 |
% \DescribeMacro{\@author} |
| 713 |
% |
| 714 |
% \end{documentation} |
| 715 |
% \begin{implementation} |
| 716 |
% \begin{macro}{\@author} |
| 717 |
% \begin{macrocode} |
| 718 |
\renewcommand*{\@author}{ |
| 719 |
\begingroup |
| 720 |
\hyphenpenalty=100000 |
| 721 |
\seq_use:Nnnn \g_ptxcd_author_seq {~\authorandname{}~} {,~} {~\&~} |
| 722 |
\endgroup |
| 723 |
} |
| 724 |
% \end{macrocode} |
| 725 |
% \end{macro} |
| 726 |
% \end{implementation} |
| 727 |
% |
| 728 |
% \begin{macrocode} |
| 729 |
\ptxcd_declare_caption:Nnn \authorandname {und} {and} |
| 730 |
% \end{macrocode} |
| 731 |
% \begin{documentation} |
| 732 |
% \DescribeMacro{\ptxcd_title@footnote} |
| 733 |
% |
| 734 |
% \end{documentation} |
| 735 |
% \begin{implementation} |
| 736 |
% \begin{macro}{\ptxcd_title@footnote} |
| 737 |
% \begin{macrocode} |
| 738 |
\newcommand*{\ptxcd_title@footnote}[2][1]{ |
| 739 |
\textsuperscript{#1}#2 |
| 740 |
} |
| 741 |
% \end{macrocode} |
| 742 |
% \end{macro} |
| 743 |
% \end{implementation} |
| 744 |
% |
| 745 |
% \begin{macrocode} |
| 746 |
\file_if_exist_input:n {\g_@@_config_prefix_tl\g_ptxcd_department_str.cfg} |
| 747 |
\endinput |
| 748 |
% \end{macrocode} |
| 749 |
|
| 750 |
% |
| 751 |
% \iffalse |
| 752 |
%</class|body> |
| 753 |
% \fi |
| 754 |
% |
| 755 |
% \Finale |
| 756 |
% \fi^^A No documentation on this |
| 757 |
\endinput |