diff --git a/ptbposter/ptbposter-tcb.sty b/ptbposter/ptbposter-tcb.sty index 1ddc2b8ff1ebb5522a3422bf0086585282e0ad2b..65c21e14e1516468750b24134106ed51a72849a1 100644 --- a/ptbposter/ptbposter-tcb.sty +++ b/ptbposter/ptbposter-tcb.sty @@ -1,5 +1,5 @@ -\ProvidesPackage{ptbposter-tcb}[2020/02/13 v0.1c ptbposter/tcolorbox (RN)] +\ProvidesPackage{ptbposter-tcb}[2020/02/14 v0.1d ptbposter/tcolorbox (RN)] \newcommand*\PTB@posterSet{% columns=3,rows=5,spacing=\PTB@texthsep,showframe=false,} @@ -7,10 +7,17 @@ \g@addto@macro\PTB@posterSet{#1}% } +\newcommand*\PTB@boxesSet{} +\DeclareOption{oldboxstyle}{% + \g@addto@macro\PTB@boxesSet{sharp corners=downhill,} +} + +\ProcessOptions\relax + \RequirePackage[most]{tcolorbox} \tcbuselibrary{poster} \usetikzlibrary{shadings,arrows.meta} - + \colorlet{backgroundTop}{Goldenrod2!10} \colorlet{backgroundBottom}{Goldenrod2!90} \colorlet{boxBackground}{white} @@ -30,27 +37,29 @@ width=\textwidth, interior style={opacity=0}, top=0pt,bottom=0pt,left=0pt,right=0pt - },% - boxes={ - enhanced standard jigsaw,%sharp corners=downhill, - arc=0.012\PTB@scale@base, - boxrule=\PTB@framethickness, - boxsep=0pt, - top=1ex,bottom=1ex,left=1ex,right=1ex, - toptitle=.6ex,bottomtitle=.6ex,lefttitle=1ex,righttitle=1ex, - %before title pre=\strut, - colback=boxBackground, - %opacityback=0.75,% ???? - colframe=PTBcolor, - coltitle=white, - fonttitle=\sffamily\bfseries\centering, - title style={PTBcolor}, - valign=top% center - } -}% + }% +}% + +\g@addto@macro\PTB@boxesSet{ + enhanced standard jigsaw, + arc=0.012\PTB@scale@base, + boxrule=\PTB@framethickness, + boxsep=0pt, + top=1ex,bottom=1ex,left=1ex,right=1ex, + toptitle=.6ex,bottomtitle=.6ex,lefttitle=1ex,righttitle=1ex, + %before title pre=\strut, + colback=boxBackground, + %opacityback=0.75,% ???? + colframe=PTBcolor, + coltitle=white, + fonttitle=\sffamily\bfseries\centering, + title style={PTBcolor}, + valign=top% center +} \AtBeginDocument{% - \edef\PTB@tempa{\noexpand\tcbposterset{poster={\PTB@posterSet}}}% + \protected@edef\PTB@tempa{\noexpand\tcbposterset{poster={\PTB@posterSet},% + boxes={\PTB@boxesSet}}}% \PTB@tempa \begin{tcbposter}% } diff --git a/ptbposter/tcb-example2.pdf b/ptbposter/tcb-example2.pdf index d61fdecbc4f4e65f5531caec67d81d85268da6bb..6579807dc1b1b814f44396f710a46b37d6634447 100644 Binary files a/ptbposter/tcb-example2.pdf and b/ptbposter/tcb-example2.pdf differ diff --git a/ptbposter/tcb-example2.tex b/ptbposter/tcb-example2.tex index 4fba34dbe94ce89d44b7ecc39c8208bea1522971..ed295d072d5f8625f579efa146d5a319c0caf7a4 100644 --- a/ptbposter/tcb-example2.tex +++ b/ptbposter/tcb-example2.tex @@ -3,7 +3,7 @@ %,sanserif %,a4paper ]{ptbposter} -\usepackage{ptbposter-tcb} +\usepackage[oldboxstyle]{ptbposter-tcb} \phone{+49-30-3481-7316} \fax{+49-30-3481-7503}