Skip to content
Snippets Groups Projects
Commit cf91a732 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

tcolotbox-Unterstützung

parent 0e82967e
No related branches found
No related tags found
No related merge requests found
\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
......@@ -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)
......
File added
\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}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment