diff options
author | Karl Berry <karl@freefriends.org> | 2020-09-09 20:56:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-09-09 20:56:10 +0000 |
commit | c8d420dd46400927a8d328d2254c955895eaabce (patch) | |
tree | 05564d36f1c8961613e2e36a2c618f544a3915dd /Master/texmf-dist/tex/latex/tuda-ci/tudasciposter.cls | |
parent | 2b5a395c2b964f90d9e4a0846daafd89915b6b05 (diff) |
tuda-ci (9sep20)
git-svn-id: svn://tug.org/texlive/trunk@56302 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tuda-ci/tudasciposter.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/tuda-ci/tudasciposter.cls | 372 |
1 files changed, 198 insertions, 174 deletions
diff --git a/Master/texmf-dist/tex/latex/tuda-ci/tudasciposter.cls b/Master/texmf-dist/tex/latex/tuda-ci/tudasciposter.cls index e5c121fbece..4308a4603a5 100644 --- a/Master/texmf-dist/tex/latex/tuda-ci/tudasciposter.cls +++ b/Master/texmf-dist/tex/latex/tuda-ci/tudasciposter.cls @@ -1,4 +1,4 @@ -%% This is file `tudasciposter.cls' version 2.11 (2020/06/12), +%% This is file `tudasciposter.cls' version 3.00 (2020/09/08), %% it is part of %% TUDa-CI -- Corporate Design for TU Darmstadt %% ---------------------------------------------------------------------------- @@ -26,83 +26,99 @@ %% %% ============================================================================ %% -\def\fileversion{2.11} -\def\filedate{2020/06/12} +\def\fileversion{3.00} +\def\filedate{2020/09/08} \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplPackage{tudasciposter}{\filedate}{\fileversion}{Scientific Poster Layout for TU Darmstadt} \RequirePackage{l3keys2e} -\prop_new:N \g_TUDa_clsopts_prop -\tl_new:N \g_TUDa_boxstyle_tl -\int_new:N \g_TUDa_paper_int +\prop_new:N \g_ptxcd_clsopts_prop +\tl_new:N \g_ptxcd_boxstyle_tl +\int_new:N \g_ptxcd_paper_int +\str_new:N \g_ptxcd_department_str +\str_const:Nn \c__ptxcd_base_str {sciposter} -\keys_define:nn {TUDa/poster} { +\keys_define:nn {ptxcd/poster} { accentcolor .code:n = {\PassOptionsToPackage{accent =#1}{tudacolors}}, color .meta:n = {accentcolor = #1}, textaccentcolor .code:n = {\PassOptionsToPackage{textaccent =#1}{tudacolors}}, - identbarcolor .code:n = {\PassOptionsToPackage{indentbar =#1}{tudacolors}}, + identbarcolor .code:n = {\PassOptionsToPackage{identbar =#1}{tudacolors}}, titletext .code:n = {\PassOptionsToPackage{text =#1}{tudacolors}}, - 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 = true, - thanks .tl_gset:N = \g_TUDa_footnote_label_tl, + thanks .tl_gset:N = \g_ptxcd_footnote_label_tl, thanks .initial:n = arabic*, - pdfa .bool_gset:N = \g_TUDa@pdfa_bool, + pdfa .bool_gset:N = \g_ptxcd_pdfa_bool, pdfa .initial:n = false, boxstyle .choice:, - boxstyle / official .code:n = \tl_gset:Nn \g_TUDa_boxstyle_tl {TUDa}, - boxstyle / colored .code:n= \tl_gset:Nn \g_TUDa_boxstyle_tl {TUDa-colored}, - boxstyle / boxed .code:n= \tl_gset:Nn \g_TUDa_boxstyle_tl {TUDa-boxed}, + boxstyle / official .code:n = \tl_gset:Nn \g_ptxcd_boxstyle_tl {TUDa}, + boxstyle / colored .code:n= \tl_gset:Nn \g_ptxcd_boxstyle_tl {TUDa-colored}, + boxstyle / boxed .code:n= \tl_gset:Nn \g_ptxcd_boxstyle_tl {TUDa-boxed}, boxstyle /default .meta:n = {boxstyle=official}, boxstyle .initial:n = default, - unknown .code:n = {\prop_gput:NVn \g_TUDa_clsopts_prop \l_keys_key_tl {#1}}, + unknown .code:n = {\prop_gput:NVn \g_ptxcd_clsopts_prop \l_keys_key_tl {#1}}, paper .choices:nn = {a0,a1,a2,a3}{ - \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} \PassOptionsToPackage{\l_keys_choice_tl paper}{geometry} }, paper .initial:n = a0, - fontsize .tl_gset:N = \g_TUDa_fontsize_tl, - logofile .tl_gset:N = \g_TUDa_logofile_tl, + fontsize .tl_gset:N = \g_ptxcd_fontsize_tl, + logofile .tl_gset:N = \g_ptxcd_logofile_tl, logofile .initial:n = tuda_logo, 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, + colorback .bool_gset:N = \g_ptxcd_colorback_bool, + colorback .initial:n = true, + 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,titlesepline=false} + }, + department .initial:n = default, + mecheng .meta:n = {department=mecheng}, + departmentlogofile .tl_gset:N = \g_ptxcd_departmentlogo_tl, + departmentlogofile .initial:n =, + titlesepline .bool_gset:N = \g_ptxcd_titlesepline_bool, + titlesepline .initial:n = true, } -\ProcessKeysOptions{TUDa/poster} +\ProcessKeysOptions{ptxcd/poster} -\dim_new:N \g_TUDa_margin_dim -\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: +\dim_new:N \g_ptxcd_margin_dim +\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: } -\prop_gput:NnV \g_TUDa_clsopts_prop {fontsize} \g_TUDa_fontsize_tl +\prop_gput:NnV \g_ptxcd_clsopts_prop {fontsize} \g_ptxcd_fontsize_tl -\prop_map_inline:Nn \g_TUDa_clsopts_prop { +\prop_map_inline:Nn \g_ptxcd_clsopts_prop { \tl_if_empty:nTF {#2} {\exp_args:NnV\PassOptionsToClass{#1}\l_tmpa_tl} {\clist_map_inline:nn {#2} {\PassOptionsToClass{#1=##1}{scrartcl}}} } -\bool_if:NT \g_TUDa@pdfa_bool {\PassOptionsToPackage{RGB}{xcolor}} +\bool_if:NT \g_ptxcd_pdfa_bool {\PassOptionsToPackage{RGB}{xcolor}} \ExplSyntaxOff \PassOptionsToPackage{DIV=10}{typearea} @@ -124,7 +140,7 @@ \setkomafont{title}{ \color{titlefgcolor} - \expandafter\fontsize\TUDa_title_fontsize:\selectfont + \expandafter\fontsize\ptxcd_title_fontsize:\selectfont \bfseries } @@ -139,106 +155,106 @@ \RequirePackage{tudacolors} \RequirePackage{qrcode} -\dim_const:Nn \c_TUDa_headrule_ht_dim {\c_TUDa_rulesep_dim +\c_TUDa_largerule_dim + \c_TUDa_smallrule_dim} +\dim_const:Nn \c_ptxcd_headrule_ht_dim {\c_ptxcd_rulesep_dim +\c_ptxcd_largerule_dim + \c_ptxcd_smallrule_dim} %Setup title -\box_new:N \l_TUDa_tmpa_box -\box_new:N \g_TUDa_titlegraphic_box -\box_new:N \g_TUDa_title_box -\box_new:N \g_TUDa_author_box -\box_new:N \g_TUDa_credit_box - -\TUDa@makeheadrule[ - width=\paperwidth-2\g_TUDa_margin_dim, +\box_new:N \l_ptxcd_tmpa_box +\box_new:N \g_ptxcd_titlegraphic_box +\box_new:N \g_ptxcd_title_box +\box_new:N \g_ptxcd_author_box +\box_new:N \g_ptxcd_credit_box + +\ptxcd_makeheadrule[ + width=\paperwidth-2\g_ptxcd_margin_dim, color=identbarcolor - ]{TUDa@posterrule} + ]{ptxcd_headrule} -\tl_new:N \g_TUDa_thanks_tl -\newcommand*{\TUDa@title@footnote}[2][1]{ +\tl_new:N \g_ptxcd_thanks_tl +\newcommand*{\ptxcd_title@footnote}[2][1]{ \begingroup - \TUDa_def_footnotelabel: + \ptxcd_def_footnotelabel: \footnotemark[#1]\,#2\quad \endgroup } -\tl_greplace_all:Nnn \g_TUDa_footnote_label_tl {*} {{footnote}} +\tl_greplace_all:Nnn \g_ptxcd_footnote_label_tl {*} {{footnote}} \clist_map_inline:nn {alph, arabic, fnsymbol, Alph, roman, Roman} { - \tl_greplace_all:Nnn \g_TUDa_footnote_label_tl {#1} {\use:c {#1}} + \tl_greplace_all:Nnn \g_ptxcd_footnote_label_tl {#1} {\use:c {#1}} } -\cs_set:Nn \TUDa_def_footnotelabel: { - \renewcommand*{\thefootnote}{\g_TUDa_footnote_label_tl} +\cs_set:Nn \ptxcd_def_footnotelabel: { + \renewcommand*{\thefootnote}{\g_ptxcd_footnote_label_tl} } \pagestyle{empty} \renewcommand*{\title}[1]{\gdef \@title {#1}} -\dim_new:N \g_TUDa_footheight_dim -\dim_gset:Nn \g_TUDa_footheight_dim {0.06\paperwidth}% +\dim_new:N \g_ptxcd_footheight_dim +\dim_gset:Nn \g_ptxcd_footheight_dim {0.06\paperwidth}% -\box_new:N \g_TUDa_footergraphics_box +\box_new:N \g_ptxcd_footergraphics_box \newcommand*{\footergraphics}[1]{ \begingroup - \let\height\g_TUDa_footheight_dim - \hbox_gset:Nn \g_TUDa_footergraphics_box {#1} + \let\height\g_ptxcd_footheight_dim + \hbox_gset:Nn \g_ptxcd_footergraphics_box {#1} \endgroup } -\tl_new:N \g_TUDa_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 {#1} + \tl_gset:Nn \g_ptxcd_poster_qrcode_tl {#1} } %%%%%%%%%%%%%%%%%%% % Begin of PDF/A mode %%%%%%%%%%%%%%%%%%% %PDFA -\if_bool:N \g_TUDa@pdfa_bool +\if_bool:N \g_ptxcd_pdfa_bool \PassOptionsToPackage{a-2b}{pdfx} \RequirePackage{pdfx} %%hyperref \hypersetup{hidelinks, unicode, hyperfootnotes=false} -\iow_new:N \TUDa@xmpdata_stream -\iow_open:Nn \TUDa@xmpdata_stream {\jobname.xmpdata} -\tl_new:N \g_TUDa@xmp_title -\tl_new:N \g_TUDa@xmp_author +\iow_new:N \ptxcd_xmpdata_stream +\iow_open:Nn \ptxcd_xmpdata_stream {\jobname.xmpdata} +\tl_new:N \g_ptxcd_xmp_title +\tl_new:N \g_ptxcd_xmp_author -\cs_new:Nn \TUDa_pass_TitleData: { +\cs_new:Nn \ptxcd_pass_TitleData: { \begingroup \def\newline{} \def\\{} \let\thanks\use_none:n \cs_set:Npn \and {\sep} - \bool_if:NTF \g_TUDa_pass_TitleData_bool { - \tl_gset:Nx \g_TUDa@xmp_title {\@title} + \bool_if:NTF \g_ptxcd_pass_TitleData_bool { + \tl_gset:Nx \g_ptxcd_xmp_title {\@title} \seq_clear:N \l_tmpa_seq - \seq_map_inline:Nn \g_TUDa_author_seq { + \seq_map_inline:Nn \g_ptxcd_author_seq { \seq_put_right:Nx \l_tmpa_seq {##1} } - \tl_gset:Nx \g_TUDa@xmp_author {\seq_use:Nn \l_tmpa_seq {\sep}} - \iow_now:Nx \TUDa@xmpdata_stream + \tl_gset:Nx \g_ptxcd_xmp_author {\seq_use:Nn \l_tmpa_seq {\sep}} + \iow_now:Nx \ptxcd_xmpdata_stream { - \exp_not:N \Title{\tl_to_str:V \g_TUDa@xmp_title} + \exp_not:N \Title{\tl_to_str:V \g_ptxcd_xmp_title} ^^J - \exp_not:N \Author{\tl_to_str:V \g_TUDa@xmp_author} + \exp_not:N \Author{\tl_to_str:V \g_ptxcd_xmp_author} ^^J \exp_not:N \Creator{LaTeX~ using~ the~ TUDa-CI~ Bundle} } }{ \begingroup \use:c {pdfx@localcommands} - \prop_map_function:NN \g_TUDa_MetaData_prop \TUDa_write_xmp_line:nn + \prop_map_function:NN \g_ptxcd_MetaData_prop \ptxcd_write_xmp_line:nn \endgroup } \endgroup } -\cs_new:Nn \TUDa_write_xmp_line:nn { +\cs_new:Nn \ptxcd_write_xmp_line:nn { %Fallback test for older kernels \cs_if_exist:NTF \str_uppercase:f { \tl_set:Nx \l_tmpa_tl { @@ -250,32 +266,32 @@ \tl_set:Nx \l_tmpa_tl {\tl_mixed_case:n {#1}} } \cs_if_exist:cTF {\l_tmpa_tl}{ - \iow_now:Nx \TUDa@xmpdata_stream { + \iow_now:Nx \ptxcd_xmpdata_stream { \c_backslash_str \l_tmpa_tl {\exp_not:n {#2}} } }{ - \msg_error:nnn {TUDapub} {unknown-metadata} {#1} + \msg_error:nnn{tudapub} {unknown-metadata} {#1} } } -\bool_new:N \g_TUDa_pass_TitleData_bool -\bool_gset_true:N \g_TUDa_pass_TitleData_bool -\prop_new:N \g_TUDa_MetaData_prop +\bool_new:N \g_ptxcd_pass_TitleData_bool +\bool_gset_true:N \g_ptxcd_pass_TitleData_bool +\prop_new:N \g_ptxcd_MetaData_prop \newcommand*{\Metadata}[1]{ - \bool_gset_false:N \g_TUDa_pass_TitleData_bool - \prop_gset_from_keyval:Nn \g_TUDa_MetaData_prop {#1} + \bool_gset_false:N \g_ptxcd_pass_TitleData_bool + \prop_gset_from_keyval:Nn \g_ptxcd_MetaData_prop {#1} } -\msg_new:nnnn {TUDapub} {unknown-metadata} { +\msg_new:nnnn{tudapub} {unknown-metadata} { You~ used~ the~ #1~ metadata~ entry.\\ I~ don't~ know~ how~ to~ handle~ that.\\ It~ will~ be~ ignored. } {See~ TUDa-CI~ or~ pdfx~ documentation~ for~ details.} \else: -\msg_new:nnn {tudapub} {no-pdfa}{The~ tudapub~ class~ won't~ create~ PDF/A-mode.} -\msg_info:nn {tudapub} {no-pdfa} +\msg_new:nnn{tudapub} {no-pdfa}{The~ tudapub~ class~ won't~ create~ PDF/A-mode.} +\msg_info:nn{tudapub} {no-pdfa} %%hyperref \RequirePackage[hidelinks, unicode,hyperfootnotes=false]{hyperref} \fi: @@ -286,13 +302,13 @@ %redefine \author to manage \and and \thanks -\seq_new:N \g_TUDa_author_seq +\seq_new:N \g_ptxcd_author_seq \renewcommand*\author[1]{ - \seq_gset_split:Nnn \g_TUDa_author_seq {\and} {#1} + \seq_gset_split:Nnn \g_ptxcd_author_seq {\and} {#1} } -\msg_new:nnn {TUDaSciPoster} {unknown-language} { +\msg_new:nnn{tudasciposter} {unknown-language} { You~selected~an~unknown~language~#1.\\ The~Variable~#2~does~not~have~a~predefined~value.\\ Ensure~to~redefine~#2~to~match~your~language.\\ @@ -300,7 +316,7 @@ } \providecommand*\authorandname{ - \msg_warning:nnxxx {TUDaSciPoster} {unknown-language} + \msg_warning:nnxxx{tudasciposter} {unknown-language} {\languagename} {\exp_not:N \authorandname} {und} und } @@ -310,7 +326,7 @@ \renewcommand*{\@author}{ - \seq_use:Nnnn \g_TUDa_author_seq {~\authorandname{}~} {,~} {~\&~} + \seq_use:Nnnn \g_ptxcd_author_seq {~\authorandname{}~} {,~} {~\&~} } \newcommand\titlegraphic[1]{\def\@titlegraphic{#1}} @@ -336,7 +352,7 @@ } \newlength{\contentwidth} -\setlength{\contentwidth}{\dimexpr\paperwidth-2\g_TUDa_margin_dim\relax} +\setlength{\contentwidth}{\dimexpr\paperwidth-2\g_ptxcd_margin_dim\relax} \newlength{\contentheight} @@ -345,86 +361,92 @@ { spread, parbox=false, - bottom=\dim_eval:n {\g_TUDa_margin_dim - \bool_if:NT \g_TUDa_poster_foot_bool {+\g_TUDa_footheight_dim + 3\c_TUDa_rulesep_dim} + bottom=\dim_eval:n {\g_ptxcd_margin_dim + \bool_if:NT \g_ptxcd_poster_foot_bool {+\g_ptxcd_footheight_dim + 3\c_ptxcd_rulesep_dim} }, - left=\g_TUDa_margin_dim, - right=\g_TUDa_margin_dim, - before= {\TUDa@poster_setup_title_box:}, + left=\g_ptxcd_margin_dim, + right=\g_ptxcd_margin_dim, + before= {\ptxcd_poster_setup_title_box:}, top= \dim_eval:n { - \g_TUDa_margin_dim - +\box_ht:N \TUDa@posterrule_box - +\box_dp:N \TUDa@posterrule_box -+ \g_TUDa_titleblock_dim - +4\c_TUDa_rulesep_dim - +\box_ht:N \g_TUDa_author_box - +\box_dp:N \g_TUDa_author_box + \bool_if:NF \g_ptxcd_colorback_bool {1.5} + \g_ptxcd_margin_dim + +\box_ht:N \ptxcd_headrule_box + +\box_dp:N \ptxcd_headrule_box + +\g_ptxcd_titleblock_dim + +4\c_ptxcd_rulesep_dim + +\box_ht:N \g_ptxcd_author_box + +\box_dp:N \g_ptxcd_author_box }, overlay={% - \coordinate(topleft) at ([xshift=\g_TUDa_margin_dim, yshift=-\g_TUDa_margin_dim]current~page.north~ west); - \coordinate(topright) at ([xshift=-\g_TUDa_margin_dim, yshift=-\g_TUDa_margin_dim]current~page.north~ east); - \coordinate(bottomleft) at ([xshift=\g_TUDa_margin_dim, yshift=\g_TUDa_margin_dim]current~page.south~ west); - \coordinate(bottomright) at ([xshift=-\g_TUDa_margin_dim, yshift=\g_TUDa_margin_dim]current~page.south~ east); + \coordinate(topleft) at ([xshift=\g_ptxcd_margin_dim, yshift=-\g_ptxcd_margin_dim]current~page.north~ west); + \coordinate(topright) at ([xshift=-\g_ptxcd_margin_dim, yshift=-\g_ptxcd_margin_dim]current~page.north~ east); + \coordinate(bottomleft) at ([xshift=\g_ptxcd_margin_dim, yshift=\g_ptxcd_margin_dim]current~page.south~ west); + \coordinate(bottomright) at ([xshift=-\g_ptxcd_margin_dim, yshift=\g_ptxcd_margin_dim]current~page.south~ east); + \dim_gset:Nn \g_ptxcd_titleindent_dim {\bool_if:NTF \g_ptxcd_colorback_bool {3\c_ptxcd_rulesep_dim} {\c_zero_dim}} - \node[inner~sep=0pt, anchor=north~west](identbar) at (topleft){\TUDa@posterrule}; + \node[inner~sep=0pt, anchor=north~west](identbar) at (topleft){\ptxcd_headrule}; + \bool_if:NTF \g_ptxcd_colorback_bool + \fill \path [identbarcolor] + (identbar.south~east)rectangle([yshift=-\g_ptxcd_titleblock_dim]identbar.south~west) coordinate(bottomlefttitleblock); - \fill[identbarcolor] - (identbar.south~east)rectangle([yshift=-\g_TUDa_titleblock_dim]identbar.south~west) coordinate(bottomlefttitleblock); - \node[anchor=north~east,inner~sep=0pt,minimum~width=2.5\c_TUDa_logoheight_dim](TUDalogo) at ([xshift=.3\c_TUDa_logoheight_dim,yshift=-.5\c_TUDa_logoheight_dim]identbar.south~east){ - \includegraphics[height=\c_TUDa_logoheight_dim]{\g_TUDa_logofile_tl}}; + \node[anchor=north~east,inner~sep=0pt,minimum~width=2.5\c_ptxcd_logoheight_dim](TUDalogo) at ([xshift=.3\c_ptxcd_logoheight_dim,yshift=-.5\c_ptxcd_logoheight_dim]identbar.south~east){ + \includegraphics[height=\c_ptxcd_logoheight_dim]{\g_ptxcd_logofile_tl}}; - \node[inner~sep=0pt,text~width=2.2\c_TUDa_logoheight_dim,align=right,anchor=north~west,](titlegraphic) at ([yshift=-\c_TUDa_rulesep_dim]TUDalogo.south~west){\box_use:N \g_TUDa_titlegraphic_box}; + \node[inner~sep=0pt,text~width=2.2\c_ptxcd_logoheight_dim,align=right,anchor=north~west,](titlegraphic) at ([yshift=-\c_ptxcd_rulesep_dim]TUDalogo.south~west){\box_use:N \g_ptxcd_titlegraphic_box}; - \node[anchor=north~west,inner~sep=0pt,] (title) at ([xshift=3\c_TUDa_rulesep_dim,yshift=-.5\c_TUDa_logoheight_dim]identbar.south~west) {\box_use:N \g_TUDa_title_box}; + \node[anchor=north~west,inner~sep=0pt,] (title) at ([ + xshift=\g_ptxcd_titleindent_dim,yshift=-.5\c_ptxcd_logoheight_dim]identbar.south~west) {\box_use:N \g_ptxcd_title_box}; - \draw[line~ width=.5\c_TUDa_smallrule_dim](bottomlefttitleblock)--++(\contentwidth,0); + \bool_if:NT \g_ptxcd_titlesepline_bool + {\draw[line~ width=.5\c_ptxcd_smallrule_dim](bottomlefttitleblock)--++(\contentwidth,0);} - \node[anchor=north~west, inner~xsep=0pt, inner~ ysep=\c_TUDa_rulesep_dim] (author) at ([xshift=3\c_TUDa_rulesep_dim]bottomlefttitleblock) {\box_use:N \g_TUDa_author_box}; + \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}; - \draw[line~ width=.5\c_TUDa_smallrule_dim](author.south-|identbar.west)--++(\contentwidth,0); + \draw[line~ width=.5\c_ptxcd_smallrule_dim](author.south-|identbar.west)--++(\contentwidth,0); + \bool_if:NT \g_ptxcd_poster_foot_bool {\__ptxcd_typeset_footer:} + }} +} - \bool_if:NT \g_TUDa_poster_foot_bool { +\cs_new:Nn \__ptxcd_typeset_footer: { \coordinate(lastpos) at (bottomright); - \tl_if_empty:NF \g_TUDa_poster_qrcode_tl - { - \node[anchor=south~east, inner~sep=\z@] (qrcode)at (lastpos) - { - \exp_args:NnV \use:n {\qrcode[height=\dim_use:N \g_TUDa_footheight_dim]}\g_TUDa_poster_qrcode_tl - }; - \coordinate (lastpos) at (qrcode.south~west); - } - \box_if_empty:NF \g_TUDa_footergraphics_box { - \node[anchor=south~east, inner~sep=\z@] at (lastpos) { - \accentfont - \box_use:N \g_TUDa_footergraphics_box - }; - } - \node[anchor=north~ west, inner~ sep=\z@] (infofooter) at ([yshift=\g_TUDa_footheight_dim]bottomleft) { - \parbox{\dim_eval:n {\contentwidth - -\box_wd:N \g_TUDa_footergraphics_box - \tl_if_empty:NF \g_TUDa_poster_qrcode_tl {-\g_TUDa_footheight_dim-\c_TUDa_rulesep_dim} - }}{ - \rule{\linewidth}{.5\c_TUDa_smallrule_dim}\\ - \accentfont\small\g_TUDa_poster_foot_tl - \par\medskip - \let\footnotetext\TUDa@title@footnote - \g_TUDa_thanks_tl} - }; - - -} - }} + \tl_if_empty:NF \g_ptxcd_poster_qrcode_tl + { + \node[anchor=south~east, inner~sep=\z@] (qrcode)at (lastpos) + { + \exp_args:NnV \use:n {\qrcode[height=\dim_use:N \g_ptxcd_footheight_dim]}\g_ptxcd_poster_qrcode_tl + }; + \coordinate (lastpos) at (qrcode.south~west); + } + \box_if_empty:NF \g_ptxcd_footergraphics_box { + \node[anchor=south~east, inner~sep=\z@] at (lastpos) { + \accentfont + \box_use:N \g_ptxcd_footergraphics_box + }; + } + \node[anchor=north~ west, inner~ sep=\z@] (infofooter) at ([yshift=\g_ptxcd_footheight_dim]bottomleft) { + \parbox{\dim_eval:n {\contentwidth + -\box_wd:N \g_ptxcd_footergraphics_box + \tl_if_empty:NF \g_ptxcd_poster_qrcode_tl {-\g_ptxcd_footheight_dim-\c_ptxcd_rulesep_dim} + }}{ + \rule{\linewidth}{.5\c_ptxcd_smallrule_dim}\\ + \accentfont\small\g_ptxcd_poster_foot_tl + \par\medskip + \let\footnotetext\ptxcd_title@footnote + \g_ptxcd_thanks_tl} + }; } % Background Colors \colorlet{backgroundcolor}{white} \colorlet{framecolor}{white} % Title Colors -\colorlet{titlefgcolor}{textonaccentcolor} +\bool_if:NTF \g_ptxcd_colorback_bool + {\colorlet{titlefgcolor}{textonaccentcolor}} + {\colorlet{titlefgcolor}{black}} \colorlet{titlebgcolor}{accentcolor} % Block Colors \colorlet{blocktitlebgcolor}{accentcolor} @@ -437,38 +459,39 @@ \colorlet{innerblockbodybgcolor}{textonaccentcolor} \colorlet{innerblockbodyfgcolor}{black} -\dim_new:N \g_TUDa_titleblock_dim +\dim_new:N \g_ptxcd_titleblock_dim +\dim_new:N \g_ptxcd_titleindent_dim -\cs_new:Nn \TUDa@poster_setup_title_box: { - \hbox_gset:Nn \g_TUDa_title_box { +\cs_new:Nn \ptxcd_poster_setup_title_box: { + \hbox_gset:Nn \g_ptxcd_title_box { \parbox{.65\paperwidth}{ \raggedright \usekomafont{disposition}\usekomafont{title}\leavevmode\@title \par } } - \hbox_gset:Nn \g_TUDa_author_box { - \parbox{\dimexpr\contentwidth-6\c_TUDa_rulesep_dim\relax}{ - \TUDa_def_footnotelabel: + \hbox_gset:Nn \g_ptxcd_author_box { + \parbox{\dimexpr\contentwidth-6\c_ptxcd_rulesep_dim\relax}{ + \ptxcd_def_footnotelabel: {\usekomafont{author}\@author\\}%\\[.2\titleinnersep] - \tl_gset:No \g_TUDa_thanks_tl {\@thanks} + \tl_gset:No \g_ptxcd_thanks_tl {\@thanks} \@institute } } \tl_if_empty:NF \@titlegraphic { - \hbox_gset:Nn \g_TUDa_titlegraphic_box { - \parbox{2.2\c_TUDa_logoheight_dim}{ + \hbox_gset:Nn \g_ptxcd_titlegraphic_box { + \parbox{2.2\c_ptxcd_logoheight_dim}{ \raggedleft \@titlegraphic } } } - \dim_gset:Nn \g_TUDa_titleblock_dim { + \dim_gset:Nn \g_ptxcd_titleblock_dim { \dim_max:nn {\dim_max:nn - {2\c_TUDa_logoheight_dim} - {\box_ht:N \g_TUDa_titlegraphic_box +\box_dp:N \g_TUDa_titlegraphic_box+1.8\c_TUDa_logoheight_dim} + {2\c_ptxcd_logoheight_dim} + {\box_ht:N \g_ptxcd_titlegraphic_box +\box_dp:N \g_ptxcd_titlegraphic_box+1.8\c_ptxcd_logoheight_dim} } - {\box_ht:N \g_TUDa_title_box+ \box_dp:N \g_TUDa_title_box+.8\c_TUDa_logoheight_dim} + {\box_ht:N \g_ptxcd_title_box+ \box_dp:N \g_ptxcd_title_box+.8\c_ptxcd_logoheight_dim} } } @@ -483,15 +506,15 @@ coltext=black, colback=white, size=minimal, - boxrule=.5\c_TUDa_smallrule_dim, + boxrule=.5\c_ptxcd_smallrule_dim, leftrule=\z@, rightrule=\z@, fonttitle=\usekomafont{disposition}\usekomafont{section}, before~title={\strut}, - toptitle=.5\c_TUDa_rulesep_dim, - bottomtitle=.5\c_TUDa_rulesep_dim, - top=\c_TUDa_rulesep_dim, - bottom=\c_TUDa_rulesep_dim, + toptitle=.5\c_ptxcd_rulesep_dim, + bottomtitle=.5\c_ptxcd_rulesep_dim, + top=\c_ptxcd_rulesep_dim, + bottom=\c_ptxcd_rulesep_dim, frame~code={ \iftcb@hasTitle \fill[tcbcolframe](frame.north~west)rectangle(title.north~east); @@ -511,8 +534,8 @@ TUDa-colored/.style = { TUDa, - left=.5\c_TUDa_rulesep_dim, - right=.5\c_TUDa_rulesep_dim, + left=.5\c_ptxcd_rulesep_dim, + right=.5\c_ptxcd_rulesep_dim, colbacktitle=blocktitlebgcolor, coltitle=blocktitlefgcolor, colback=blockbodybgcolor, @@ -537,8 +560,8 @@ coltitle=blocktitlefgcolor, colback=blockbodybgcolor, coltext=blockbodyfgcolor, - boxsep=\c_TUDa_rulesep_dim, - boxrule=.5\c_TUDa_smallrule_dim, + boxsep=\c_ptxcd_rulesep_dim, + boxrule=.5\c_ptxcd_smallrule_dim, titlerule=\z@, arc=1ex, auto~outer~arc, @@ -559,15 +582,16 @@ } %Select default box styles according to style option -\tcbposterset{boxes ={\g_TUDa_boxstyle_tl}, poster={spacing=5cm}} +\tcbposterset{boxes ={\g_ptxcd_boxstyle_tl}, poster={spacing=5cm}} \tcbset{ - every~ box~ on~ layer~ 3/.style={reset,\g_TUDa_boxstyle_tl -inner}, - every~ box~ on~ layer~ 4/.style={reset,\g_TUDa_boxstyle_tl -inner}, + every~ box~ on~ layer~ 3/.style={reset,\g_ptxcd_boxstyle_tl -inner}, + every~ box~ on~ layer~ 4/.style={reset,\g_ptxcd_boxstyle_tl -inner}, } %ADjust caption indent \setcapindent{1em} +\file_if_exist_input:n {tuda\g_ptxcd_department_str.cfg} \endinput %end of tudasciposter.cls |