diff --git a/ptbposter/ptbposter-tcb.sty b/ptbposter/ptbposter-tcb.sty new file mode 100644 index 0000000000000000000000000000000000000000..25b734dcf59e2bb896aed2c7de9402c27de90a83 --- /dev/null +++ b/ptbposter/ptbposter-tcb.sty @@ -0,0 +1,65 @@ +\ProvidesPackage{ptbposter-add}[2019/05/10 v0.1a ptbposter/tcolorbox (RN)] + +\newcommand*\PTB@showframe{false} +\DeclareOption{showframe}{% + \def\PTB@showframe{true} +}% +\DeclareOption*{\OptionNotUsed} +\ProcessOptions\relax + +\RequirePackage[most]{tcolorbox} +\tcbuselibrary{poster} +\usetikzlibrary{shadings} + +\colorlet{backgroundTop}{Goldenrod2!10} +\colorlet{backgroundBottom}{Goldenrod2!70} +\colorlet{boxBackground}{white} + +\tcbposterset{% + poster={% + columns= 3, + rows = 5, + spacing=\PTB@texthsep, + showframe=\PTB@showframe, + }, + coverage={% + height=\textheight, + 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, + colback=boxBackground, + %opacityback=0.75,% ???? + colframe=PTBcolor, + coltitle=white, + fonttitle =\sffamily\bfseries, + title style={ + PTBcolor + }, + valign=top% center + } +}% + +\renewcommand*\backgroundContent{% + \begin{tikzpicture}% + \shade[top color=backgroundTop, bottom color=backgroundBottom,% + shading angle=\ifPTB@landscape 35.26\else 54.74\fi](0,0)% + rectangle(\PTB@framewidth,\PTB@frameheight);% + \end{tikzpicture}% +} + +\AtBeginDocument{% + \begin{tcbposter}% +} +\AtEndDocument{% + \end{tcbposter}% +} + +\endinput diff --git a/ptbposter/ptbposter.cls b/ptbposter/ptbposter.cls index e1b34cd6c0ad35c51c88661121f6de1229d01da9..e6c1bf1e44ff9320e8297fa654e41b8c143adfcf 100644 --- a/ptbposter/ptbposter.cls +++ b/ptbposter/ptbposter.cls @@ -26,7 +26,7 @@ \newcommand*\authorFontSize{} \newcommand*\footFontSize{} \newcommand*\titleFontSize{} -\newcommand*\PTBinnerBG{} +\newcommand*\backgroundContent{} \newcommand\PTB@tempa{} \newcommand\PTB@tempb{} @@ -267,7 +267,7 @@ % blauer Rahmen \put(\PTB@leftmargin,\dimexpr-\textheight-2\PTB@textvsep-\PTB@topmargin)% {\framebox(\dimexpr\textwidth+2\PTB@texthsep,% - \dimexpr\textheight+2\PTB@textvsep){\PTBinnerBG}}% + \dimexpr\textheight+2\PTB@textvsep){\backgroundContent}}% } \AddToShipoutPictureFG*{% Fuß (relativ zur unteren Kante des Textbereichs) diff --git a/ptbposter/tcb-example1.pdf b/ptbposter/tcb-example1.pdf new file mode 100644 index 0000000000000000000000000000000000000000..5d14e623ba437e8a3310ac16ef6b7c7f482e12ac Binary files /dev/null and b/ptbposter/tcb-example1.pdf differ diff --git a/ptbposter/tcb-example1.tex b/ptbposter/tcb-example1.tex new file mode 100644 index 0000000000000000000000000000000000000000..5a37d37f02129a8197e358d0917c4f60561454d6 --- /dev/null +++ b/ptbposter/tcb-example1.tex @@ -0,0 +1,80 @@ + +\documentclass[sanserif]{ptbposter} +%\documentclass[sanserif,english]{ptbposter} +\usepackage[showframe]{ptbposter-tcb} + +\phone{+49-30-3481-7316} +\fax{+49-30-3481-7503} +\email{Rolf.Niepraschk@ptb.de} +\workingGroup{7.54 Vakuummetrologie} +\department{7.5 Wärme und Vakuum} +\location{10587 Berlin} +\street{Abbestraße 2--12} +\QRcode{http://www.ptb.de/cms/fachabteilungen/abt7/fb-75/ag-754.html} + +\Author{Rolf}{Niepraschk}[Physikalisch-Technische Bundesanstalt] +\Author*{Max}{Mustermann} +\Author{Ellen}{Bogen}[Muster Universität Oberstadt] +\Author*{Peter}{Silie}[XYZ GmbH] + +\logo{Logo754.pdf} + +%%\scaleFontSizes{1.05}% Werte nahe an "1" wählen! +%%\scaletoPaper{a4}% ??? + +\colorlet{boxBackground}{black!7} + +\title{Poster-Test mit \texttt{tcolorbox/poster}} + +\begin{document} + \begin{posterboxenv}[title=BlaBla]{name=A,column=3} + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + \end{posterboxenv} + \begin{posterboxenv}[title=BlaBla]{name=B,row=2,column=1,span=2} + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + \end{posterboxenv} + \begin{posterboxenv}[title=BlaBla]{name=C,row=3,column=2,span=2,rowspan=2} + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + Etwas Text Etwas Text Etwas Text Etwas Text Etwas Text + \end{posterboxenv} + \begin{posterboxenv}{column=1,above=bottom} + For all natural number $n$ it holds: + \begin{equation} + \tcbhighmath{\sum\limits_{i=1}^n i = \frac{n(n+1)}{2}.} + \end{equation} + \end{posterboxenv} + \begin{posterboxenv}[title=Verweise]{name=E,row=5,column=2,span=2} + \begin{itemize} + \item Thomas F.~Sturm: The tcolorbox package, Library poster, + S.~408--420, + \url{http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf} + \end{itemize} + \end{posterboxenv} +\end{document} + + +