summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tuda-ci/tudaposter.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/tudaposter.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/tudaposter.cls')
-rw-r--r--Master/texmf-dist/tex/latex/tuda-ci/tudaposter.cls419
1 files changed, 212 insertions, 207 deletions
diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudaposter.cls b/Master/texmf-dist/tex/latex/tuda-ci/tudaposter.cls
index c685aff27d8..a5a614ceb12 100644
--- a/Master/texmf-dist/tex/latex/tuda-ci/tudaposter.cls
+++ b/Master/texmf-dist/tex/latex/tuda-ci/tudaposter.cls
@@ -1,9 +1,9 @@
-%% This is file `tudaposter.cls' version 2.09 (2020/03/09),
+%% This is file `tudaposter.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,52 +26,55 @@
%%
%% ============================================================================
%%
-\def\fileversion{2.09}
-\def\filedate{2020/03/09}
+\def\fileversion{3.10}
+\def\filedate{2021/02/05}
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
\ProvidesExplPackage{tudaposter}{\filedate}{\fileversion}{Poster Layouts for the Corporate Design of TU Darmstadt}
\RequirePackage{l3keys2e}
-\bool_new:N \g_TUDa_logo@inhead_bool
-\dim_new:N \g_TUDa_margin_dim
-\int_new:N \g_TUDa_paper_int
-\int_new:N \g_TUDa_postertype_int
+\bool_new:N \g_ptxcd_logo_inhead_bool
+\dim_new:N \g_ptxcd_margin_dim
+\int_new:N \g_ptxcd_paper_int
+\int_new:N \g_ptxcd_postertype_int
+\str_new:N \g_ptxcd_department_str
-\keys_define:nn {TUDa/poster} {
+\str_const:Nn \c__ptxcd_base_str {poster}
+
+\keys_define:nn {ptxcd/poster} {
accentcolor .code:n = {\PassOptionsToPackage{accent=#1}{tudacolors}},
color .code:n = {\PassOptionsToPackage{color=#1}{tudacolors}},
textaccentcolor .code:n = {\PassOptionsToPackage{textaccent=#1}{tudacolors}},
identbarcolor .code:n = {\PassOptionsToPackage{identbar=#1}{tudacolors}},
logo .choice:,
- logo / head .code:n = {\bool_gset_true:N \g_TUDa_logo@inhead_bool},
- logo / body .code:n = {\bool_gset_false:N \g_TUDa_logo@inhead_bool},
- logo / top .code:n = {\bool_gset_true:N \g_TUDa_logo@inhead_bool},
- logo / bottom .code:n = {\bool_gset_false:N \g_TUDa_logo@inhead_bool},
+ logo / head .code:n = {\bool_gset_true:N \g_ptxcd_logo_inhead_bool},
+ logo / body .code:n = {\bool_gset_false:N \g_ptxcd_logo_inhead_bool},
+ logo / top .code:n = {\bool_gset_true:N \g_ptxcd_logo_inhead_bool},
+ logo / bottom .code:n = {\bool_gset_false:N \g_ptxcd_logo_inhead_bool},
logo .initial:n = {head},
- footer .bool_gset:N = \g_TUDa_poster_foot_bool,
+ footer .bool_gset:N = \g_ptxcd_poster_foot_bool,
footer .default:n = true,
footer .initial:n = false,
- footheight .dim_gset:N = \g_TUDa_footheight_dim,
+ footheight .dim_gset:N = \g_ptxcd_footheight_dim,
paper .choices:nn = {a0,a1,a2,a3,a4}{
- \int_gset_eq:NN \g_TUDa_paper_int \l_keys_choice_int
+ \int_gset_eq:NN \g_ptxcd_paper_int \l_keys_choice_int
\PassOptionsToPackage{paper=\l_keys_choice_tl}{tudarules}
- \tl_gset_eq:NN \g_TUDa_paper_tl \l_keys_choice_tl
+ \tl_gset_eq:NN \g_ptxcd_paper_tl \l_keys_choice_tl
},
fontsize .choice:,
- fontsize / auto .code:n = \tl_gclear:N \g_TUDa_fontsize_tl,
- fontsize / unknown .code:n = {\@defaultunits\@tempdima#1pt\relax\@nnil \tl_gset:Nx \g_TUDa_fontsize_tl {\the\@tempdima}},
+ fontsize / auto .code:n = \tl_gclear:N \g_ptxcd_fontsize_tl,
+ fontsize / unknown .code:n = {\@defaultunits\@tempdima#1pt\relax\@nnil \tl_gset:Nx \g_ptxcd_fontsize_tl {\the\@tempdima}},
fontsize .initial:n = auto,
- logofile .tl_gset:N = \g_TUDa_logofile_tl,
+ logofile .tl_gset:N = \g_ptxcd_logofile_tl,
logofile .initial:n = tuda_logo,
type .choice:,
type / default .code:n = {
- \int_gset:Nn \g_TUDa_postertype_int {1}
+ \int_gset:Nn \g_ptxcd_postertype_int {1}
},
type / announcement .code:n = {
- \int_gset:Nn \g_TUDa_postertype_int {2}
- \keys_set:nn {TUDa/poster}{
+ \int_gset:Nn \g_ptxcd_postertype_int {2}
+ \keys_set:nn {ptxcd/poster}{
marginpar=true,
indenttext=false,%allow overwrite - check default
logo=head,
@@ -80,25 +83,36 @@
}
},
type .initial:n = default,
- indenttext .bool_gset:N = \g_TUDa_indenttext_bool,
+ indenttext .bool_gset:N = \g_ptxcd_indenttext_bool,
indenttext .initial:n = false,
indenttext .default:n = true,
- marginpar .bool_gset:N = \g_TUDa_marginpar_bool,
+ marginpar .bool_gset:N = \g_ptxcd_marginpar_bool,
marginpar / auto .meta:n = {marginpar = true} ,
marginpar .default:n = true,
marginpar .initial:n = false,
title .choice:,
title / default .meta:n = {title=large},
- title / large .code:n = \bool_gset_false:N \g_TUDa_smalltitle_bool,
- title / small .code:n = \bool_gset_true:N \g_TUDa_smalltitle_bool,
+ title / large .code:n = \bool_gset_false:N \g_ptxcd_smalltitle_bool,
+ title / small .code:n = \bool_gset_true:N \g_ptxcd_smalltitle_bool,
title .initial:n = default,
- colorsubtitle .bool_gset:N = \g_TUDa_colorsubtitle_bool,
+ colorback .bool_gset:N = \g_ptxcd_colorback_bool,
+ colorback .initial:n = true,
+ colorsubtitle .bool_gset:N = \g_ptxcd_colorsubtitle_bool,
colorsubtitle .default:n = true,
colorsubtitle .initial:n = false,
+ 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/poster} {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 =,
}
-
-\ProcessKeysOptions{TUDa/poster}
+\ProcessKeysOptions{ptxcd/poster}
\ExplSyntaxOff
\LoadClass[parskip=half-]{scrartcl}
@@ -106,32 +120,34 @@
\RequirePackage{scrlayer-notecolumn}
\ExplSyntaxOn
-\tl_if_empty:NT \g_TUDa_paper_tl {\keys_set:nn {TUDa/poster} {paper=a0}}
+\tl_if_empty:NT \g_ptxcd_paper_tl {\keys_set:nn {ptxcd/poster} {paper=a0}}
-\bool_if:NTF \g_TUDa_smalltitle_bool {
- \file_input:n {tuda-a\int_use:N \g_TUDa_paper_int paper.clo}
- \TUDa_setup_title_sizes:
- \file_input:n {tuda-a\int_use:N \g_TUDa_paper_int paper.clo}
- \TUDa_setup_base_sizes:
+\bool_if:NTF \g_ptxcd_smalltitle_bool {
+ \file_input:n {tuda-a\int_use:N \g_ptxcd_paper_int paper.clo}
+ \ptxcd_setup_title_sizes:
+ \file_input:n {tuda-a\int_use:N \g_ptxcd_paper_int paper.clo}
+ \ptxcd_setup_base_sizes:
}{
- \int_gdecr:N \g_TUDa_paper_int
- \file_input:n {tuda-a\int_use:N \g_TUDa_paper_int paper.clo}
- \TUDa_setup_title_sizes:
- \TUDa_setup_base_sizes:
+ \int_gdecr:N \g_ptxcd_paper_int
+ \file_input:n {tuda-a\int_use:N \g_ptxcd_paper_int paper.clo}
+ \ptxcd_setup_title_sizes:
+ \ptxcd_setup_base_sizes:
}
-\setkomafont{title}{\color{textonaccentcolor}\expandafter\fontsize\TUDa_title_fontsize:\selectfont}
-\setkomafont{subtitle}{\expandafter\fontsize\TUDa_titleinfo_fontsize:\selectfont}
-\newkomafont{titleinfo}{\expandafter\fontsize\TUDa_titleinfo_fontsize:\selectfont}
+\setkomafont{title}{
+ \bool_if:NT \g_ptxcd_colorback_bool
+ {\color{textonaccentcolor}}\expandafter\fontsize\ptxcd_title_fontsize:\selectfont}
+\setkomafont{subtitle}{\expandafter\fontsize\ptxcd_titleinfo_fontsize:\selectfont}
+\newkomafont{titleinfo}{\expandafter\fontsize\ptxcd_titleinfo_fontsize:\selectfont}
\ExplSyntaxOff
-\KOMAoptions{fontsize=\csname g_TUDa_fontsize_tl\endcsname}
+\KOMAoptions{fontsize=\csname g_ptxcd_fontsize_tl\endcsname}
\ExplSyntaxOn
\RequirePackage{tudafonts}
\renewcommand*{\familydefault}{\sfdefault}
-\RequirePackage[paper=\g_TUDa_paper_tl,mode=tikz]{tudarules}
+\RequirePackage[paper=\g_ptxcd_paper_tl,mode=tikz]{tudarules}
\RequirePackage{tudacolors}
\RequirePackage{qrcode}
@@ -141,14 +157,12 @@
\newlength{\contentwidth}
-\setlength{\contentwidth}{\dimexpr\paperwidth-2\g_TUDa_margin_dim}
+\setlength{\contentwidth}{\dimexpr\paperwidth-2\g_ptxcd_margin_dim}
-\TUDa@makeheadrule[width=\contentwidth, color=identbarcolor]{TUDa@posterrule}
-
-\TUDa@makefootrule[width=\contentwidth, color=identbarcolor]{TUDa@smallrule}
+\ptxcd_makeheadrule[width=\contentwidth, color=identbarcolor]{ptxcd_headrule}
%%%%%%%%%%%%%%%%%%%%%%
-\int_case:nn {\g_TUDa_postertype_int}
+\int_case:nn {\g_ptxcd_postertype_int}
{
{1} {}
{2} {
@@ -158,140 +172,130 @@
%%%%%%%%%%%%%%%%%%%%%%
%marginpar option
-\dim_new:N \g_TUDa_marginpar_dim
+\dim_new:N \g_ptxcd_marginpar_dim
%%%%%%%%%%%%%%%%%%%%%%
-\dim_new:N \g_TUDa_titleindent_dim
+\dim_new:N \g_ptxcd_titleindent_dim
\begingroup
-\expandafter\fontsize\TUDa_title_fontsize:\selectfont
- \dim_gset:Nn \g_TUDa_titleindent_dim {.5ex}
+\expandafter\fontsize\ptxcd_title_fontsize:\selectfont
+ \dim_gset:Nn \g_ptxcd_titleindent_dim {.5ex}
\endgroup
-\dim_new:N \g_TUDa_columnSep_dim
-\dim_gset:Nn \g_TUDa_columnSep_dim {1em}
+\dim_new:N \g_ptxcd_columnSep_dim
+\dim_gset:Nn \g_ptxcd_columnSep_dim {1em}
\RequirePackage{geometry}
\geometry{
- margin= \g_TUDa_margin_dim,
+ margin= \g_ptxcd_margin_dim,
hmargin = \dim_eval:n {
- \g_TUDa_margin_dim +
- \bool_if:NTF \g_TUDa_indenttext_bool
- {\g_TUDa_titleindent_dim} {0pt}
+ \g_ptxcd_margin_dim +
+ \bool_if:NTF \g_ptxcd_indenttext_bool
+ {\g_ptxcd_titleindent_dim} {0pt}
},
top=\dim_eval:n {
- \box_ht:N \TUDa@posterrule_box + \box_dp:N \TUDa@posterrule_box
- + .5\c_TUDa_logoheight_dim
- +\g_TUDa_margin_dim}
+ \box_ht:N \ptxcd_headrule_box + \box_dp:N \ptxcd_headrule_box
+ + .5\c_ptxcd_logoheight_dim
+ +\g_ptxcd_margin_dim}
}
-\bool_if:NTF \g_TUDa_marginpar_bool {
- \dim_gset:Nn \g_TUDa_marginpar_dim {2.2\c_TUDa_logoheight_dim}
+\bool_if:NTF \g_ptxcd_marginpar_bool {
+ \dim_gset:Nn \g_ptxcd_marginpar_dim {2.2\c_ptxcd_logoheight_dim}
\geometry{
- includemp, marginpar=\g_TUDa_marginpar_dim, marginparsep=\g_TUDa_columnSep_dim,
+ includemp, marginpar=\g_ptxcd_marginpar_dim, marginparsep=\g_ptxcd_columnSep_dim,
right = \dim_eval:n {
- \g_TUDa_margin_dim +
- \bool_if:nTF {\g_TUDa_indenttext_bool && !\g_TUDa_marginpar_bool}
- {\g_TUDa_titleindent_dim} {0pt}
+ \g_ptxcd_margin_dim +
+ \bool_if:nTF {\g_ptxcd_indenttext_bool && !\g_ptxcd_marginpar_bool}
+ {\g_ptxcd_titleindent_dim} {0pt}
},
}
\KOMAoptions{mpinclude}
}{
- \dim_gzero:N \g_TUDa_marginpar_dim
+ \dim_gzero:N \g_ptxcd_marginpar_dim
\geometry{
nomarginpar,
right = \dim_eval:n {
- \bool_if:NT \g_TUDa_indenttext_bool
- {\g_TUDa_titleindent_dim}
- + \g_TUDa_margin_dim
+ \bool_if:NT \g_ptxcd_indenttext_bool
+ {\g_ptxcd_titleindent_dim}
+ + \g_ptxcd_margin_dim
},
}
\KOMAoptions{mpinclude=false}
}
-\bool_if:NT \g_TUDa_poster_foot_bool {
- \dim_compare:nT {\g_TUDa_footheight_dim = 0pt} {
- \dim_set:Nn \g_TUDa_footheight_dim
+\bool_if:NT \g_ptxcd_poster_foot_bool {
+ \dim_compare:nT {\g_ptxcd_footheight_dim = 0pt} {
+ \dim_set:Nn \g_ptxcd_footheight_dim
{1.5\baselineskip}
}
- \geometry{bottom=\dim_eval:n {\g_TUDa_footheight_dim+\footskip+\g_TUDa_margin_dim}}
+ \geometry{bottom=\dim_eval:n {\g_ptxcd_footheight_dim+\footskip+\g_ptxcd_margin_dim}}
}
%%%%%%%%%%%%%%%%%%%%%%
-\dim_new:N \g_TUDa_qrcode_dim
-\dim_gset:Nn \g_TUDa_qrcode_dim {.7\c_TUDa_logoheight_dim}
+\dim_new:N \g_ptxcd_qrcode_dim
+\dim_gset:Nn \g_ptxcd_qrcode_dim {.7\c_ptxcd_logoheight_dim}
\DeclareNewLayer[
background,
align=br,
- width=\g_TUDa_qrcode_dim,
- height=\g_TUDa_qrcode_dim,
- hoffset=\paperwidth-\g_TUDa_margin_dim,
- voffset=\paperheight-\g_TUDa_margin_dim,
+ width=\g_ptxcd_qrcode_dim,
+ height=\g_ptxcd_qrcode_dim,
+ hoffset=\paperwidth-\g_ptxcd_margin_dim,
+ voffset=\paperheight-\g_ptxcd_margin_dim,
mode=picture,
contents={%
- \tl_if_empty:NF \g_TUDa_poster_qrcode_tl {
- \let\width\g_TUDa_qrcode_dim
- \let\height\g_TUDa_qrcode_dim
- \g_TUDa_poster_qrcode_tl
+ \tl_if_empty:NF \g_ptxcd_poster_qrcode_tl {
+ \let\width\g_ptxcd_qrcode_dim
+ \let\height\g_ptxcd_qrcode_dim
+ \g_ptxcd_poster_qrcode_tl
}
}
]{TUDa.poster.qrcode}
-\bool_if:NTF \g_TUDa_poster_foot_bool {
- \DeclareNewLayer[
+
+\DeclareNewLayer[
clone=TUDa.poster.qrcode,
align=bl,
- hoffset=\g_TUDa_margin_dim,
- width=\paperwidth-2\g_TUDa_margin_dim,
- height=\g_TUDa_footheight_dim,
+ hoffset=\g_ptxcd_margin_dim,
+ width=\paperwidth-2\g_ptxcd_margin_dim,
+ height=\g_ptxcd_footheight_dim,
contents={
- \putUL{\rule{\layerwidth}{.5\c_TUDa_smallrule_dim}}
- \put(0,0) {
- \parbox[b][\g_TUDa_footheight_dim][c]{\layerwidth}{\strut\g_TUDa_poster_foot_tl\strut}}
- \putLL{\rule{\layerwidth}{.5\c_TUDa_smallrule_dim}}
+ \bool_if:NTF \g_ptxcd_poster_foot_bool {
+ \putUL{\rule{\layerwidth}{\g_ptxcd_titlerule_dim}}
+ \put(0,0) {\parbox[b][\g_ptxcd_footheight_dim][c]{\layerwidth}{\strut\g_ptxcd_poster_foot_tl\strut}}
+ \putLL{\rule{\layerwidth}{\g_ptxcd_titlerule_dim}}
+ }{
+ \smash{\rule{\layerwidth}{\g_ptxcd_titlerule_dim}}
+ }
}
- ]{TUDa.poster.footer}
-}{
- \DeclareNewLayer[
- clone=TUDa.poster.qrcode,
- align=bl,
- hoffset=\g_TUDa_margin_dim,
- width=\paperwidth-2\g_TUDa_margin_dim,
- height=0pt,
- contents={\smash{\rule{\layerwidth}{.5\c_TUDa_smallrule_dim}}}
- ]{TUDa.poster.footer}
-}
+]{TUDa.poster.footer}
\DeclareNewLayer[
background,mode=picture,
- width=\paperwidth-2\g_TUDa_margin_dim,
- hoffset=\g_TUDa_margin_dim,
- voffset=\g_TUDa_margin_dim+\box_ht:N \TUDa@posterrule_box + \box_dp:N \TUDa@posterrule_box,
- contents={\color{accentcolor}\rule{\layerwidth}{\layerheight}}
+ width=\paperwidth-2\g_ptxcd_margin_dim,
+ hoffset=\g_ptxcd_margin_dim,
+ voffset=\g_ptxcd_margin_dim+\box_ht:N \ptxcd_headrule_box + \box_dp:N \ptxcd_headrule_box,
+ contents=\bool_if:NT \g_ptxcd_colorback_bool {\color{accentcolor}\rule{\layerwidth}{\layerheight}},
]{TUDa.poster.background}
\DeclareNewLayer[
textarea,
foreground,
align=tr,
- hoffset=\paperwidth-\g_TUDa_margin_dim,
- width=2.2\c_TUDa_logoheight_dim,
+ hoffset=\paperwidth-\g_ptxcd_margin_dim,
+ width=2.2\c_ptxcd_logoheight_dim,
height=.5\textheight,
- contents={\box_use:N \g_TUDa_title_info_box}
+ contents={\box_use:N \g_ptxcd_title_info_box}
]{TUDa.poster.logo}
\DeclareNewLayer[
clone=TUDa.poster.background,
-% textarea,
align=tl,
- voffset=\g_TUDa_margin_dim,
- height=\box_ht:N \TUDa@posterrule_box + \box_dp:N \TUDa@posterrule_box,
+ voffset=\g_ptxcd_margin_dim,
+ height=\box_ht:N \ptxcd_headrule_box + \box_dp:N \ptxcd_headrule_box,
mode=picture,
- contents={
- \box_use:N \TUDa@posterrule_box
- }
+ contents={\box_use:N \ptxcd_headrule_box}
]{TUDa.poster.rule}
\DeclareNewLayer[
@@ -303,8 +307,8 @@
\pagestyle{TUDa.poster}
-\dim_new:N \g_TUDa_titlegraphic_max_height_dim
-\dim_new:N \g_TUDa_titleback_dim
+\dim_new:N \g_ptxcd_titlegraphic_max_height_dim
+\dim_new:N \g_ptxcd_titleback_dim
\newcommand*{\titleinfo}[1]{\def\@titleinfo{#1}}
\titleinfo{}
@@ -312,88 +316,90 @@
\renewcommand*{\maketitle}{
\begingroup
\setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
- \bool_if:NT \g_TUDa_marginpar_bool
- {\setlength{\linewidth}{\dim_eval:n {\textwidth+\g_TUDa_marginpar_dim + \marginparsep}}}
- \vbox_gset:Nn \g_TUDa_title_box
+ \bool_if:NT \g_ptxcd_marginpar_bool
+ {\setlength{\linewidth}{\dim_eval:n {\textwidth+\g_ptxcd_marginpar_dim + \marginparsep}}}
+ \vbox_gset:Nn \g_ptxcd_title_box
{
\usesizeofkomafont{title}
\parbox[t]{\linewidth}{
- \bool_if:NT \g_TUDa_smalltitle_bool {\raisebox{
- \dim_max:nn {0pt} {1.5\c_TUDa_logoheight_dim - \height}
+ \bool_if:NT \g_ptxcd_smalltitle_bool {\raisebox{
+ \dim_max:nn {0pt} {1.5\c_ptxcd_logoheight_dim - \height}
}}
{
- \begin{minipage}[b]{\bool_if:NT \g_TUDa_logo@inhead_bool {.75}\linewidth}
+ \begin{minipage}[b]{\bool_if:NT \g_ptxcd_logo_inhead_bool {.75}\linewidth}
\leavevmode\par\nointerlineskip
- \bool_if:NF \g_TUDa_indenttext_bool {\begin{addmargin}{\g_TUDa_titleindent_dim }}
+ \bool_if:NF \g_ptxcd_indenttext_bool {\begin{addmargin}{\g_ptxcd_titleindent_dim }}
\usekomafont{title}
\raggedright
\tl_if_empty:NF \@titlehead {\usekomafont{titlehead}{\@titlehead\par}}
\leavevmode\usekomafont{disposition}\usekomafont{title}%
\@title\strut\par
- \bool_if:NTF \g_TUDa_indenttext_bool {\nointerlineskip\leavevmode}{\end{addmargin}}
+ \bool_if:NTF \g_ptxcd_indenttext_bool {\nointerlineskip\leavevmode}{\end{addmargin}}
\end{minipage}
}
\par\nointerlineskip
\exp_args:Nf \tl_if_empty:nF {\@subtitle\@titleinfo} {
- \bool_if:NT \g_TUDa_indenttext_bool {\hspace*{-\g_TUDa_titleindent_dim}}\TUDa@smallrule\par
+ \bool_if:NT \g_ptxcd_indenttext_bool {\hspace*{-\g_ptxcd_titleindent_dim}}
+ \rule{\linewidth}{\g_ptxcd_titlerule_dim}
+ \par
\nointerlineskip
- \vspace{\c_TUDa_rulesep_dim}
- \bool_if:NTF \g_TUDa_indenttext_bool {\begingroup}{\begin{addmargin}{\g_TUDa_titleindent_dim }}
- \bool_if:NT \g_TUDa_colorsubtitle_bool {\color{textonaccentcolor}}
+ \vspace{\c_ptxcd_rulesep_dim}
+ \bool_if:NTF \g_ptxcd_indenttext_bool {\begingroup}{\begin{addmargin}{\g_ptxcd_titleindent_dim }}
+ \bool_if:NT \g_ptxcd_colorsubtitle_bool {\color{textonaccentcolor}}
\tl_if_empty:NF \@subtitle {{\usekomafont{subtitle}\strut\@subtitle\strut\par}}
\tl_if_empty:NF \@titleinfo {{\usekomafont{titleinfo}\@titleinfo\par}}
\nointerlineskip
- \bool_if:NTF \g_TUDa_indenttext_bool {\endgroup} {\end{addmargin}}
- \vspace{\c_TUDa_rulesep_dim}
+ \bool_if:NTF \g_ptxcd_indenttext_bool {\endgroup} {\end{addmargin}}
+ \vspace{\c_ptxcd_rulesep_dim}
\par\nointerlineskip
- \bool_if:NT \g_TUDa_indenttext_bool {\hspace*{-\g_TUDa_titleindent_dim}
+ \bool_if:NT \g_ptxcd_indenttext_bool {\hspace*{-\g_ptxcd_titleindent_dim}
}
}
\nointerlineskip
- \TUDa@smallrule
+ \rule{\linewidth}{\g_ptxcd_titlerule_dim}
}
}
\endgroup
- \TUDa_Setup_Title_box:
- \dim_gset:Nn \g_TUDa_titleback_dim {
- \bool_if:NT \g_TUDa_colorsubtitle_bool {\box_dp:N \g_TUDa_title_box}+
- \box_ht:N \g_TUDa_title_box+.5\c_TUDa_logoheight_dim
+ \ptxcd_Setup_Title_box:
+ \dim_gset:Nn \g_ptxcd_titleback_dim {
+ \bool_if:NT \g_ptxcd_colorsubtitle_bool {\box_dp:N \g_ptxcd_title_box}+
+ \box_ht:N \g_ptxcd_title_box+.5\c_ptxcd_logoheight_dim
}
\ModifyLayer[
- height=\g_TUDa_titleback_dim
+ height=\g_ptxcd_titleback_dim
]{TUDa.poster.background}
- \bool_if:NF \g_TUDa_logo@inhead_bool {
+ \bool_if:NF \g_ptxcd_logo_inhead_bool {
\ModifyLayer[
- addvoffset=\g_TUDa_titleback_dim+\c_TUDa_smallrule_dim
+ addvoffset=\g_ptxcd_titleback_dim+\c_ptxcd_smallrule_dim
]{TUDa.poster.logo}
}
- \bool_if:NT \g_TUDa_logo@inhead_bool {
- \dim_compare:nT {\box_ht:N \g_TUDa_title_info_box+ \box_dp:N \g_TUDa_title_info_box > \box_ht:N \g_TUDa_title_box}
- {\msg_warning:nn {TUDaPoster} {infobox-too-high}}
+ \bool_if:NT \g_ptxcd_logo_inhead_bool {
+ \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}
+ {\msg_warning:nn{tudaposter} {infobox-too-high}}
}
- \leavevmode\box_use:N \g_TUDa_title_box\par
- \dim_set:Nn \g_TUDa_titlegraphic_max_height_dim {\textheight-\pagetotal}
- \global\def\contentheight{\g_TUDa_titlegraphic_max_height_dim}
+ \leavevmode\box_use:N \g_ptxcd_title_box\par
+ \dim_set:Nn \g_ptxcd_titlegraphic_max_height_dim {\textheight-\pagetotal}
+ \global\def\contentheight{\g_ptxcd_titlegraphic_max_height_dim}
\tl_if_empty:NF \@titlegraphic{
- \vbox_gset:Nn \g_TUDa_titlegraphic_box {\parbox[t]{\dim_eval:n {\paperwidth-2\g_TUDa_margin_dim}}{\@titlegraphic}}
+ \vbox_gset:Nn \g_ptxcd_titlegraphic_box {\parbox[t]{\dim_eval:n {\paperwidth-2\g_ptxcd_margin_dim}}{\@titlegraphic}}
\par\nointerlineskip
- \box_use:N \g_TUDa_titlegraphic_box
+ \box_use:N \g_ptxcd_titlegraphic_box
}
\DeclareLayer[
clone=TUDa.poster.marginpar,
- height=\bool_if:NF \l_TUDa_marginpar_overlap_bool {-\box_ht:N \g_TUDa_titlegraphic_box-\box_dp:N \g_TUDa_titlegraphic_box}
- +\textheight-\box_ht:N \g_TUDa_title_box-\box_dp:N \g_TUDa_title_box-.5\c_TUDa_logoheight_dim,
- addvoffset=\bool_if:NF \l_TUDa_marginpar_overlap_bool {+\box_ht:N\g_TUDa_titlegraphic_box+\box_dp:N \g_TUDa_titlegraphic_box}
- +\box_ht:N \g_TUDa_title_box+\box_dp:N \g_TUDa_title_box+.5\c_TUDa_logoheight_dim,
+ height=\bool_if:NF \l_ptxcd_marginpar_overlap_bool {-\box_ht:N \g_ptxcd_titlegraphic_box-\box_dp:N \g_ptxcd_titlegraphic_box}
+ +\textheight-\box_ht:N \g_ptxcd_title_box-\box_dp:N \g_ptxcd_title_box-.5\c_ptxcd_logoheight_dim,
+ addvoffset=\bool_if:NF \l_ptxcd_marginpar_overlap_bool {+\box_ht:N\g_ptxcd_titlegraphic_box+\box_dp:N \g_ptxcd_titlegraphic_box}
+ +\box_ht:N \g_ptxcd_title_box+\box_dp:N \g_ptxcd_title_box+.5\c_ptxcd_logoheight_dim,
]{TUDa.poster.marginpar.title}
- \tl_if_empty:NF \g_TUDa_poster_qrcode_tl {
- \ModifyLayer[addwidth=-\g_TUDa_qrcode_dim-\c_TUDa_rulesep_dim]{TUDa.poster.footer}
+ \tl_if_empty:NF \g_ptxcd_poster_qrcode_tl {
+ \ModifyLayer[addwidth=-\g_ptxcd_qrcode_dim-\c_ptxcd_rulesep_dim]{TUDa.poster.footer}
}
\AddLayersToPageStyle{TUDa.poster.title}{TUDa.poster.marginpar.title}
@@ -406,44 +412,39 @@
\let\@titleinfo\@empty
}
-\global\def\contentwidth{\linewidth}
-\global\def\contentheight{\g_TUDa_titlegraphic_max_height_dim}
-
\def\@titlegraphic{}
\newcommand{\titlegraphic}[1]{
\def\@titlegraphic{#1}
}
-\box_new:N \g_TUDa_titlegraphic_box
+\box_new:N \g_ptxcd_titlegraphic_box
-\seq_new:N \g_TUDa_title_info_seq
+\seq_new:N \g_ptxcd_title_info_seq
-\seq_gput_right:Nn \g_TUDa_title_info_seq {
- \rlap{\includegraphics[height=\c_TUDa_logoheight_dim]{\g_TUDa_logofile_tl}}
+\seq_gput_right:Nn \g_ptxcd_title_info_seq {
+ \rlap{\includegraphics[height=\c_ptxcd_logoheight_dim]{\g_ptxcd_logofile_tl}}
}
-\box_new:N \g_TUDa_title_info_box
-\box_new:N \g_TUDa_title_box
-
-\colorlet{TUDa@InfoBoxColor}{white}
+\box_new:N \g_ptxcd_title_info_box
+\box_new:N \g_ptxcd_title_box
-\cs_new:Nn \TUDa_make_title_info_box:n {
+\cs_new:Nn \ptxcd_make_title_info_box:n {
\usekomafont{titleinfo}
\setlength{\fboxsep}{.2\baselineskip}
- \colorbox{TUDa@InfoBoxColor}{\hspace*{\dimexpr.2\c_TUDa_logoheight_dim-\fboxsep}%
- \parbox{2\c_TUDa_logoheight_dim}{
+ \colorbox{InfoBox}{\hspace*{\dimexpr.2\c_ptxcd_logoheight_dim-\fboxsep}%
+ \parbox{2\c_ptxcd_logoheight_dim}{
\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}}
}
}
}
@@ -451,20 +452,20 @@
}
-\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}
@@ -473,44 +474,44 @@
}
}
-\cs_new:Nn \TUDa_Setup_Title_box: {
- \hbox_gset:Nn \g_TUDa_title_info_box
- {\parbox{2.2\c_TUDa_logoheight_dim}{
- \seq_use:Nn \g_TUDa_title_info_seq {\par\nointerlineskip\skip_vertical:n
+\cs_new:Nn \ptxcd_Setup_Title_box: {
+ \hbox_gset:Nn \g_ptxcd_title_info_box
+ {\parbox{2.2\c_ptxcd_logoheight_dim}{
+ \seq_use:Nn \g_ptxcd_title_info_seq {\par\nointerlineskip\skip_vertical:n
{
- \box_ht:N \TUDa@posterrule_box + \box_dp:N \TUDa@posterrule_box
+ \box_ht:N \ptxcd_headrule_box + \box_dp:N \ptxcd_headrule_box
}
}
}}
}
-\tl_new:N \g_TUDa_poster_foot_tl
+\tl_new:N \g_ptxcd_poster_foot_tl
\newcommand{\footer}[1]{
- \tl_gset:Nn \g_TUDa_poster_foot_tl {#1}
+ \tl_gset:Nn \g_ptxcd_poster_foot_tl {#1}
}
-\tl_new:N \g_TUDa_poster_qrcode_tl
+\tl_new:N \g_ptxcd_poster_qrcode_tl
\newcommand*{\footerqrcode}[1]{
- \tl_gset:Nn \g_TUDa_poster_qrcode_tl
- {\raisebox{\depth}{\qrcode[height={\g_TUDa_qrcode_dim}]{#1}}}
+ \tl_gset:Nn \g_ptxcd_poster_qrcode_tl
+ {\raisebox{\depth}{\qrcode[height={\g_ptxcd_qrcode_dim}]{#1}}}
}
-\newcommand*{\footerqrcodeimg}[1]{\tl_gset:Nn \g_TUDa_poster_qrcode_tl {#1}}
+\newcommand*{\footerqrcodeimg}[1]{\tl_gset:Nn \g_ptxcd_poster_qrcode_tl {#1}}
\RedeclareSectionCommand[afterskip=1ex plus .2ex]{section}
\RedeclareSectionCommand[afterskip=.2ex plus .2ex]{subsection}
-\msg_new:nnn {TUDaPoster} {infobox-too-high} {
+\msg_new:nnn{tudaposter} {infobox-too-high} {
The~height~of~your~Infobox~exeeds~the~space~reserved~in~the~title~block.\\
You~should~probably~switch~to~logo=bottom~or~reduce~the~number/size~of~InfoBoxes.
}
-\keys_define:nn {TUDa/poster/marginparopts}{
- valign .tl_set:N = \l_TUDa_marginpar_valign_tl,
+\keys_define:nn {ptxcd/poster/marginparopts}{
+ valign .tl_set:N = \l_ptxcd_marginpar_valign_tl,
valign .initial:n = t,
- overlap .bool_set:N = \l_TUDa_marginpar_overlap_bool,
+ overlap .bool_set:N = \l_ptxcd_marginpar_overlap_bool,
overlap .initial:n = false,
overlap .default:n = true
}
@@ -521,16 +522,16 @@
\newcommand*{\infofont}{\accentfont\normalcolor\footnotesize}
\DeclareTextFontCommand{\infotext}{\infofont}
-\int_new:N \g_TUDa_marginpar_int
+\int_new:N \g_ptxcd_marginpar_int
\NewDocumentCommand{\SetMarginpar}{o+m}{
- \bool_if:NF \g_TUDa_marginpar_bool {\msg_warning:nn {TUDa/Poster} {marginpar-disabled}}
- \IfNoValueF{#1}{\keys_set:nn {TUDa/poster/marginparopts} {#1}}
- \ModifyLayer[addvoffset={-\ht\strutbox},contents={\parbox[t][\layerheight][\l_TUDa_marginpar_valign_tl]{\layerwidth}{#2}}]{TUDa.poster.marginpar}
+ \bool_if:NF \g_ptxcd_marginpar_bool {\msg_warning:nn {ptxcd/Poster} {marginpar-disabled}}
+ \IfNoValueF{#1}{\keys_set:nn {ptxcd/poster/marginparopts} {#1}}
+ \ModifyLayer[addvoffset={-\ht\strutbox},contents={\parbox[t][\layerheight][\l_ptxcd_marginpar_valign_tl]{\layerwidth}{#2\strut}}]{TUDa.poster.marginpar}
\bool_set_true:N \l_tmpa_bool
}
-\msg_new:nnnn {TUDa/Poster} {marginpar-disabled} {
+\msg_new:nnnn {ptxcd/Poster} {marginpar-disabled} {
You~are~adding~data~to~the~marginpar~box,~though~marginpar option is set to false.\\
I~will~add~it,~but~cannot~ensure~the~position.
} {
@@ -538,6 +539,10 @@
See~the~TUDa-CI~documentation~for~further~information.
}
-\addtokomafont{captionlabel}{\accentfont}
-\addtokomafont{caption}{\accentfont}
+\global\def\contentwidth{\linewidth}
+\global\def\contentheight{\g_ptxcd_titlegraphic_max_height_dim}
+
+\file_if_exist_input:n {tuda\g_ptxcd_department_str.cfg}
+
+
\endinput