| 1 |
% !TeX root = tcolorbox.tex |
| 2 |
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox) |
| 3 |
\clearpage |
| 4 |
\section{Library \mylib{poster}}\label{sec:poster}% |
| 5 |
\tcbset{external/prefix=external/poster_}% |
| 6 |
|
| 7 |
The main purpose of this library is to support creation of single page posters |
| 8 |
with |tcolorbox|es. |
| 9 |
|
| 10 |
A \refEnv{tcbposter} is a |tikzpicture| where |tcolorbox|es can be |
| 11 |
placed in a column oriented manner using \refCom{posterbox} commands. |
| 12 |
This base concept is more or less copied from the great \refPkg{baposter} package. |
| 13 |
|
| 14 |
The \mylib{raster} library, see \zvref{sec:raster}, can produce |
| 15 |
similar looking results and may be more appropriate |
| 16 |
depending on the actual project. |
| 17 |
\begin{itemize} |
| 18 |
\item The \mylib{raster} library has a flow oriented concept, just like a |
| 19 |
conventional text flow. The text flow (box flow) is a merely endless ribbon |
| 20 |
which gets broken into lines (and paragraphs) and the lines are broken |
| 21 |
into pages. \mylib{raster} shapes the boxes to convenient sizes to fill |
| 22 |
lines and pages in a pleasant way. |
| 23 |
\item The \mylib{poster} library supports a quite free placement of |
| 24 |
boxes inside a page. |
| 25 |
Basically, boxes are placed like |node|s are placed inside a |tikzpicture|. |
| 26 |
In contrast to \mylib{raster}, this is a \emph{single} page |
| 27 |
and not a flow of pages. |
| 28 |
The poster is divided into columns and rows. |
| 29 |
There is a more or less gentle force to use the columns (or spans of columns) |
| 30 |
for positioning and sizing while the row placement is completely optional. |
| 31 |
\end{itemize} |
| 32 |
The creation of this library was motivated by Ignasi. |
| 33 |
|
| 34 |
\begin{marker} |
| 35 |
Inside a |tikzpicture| there should be no embedded |tikzpicture|s. |
| 36 |
This rule is violated by the \mylib{poster} library. Be aware that there |
| 37 |
may be some unwanted interactions between the main |tikzpicture| and |
| 38 |
the embedded ones inside the |tcolorbox|es. |
| 39 |
\end{marker} |
| 40 |
|
| 41 |
The library is loaded by a package option or inside the preamble by: |
| 42 |
\begin{dispListing} |
| 43 |
\tcbuselibrary{poster} |
| 44 |
\end{dispListing} |
| 45 |
This also loads the libraries |
| 46 |
\mylib{skins}, see \zvref{sec:skins}, |
| 47 |
\mylib{breakable}, see \zvref{sec:breakable}, |
| 48 |
\mylib{magazine}, see \zvref{sec:magazine}, and |
| 49 |
\mylib{fitting}, see \zvref{sec:fitting}. |
| 50 |
|
| 51 |
|
| 52 |
%-------------------------- |
| 53 |
\subsection{Overview}\label{subsec:poster_overview} |
| 54 |
|
| 55 |
|
| 56 |
\begin{tcolorbox}[base example,hyperurl={tcolorbox-tutorial-poster.pdf},title=Click me to see the tutorial] |
| 57 |
You get the best overview of the \mylib{poster} library and its facilities, |
| 58 |
if you look at the \textbf{Poster Tutorial} which is part of the |tcolorbox| |
| 59 |
documentation:\par |
| 60 |
\texttt{tcolorbox-tutorial-poster.pdf} |
| 61 |
\end{tcolorbox} |
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
\clearpage |
| 66 |
%-------------------------- |
| 67 |
\subsection{Main Poster Environment}\label{subsec:poster_environment} |
| 68 |
|
| 69 |
\begin{docEnvironment}[doc new=2017-07-03]{tcbposter}{\oarg{options}} |
| 70 |
This creates a |tikzpicture| environment with suitable additional |
| 71 |
settings defined by the given \meta{options}. |
| 72 |
Basically, \refCom{posterbox} and \refEnv{posterboxenv} are |
| 73 |
used to place |tcolorbox|es as nodes into the environment, |
| 74 |
but additional \tikzname\ code can also be used. |
| 75 |
As \meta{options} all |/tcb/posterset/| keys may be applied, namely: |
| 76 |
\begin{itemize} |
| 77 |
\item\refKey{/tcb/posterset/poster}: poster settings like columns, rows, sizes\ldots |
| 78 |
\item\refKey{/tcb/posterset/coverage} and \refKey{/tcb/posterset/no coverage}: |
| 79 |
settings for a surrounding |tcolorbox| for background and margins. |
| 80 |
\item\refKey{/tcb/posterset/boxes}: style of the |tcolorbox|es used for the poster. |
| 81 |
\item\refKey{/tcb/posterset/fontsize}: scaling of used fonts. |
| 82 |
\end{itemize} |
| 83 |
|
| 84 |
\begin{exdispExample}{tcbposter} |
| 85 |
\begin{tcbposter}[ |
| 86 |
poster = {showframe,height=10cm,spacing=2mm}, |
| 87 |
boxes = {beamer,colframe=blue!50!black,colback=blue!50,colupper=yellow!50}, |
| 88 |
] |
| 89 |
\posterbox{name=A,column=3,row=2}{My first box} |
| 90 |
\posterbox[adjusted title=Second box] |
| 91 |
{name=B,column=2,span=2,below=A}{My second box} |
| 92 |
\posterbox[adjusted title=Third box] |
| 93 |
{name=C,column=2,between=B and bottom}{My third box} |
| 94 |
\end{tcbposter} |
| 95 |
\end{exdispExample} |
| 96 |
\end{docEnvironment} |
| 97 |
|
| 98 |
\clearpage |
| 99 |
Inside \refEnv{tcbposter}, there are several predefined \tikzname\ nodes. |
| 100 |
These nodes share a common \refKey{/tcb/poster/prefix} which is |
| 101 |
|TCBPOSTER@| by default. This prefix is used to discriminate the |
| 102 |
poster nodes from local nodes of any embedded |tikzpicture| environment. |
| 103 |
You will never need this prefix using \refCom{posterbox} and its |
| 104 |
placement options, but if you want to refer to a predefined node using |
| 105 |
pure \tikzname\ code. |
| 106 |
The predefined nodes (shown without prefix) are: |
| 107 |
\begin{itemize} |
| 108 |
\item|poster|: defines the bounding box of the poster (without the coverage). |
| 109 |
\item|top|: top position plus row spacing |
| 110 |
\item|bottom|: bottom position minus row spacing |
| 111 |
\item|middle|: vertical middle position |
| 112 |
\item|col1|, |col2|, \ldots: bounding box of column~1, column~2, \ldots |
| 113 |
\item|row1|, |row2|, \ldots: bounding box of row~1, row~2, \ldots |
| 114 |
\end{itemize} |
| 115 |
Further nodes are defined using the \refKey{/tcb/posterloc/name} option. |
| 116 |
|
| 117 |
\begin{marker} |
| 118 |
Never use a \refEnv{tcbposter} inside a \refEnv{tcbposter}. |
| 119 |
But, if you do anyway, use a different \refKey{/tcb/poster/prefix} for |
| 120 |
the embedded poster or you surely get a total mess. |
| 121 |
\end{marker} |
| 122 |
|
| 123 |
There are several properties inside a \refEnv{tcbposter} which may be useful |
| 124 |
for advanced code (skip the following on first reading): |
| 125 |
\begin{itemize} |
| 126 |
\item\docAuxCommand{tcbposterwidth}: Width of the poster (without margins). |
| 127 |
\item\docAuxCommand{tcbposterheight}: Height of the poster (without margins). |
| 128 |
\item\docAuxCommand{tcbpostercolspacing}: Column distance. |
| 129 |
\item\docAuxCommand{tcbposterrowspacing}: Row distance. |
| 130 |
\item\docAuxCommand{tcbpostercolumns}: Column quantity. |
| 131 |
\item\docAuxCommand{tcbposterrows}: Row quantity. |
| 132 |
\item\docAuxCommand{tcbpostercolwidth}: Width of a column. |
| 133 |
\item\docAuxCommand{tcbposterrowheight}: Height of a row. |
| 134 |
\end{itemize} |
| 135 |
|
| 136 |
\medskip |
| 137 |
\begin{docCommand}[doc new=2017-07-03]{tcbposterset}{\marg{options}} |
| 138 |
Sets options for every following \refEnv{tcbposter} inside the current \TeX\ group. |
| 139 |
For example, the numbers for rows and columns may be defined for the whole document by this: |
| 140 |
\begin{dispListing} |
| 141 |
\tcbposterset{poster={columns=2,rows=3}} |
| 142 |
\end{dispListing} |
| 143 |
See \refEnv{tcbposter} for all feasible options. |
| 144 |
\end{docCommand} |
| 145 |
|
| 146 |
|
| 147 |
\clearpage |
| 148 |
%-------------------------- |
| 149 |
\subsection{Poster Settings}\label{subsec:poster_settings} |
| 150 |
|
| 151 |
\begin{postersetTcbKey}[][doc new=2017-07-03]{poster}{=\marg{option list}}{style, no default} |
| 152 |
This option can be applied inside \refEnv{tcbposter} and \refCom{tcbposterset} |
| 153 |
to set the given poster \meta{option list}, e.\,g.\ |
| 154 |
\begin{dispListing} |
| 155 |
\tcbposterset{poster={width=20cm,height=15cm}} |
| 156 |
\end{dispListing} |
| 157 |
For the \meta{option list}, see the following keys. |
| 158 |
\end{postersetTcbKey} |
| 159 |
|
| 160 |
|
| 161 |
\begin{posterTcbKey}[][doc new=2017-07-03]{columns}{=\meta{number}}{no default, initially |3|} |
| 162 |
Sets the \meta{number} of columns for a \refEnv{tcbposter}. |
| 163 |
\begin{exdispExample}{columns} |
| 164 |
\begin{tcbposter}[ |
| 165 |
poster = {showframe,columns=5,rows=2,spacing=1mm,height=4cm}, |
| 166 |
] |
| 167 |
\end{tcbposter} |
| 168 |
\end{exdispExample} |
| 169 |
\end{posterTcbKey} |
| 170 |
|
| 171 |
\begin{posterTcbKey}[][doc new=2017-07-03]{rows}{=\meta{number}}{no default, initially |4|} |
| 172 |
Sets the \meta{number} of rows for a \refEnv{tcbposter}. |
| 173 |
\end{posterTcbKey} |
| 174 |
|
| 175 |
|
| 176 |
\begin{posterTcbKey}[][doc new=2017-07-03]{colspacing}{=\meta{length}}{no default, initially |4mm|} |
| 177 |
Sets \meta{length} as distance between columns. |
| 178 |
\end{posterTcbKey} |
| 179 |
|
| 180 |
\begin{posterTcbKey}[][doc new=2017-07-03]{rowspacing}{=\meta{length}}{no default, initially |4mm|} |
| 181 |
Sets \meta{length} as distance between rows. |
| 182 |
\end{posterTcbKey} |
| 183 |
|
| 184 |
\begin{posterTcbKey}[][doc new=2017-07-03]{spacing}{=\meta{length}}{style, no default, initially |4mm|} |
| 185 |
Sets \meta{length} as distance between columns and rows. |
| 186 |
\end{posterTcbKey} |
| 187 |
|
| 188 |
|
| 189 |
\begin{posterTcbKey}[][doc new=2017-07-03]{showframe}{\colOpt{=true\textbar false}}{default |true|, initially |false|} |
| 190 |
Displays a red auxiliary mesh as optical support during poster creation. |
| 191 |
Also, every \refKey{/tcb/posterloc/name} is displayed. |
| 192 |
\end{posterTcbKey} |
| 193 |
|
| 194 |
|
| 195 |
\begin{posterTcbKey}[][doc new=2017-07-03]{width}{=\meta{length}}{no default, initially \cs{linewidth}} |
| 196 |
Sets \meta{length} as width of the poster. For a typical poster, this has not |
| 197 |
to be set manually. Especially, if \refKey{/tcb/posterset/coverage} is present, |
| 198 |
use |coverage={width=|\meta{length}|}| instead to change the overall width. |
| 199 |
\end{posterTcbKey} |
| 200 |
|
| 201 |
\enlargethispage*{1cm} |
| 202 |
|
| 203 |
\begin{posterTcbKey}[][doc new=2017-07-03]{height}{=\meta{length}}{no default, initially unset} |
| 204 |
Sets \meta{length} as height of the poster. For a typical poster, this has not |
| 205 |
to be set manually, but is set automatically to an appropriate value. |
| 206 |
If \refKey{/tcb/posterset/coverage} is present, use only one if any option |
| 207 |
|coverage={height=|\meta{length}|}| or |poster={height=|\meta{length}|}|. |
| 208 |
\end{posterTcbKey} |
| 209 |
|
| 210 |
|
| 211 |
\begin{posterTcbKey}[][doc new=2017-07-03]{prefix}{=\meta{name}}{no default, initially |TCBPOSTER@|} |
| 212 |
\meta{name} is set as prefix for any \tikzname\ node which is generated |
| 213 |
automatically by the \mylib{poster} library. This encompasses predefined |
| 214 |
nodes like |top|, |bottom|, \ldots, and nodes defined by using |
| 215 |
\refKey{/tcb/posterloc/name}. Also, see \zvref{subsec:poster_environment}. |
| 216 |
For a typical poster, this value can stay as it is. |
| 217 |
\end{posterTcbKey} |
| 218 |
|
| 219 |
|
| 220 |
%-------------------------- |
| 221 |
\subsection{Coverage}\label{subsec:poster_coverage} |
| 222 |
|
| 223 |
\begin{postersetTcbKey}[][doc new=2017-07-03]{coverage}{=\marg{option list}}{style, no default} |
| 224 |
This option can be applied inside \refEnv{tcbposter} and \refCom{tcbposterset} |
| 225 |
and it adds an optional coverage for the poster which is a surrounding |tcolorbox| |
| 226 |
with the given \meta{option list}. Here, margins and background settings |
| 227 |
for the poster can be given. |
| 228 |
The \emph{coverage} has several default |tcolorbox| settings |
| 229 |
suitable for the purpose: |
| 230 |
\begin{dispListing} |
| 231 |
enhanced, frame hidden, sharp corners, boxsep=0pt, boxrule=0pt, |
| 232 |
top=4mm, bottom=4mm, left=4mm, right=4mm, |
| 233 |
toptitle=2mm, bottomtitle=2mm, colback=white |
| 234 |
\end{dispListing} |
| 235 |
|
| 236 |
The \meta{option list} can contain any |tcolorbox| option. |
| 237 |
|
| 238 |
\begin{exdispExample}{coverage} |
| 239 |
\begin{tcbposter}[ |
| 240 |
poster = {showframe,spacing=1mm}, |
| 241 |
coverage = {height=5cm, |
| 242 |
interior style={top color=yellow,bottom color=yellow!50!red}, |
| 243 |
watermark text={My Poster},watermark color=white, |
| 244 |
}, |
| 245 |
] |
| 246 |
\end{tcbposter} |
| 247 |
\end{exdispExample} |
| 248 |
|
| 249 |
\begin{itemize} |
| 250 |
\item For a typical poster, the option \refKey{/tcb/spread} will use the |
| 251 |
whole page for the poster coverage. |
| 252 |
\item Poster margins can be adapted by \refKey{/tcb/left}, \refKey{/tcb/right}, |
| 253 |
\refKey{/tcb/top}, \refKey{/tcb/bottom}. |
| 254 |
\item Poster background can be changed by \refKey{/tcb/colback}, |
| 255 |
\refKey{/tcb/interior style}, \refKey{/tcb/interior style image}, etc. |
| 256 |
\item Do not use \refKey{/tcb/poster/width} and \refKey{/tcb/poster/height} |
| 257 |
in combination with a \emph{coverage}. Note that you may use |
| 258 |
\refKey{/tcb/width} and \refKey{/tcb/height} inside |
| 259 |
the \emph{coverage} \meta{option list}. Note that this also is not |
| 260 |
necessary when \refKey{/tcb/spread} is applied. |
| 261 |
\end{itemize} |
| 262 |
\end{postersetTcbKey} |
| 263 |
|
| 264 |
|
| 265 |
\begin{postersetTcbKey}[][doc new=2017-07-03]{no coverage}{}{style, no value, initially set} |
| 266 |
Removes the surrounding |tcolorbox| completely. |
| 267 |
\end{postersetTcbKey} |
| 268 |
|
| 269 |
\clearpage |
| 270 |
%-------------------------- |
| 271 |
\subsection{Common Box Settings}\label{subsec:poster_boxsettings} |
| 272 |
|
| 273 |
|
| 274 |
\begin{postersetTcbKey}[][doc new=2017-07-03]{boxes}{=\marg{option list}}{style, no default} |
| 275 |
This option can be applied inside \refEnv{tcbposter} and \refCom{tcbposterset} |
| 276 |
and it is used to set up the style of the |tcolorbox|es inside the poster. |
| 277 |
The \meta{option list} can contain any |tcolorbox| option, but box size |
| 278 |
options are not assumed to be useful here, because the size will be |
| 279 |
determined by the placement options. |
| 280 |
|
| 281 |
\begin{exdispExample}{boxes} |
| 282 |
\begin{tcbposter}[ |
| 283 |
poster = {spacing=2mm,columns=3,rows=2}, |
| 284 |
coverage = {height=5cm, |
| 285 |
interior style={top color=yellow,bottom color=yellow!50!red}, |
| 286 |
}, |
| 287 |
boxes = {sharp corners=downhill,arc=3mm,boxrule=1mm, |
| 288 |
colback=white,colframe=cyan, |
| 289 |
title style={left color=black,right color=cyan}, |
| 290 |
fonttitle=\bfseries} |
| 291 |
] |
| 292 |
\posterbox[adjusted title=First]{column=1,row=1,span=2}{First box} |
| 293 |
\posterbox[adjusted title=Second]{column=1,row=2,span=2}{Second box} |
| 294 |
\posterbox[adjusted title=Third]{column=3,row=1,rowspan=2}{Third box} |
| 295 |
\end{tcbposter} |
| 296 |
\end{exdispExample} |
| 297 |
|
| 298 |
\end{postersetTcbKey} |
| 299 |
|
| 300 |
|
| 301 |
%-------------------------- |
| 302 |
\subsection{Font Scaling}\label{subsec:poster_fontsize} |
| 303 |
|
| 304 |
\begin{postersetTcbKey}[][doc new=2017-07-03]{fontsize}{=\meta{length}}{style, no default, initially unset} |
| 305 |
This option can be applied inside \refEnv{tcbposter} and \refCom{tcbposterset}. |
| 306 |
It uses \refKey{/tcb/fit basedim} and \refKey{/tcb/fit fontsize macros} |
| 307 |
to redefine |\normalsize| to \meta{length} and all other standard |
| 308 |
font size macros like |\small| and |\large| accordingly.\par |
| 309 |
This needs a freely scalable font family like \refPkg[lm]{lmodern} to work. |
| 310 |
If \refKey{/tcb/posterset/fontsize} is not applied, there standard |
| 311 |
font size macros are not changed in any way. |
| 312 |
|
| 313 |
\begin{dispListing} |
| 314 |
\begin{tcbposter}[ |
| 315 |
poster = {spacing=2mm,columns=3,rows=2}, |
| 316 |
coverage = {height=5cm, |
| 317 |
interior style={top color=yellow,bottom color=yellow!50!red}, |
| 318 |
}, |
| 319 |
fontsize = 15pt, % <--- \normalsize is now 15pt |
| 320 |
] |
| 321 |
... |
| 322 |
\end{dispListing} |
| 323 |
\end{postersetTcbKey} |
| 324 |
|
| 325 |
|
| 326 |
\clearpage |
| 327 |
%-------------------------- |
| 328 |
\subsection{Box Placement}\label{subsec:poster_boxplacement} |
| 329 |
|
| 330 |
\begin{docCommand}[doc new=2017-07-03]{posterbox}{\oarg{options}\marg{placement}\marg{box content}} |
| 331 |
Inside a \refEnv{tcbposter} environment, this places a |tcolorbox| with |
| 332 |
additional |tcolorbox| \meta{options} and the given \meta{box content} |
| 333 |
at a place determined by \meta{placement}. |
| 334 |
All \meta{placement} options are described in the following. |
| 335 |
Note that \meta{box content} cannot contain \emph{verbatim} material, |
| 336 |
see \refEnv{posterboxenv}. |
| 337 |
\begin{exdispExample}{posterbox} |
| 338 |
\begin{tcbposter}[ |
| 339 |
poster = {showframe,height=4cm,spacing=2mm,rows=2}, |
| 340 |
boxes = {beamer,colframe=blue!50!black,colback=blue!50,colupper=yellow!50}, |
| 341 |
] |
| 342 |
\posterbox[title=My title]{name=A,column=2,row=2}{My first box} |
| 343 |
\end{tcbposter} |
| 344 |
\end{exdispExample} |
| 345 |
\end{docCommand} |
| 346 |
|
| 347 |
\begin{docEnvironment}[doc new=2017-07-03]{posterboxenv}{\oarg{options}\marg{placement}} |
| 348 |
This is the environment version of \refCom{posterbox}, i.\,e., inside a |
| 349 |
\refEnv{tcbposter} environment, this places a |tcolorbox| with |
| 350 |
additional |tcolorbox| \meta{options} and the given \meta{environment content} |
| 351 |
at a place determined by \meta{placement}. |
| 352 |
In contrast to \refCom{posterbox}, the \meta{environment content} is |
| 353 |
allowed to contain \emph{verbatim} material. Note that the implementation |
| 354 |
of \refCom{posterbox} is more efficient than the implementation of \refEnv{posterboxenv}. |
| 355 |
|
| 356 |
\enlargethispage*{1cm} |
| 357 |
\begin{exdispExample}{posterboxenv} |
| 358 |
\begin{tcbposter}[ |
| 359 |
poster = {showframe,height=4cm,spacing=2mm,rows=2}, |
| 360 |
boxes = {size=small,beamer, |
| 361 |
colframe=blue!50!black,colback=blue!50,colupper=yellow!50}, |
| 362 |
] |
| 363 |
\begin{posterboxenv}[title=My title]{name=A,column=2,between=top and bottom} |
| 364 |
My first box. |
| 365 |
\begin{tcblisting}{size=small,colback=yellow!10} |
| 366 |
My \textbf{first} |
| 367 |
poster listing. |
| 368 |
\end{tcblisting} |
| 369 |
\end{posterboxenv} |
| 370 |
\end{tcbposter} |
| 371 |
\end{exdispExample} |
| 372 |
|
| 373 |
\end{docEnvironment} |
| 374 |
|
| 375 |
|
| 376 |
\clearpage |
| 377 |
\begin{posterlocTcbKey}[][doc new=2017-07-03]{name}{=\meta{name}}{no default, initially |@|} |
| 378 |
Sets \meta{name} as reference for the current \refCom{posterbox} or |
| 379 |
\refEnv{posterboxenv}. |
| 380 |
A \tikzname\ shape name is constructed automatically as combination |
| 381 |
of \refKey{/tcb/poster/prefix} and \meta{name}. |
| 382 |
\begin{exdispExample}{name} |
| 383 |
\begin{tcbposter}[ |
| 384 |
poster = {showframe,height=2.5cm,spacing=2mm,rows=2}, |
| 385 |
boxes = {beamer,colframe=blue!50!black,colback=blue!50,colupper=yellow!50}, |
| 386 |
] |
| 387 |
\posterbox{name=A,column=2,row=2}{My first box} |
| 388 |
\node[below right=4mm,fill=yellow] (X) at ([email protected] west) {Example A}; |
| 389 |
\draw[blue,very thick,->] (X) |- (TCBPOSTER@A); |
| 390 |
\end{tcbposter} |
| 391 |
\end{exdispExample} |
| 392 |
\end{posterlocTcbKey} |
| 393 |
|
| 394 |
|
| 395 |
\begin{posterlocTcbKey}[][doc new=2017-07-03]{column}{=\meta{number}}{no default, initially |1|} |
| 396 |
Places the box at the column denoted by \meta{number}. If \refKey{/tcb/posterloc/span} |
| 397 |
is not |1|, the box is aligned to the left side of column \meta{number}. |
| 398 |
\begin{exdispExample}{column} |
| 399 |
\begin{tcbposter}[ |
| 400 |
poster = {showframe,height=2.5cm,spacing=2mm,rows=2}, |
| 401 |
boxes = {beamer,colframe=blue!50!black,colback=blue!50,colupper=yellow!50}, |
| 402 |
] |
| 403 |
\posterbox{row=1,column=2,span=2}{First box} |
| 404 |
\posterbox{row=2,column=2,span=0.8}{Second box} |
| 405 |
\end{tcbposter} |
| 406 |
\end{exdispExample} |
| 407 |
\end{posterlocTcbKey} |
| 408 |
|
| 409 |
\enlargethispage*{1cm} |
| 410 |
\begin{posterlocTcbKey}[][doc new=2017-07-03]{column*}{=\meta{number}}{no default, initially unset} |
| 411 |
Places the box at the column denoted by \meta{number}. If \refKey{/tcb/posterloc/span} |
| 412 |
is not |1|, the box is aligned to the right side of column \meta{number}. |
| 413 |
\begin{exdispExample}{columnstar} |
| 414 |
\begin{tcbposter}[ |
| 415 |
poster = {showframe,height=2.5cm,spacing=2mm,rows=2}, |
| 416 |
boxes = {beamer,colframe=blue!50!black,colback=blue!50,colupper=yellow!50}, |
| 417 |
] |
| 418 |
\posterbox{row=1,column*=2,span=2}{First box} |
| 419 |
\posterbox{row=2,column*=2,span=0.8}{Second box} |
| 420 |
\end{tcbposter} |
| 421 |
\end{exdispExample} |
| 422 |
\end{posterlocTcbKey} |
| 423 |
|
| 424 |
|
| 425 |
\clearpage |
| 426 |
\begin{posterlocTcbKey}[][doc new=2017-07-03]{span}{=\meta{number}}{no default, initially |1|} |
| 427 |
Sets the width of the current box to span \meta{number} columns. |
| 428 |
\meta{number} is also allowed to be a real number like |0.5| or |1.7|. |
| 429 |
See \refKey{/tcb/posterloc/column} and \refKey{/tcb/posterloc/column*} |
| 430 |
for examples. |
| 431 |
\end{posterlocTcbKey} |
| 432 |
|
| 433 |
\begin{posterlocTcbKey}[][doc new=2017-07-03]{row}{=\meta{number}}{no default, initially unset} |
| 434 |
If this option is applied, the box is placed at the row denoted by \meta{number}. |
| 435 |
Also, the height is set as fixed according to \refKey{/tcb/posterloc/rowspan}. |
| 436 |
\begin{exdispExample}{row} |
| 437 |
\begin{tcbposter}[ |
| 438 |
poster = {showframe,height=2.5cm,spacing=2mm,rows=2}, |
| 439 |
boxes = {beamer,colframe=blue!50!black,colback=blue!50,colupper=yellow!50}, |
| 440 |
] |
| 441 |
\posterbox{row=1,column=1}{First box} |
| 442 |
\posterbox{row=1,column=2,rowspan=2}{Second box} |
| 443 |
\posterbox[natural height]{row=1,column=3}{Third box} |
| 444 |
\end{tcbposter} |
| 445 |
\end{exdispExample} |
| 446 |
\end{posterlocTcbKey} |
| 447 |
|
| 448 |
\begin{posterlocTcbKey}[][doc new=2017-07-03]{rowspan}{=\meta{number}}{no default, initially |1|} |
| 449 |
Sets the height of the current box to span \meta{number} rows. |
| 450 |
\meta{number} is also allowed to be a real number like |0.5| or |1.7|. |
| 451 |
\begin{exdispExample}{rowspan} |
| 452 |
\begin{tcbposter}[ |
| 453 |
poster = {showframe,height=2.5cm,spacing=2mm,rows=2}, |
| 454 |
boxes = {beamer,colframe=blue!50!black,colback=blue!50,colupper=yellow!50}, |
| 455 |
] |
| 456 |
\posterbox{row=1,column=1,rowspan=0.9}{First box} |
| 457 |
\posterbox{row=1,column=2,rowspan=1.5}{Second box} |
| 458 |
\posterbox{row=1,column=3,rowspan=2}{Third box} |
| 459 |
\end{tcbposter} |
| 460 |
\end{exdispExample} |
| 461 |
\end{posterlocTcbKey} |
| 462 |
|
| 463 |
\begin{posterlocTcbKey}[][doc new=2017-07-03]{fixed height}{}{no value, initially |0pt|} |
| 464 |
Sets the height of the current box span rows as denoted by |
| 465 |
\refKey{/tcb/posterloc/rowspan}. |
| 466 |
This can be used, if not \refKey{/tcb/posterloc/row}, but another |
| 467 |
height placement option is applied. |
| 468 |
\end{posterlocTcbKey} |
| 469 |
|
| 470 |
|
| 471 |
\clearpage |
| 472 |
\begin{posterlocTcbKey}[][doc new=2017-07-03]{below}{=\meta{name}}{no default, initially |top|} |
| 473 |
The box is placed below another box with the given \meta{name}. Also, |
| 474 |
\meta{name} can be a predefined node, see \zvref{subsec:poster_environment}. |
| 475 |
\begin{exdispExample}{below} |
| 476 |
\begin{tcbposter}[ |
| 477 |
poster = {showframe,height=3cm,spacing=2mm,rows=2}, |
| 478 |
boxes = {beamer,colframe=blue!50!black,colback=blue!50,colupper=yellow!50}, |
| 479 |
] |
| 480 |
\posterbox{name=A,column=1,below=top}{First box} |
| 481 |
\posterbox{name=B,column=1,below=A}{Second box} |
| 482 |
\posterbox{name=C,column=2,below=B}{Third box} |
| 483 |
\posterbox{name=D,column=3,below=row1}{Fourth box} |
| 484 |
\end{tcbposter} |
| 485 |
\end{exdispExample} |
| 486 |
\end{posterlocTcbKey} |
| 487 |
|
| 488 |
|
| 489 |
\begin{posterlocTcbKey}[][doc new=2017-07-03]{above}{=\meta{name}}{no default, initially unset} |
| 490 |
The box is placed above another box with the given \meta{name}. Also, |
| 491 |
\meta{name} can be a predefined node, see \zvref{subsec:poster_environment}. |
| 492 |
\begin{exdispExample}{above} |
| 493 |
\begin{tcbposter}[ |
| 494 |
poster = {showframe,height=3cm,spacing=2mm,rows=2}, |
| 495 |
boxes = {beamer,colframe=blue!50!black,colback=blue!50,colupper=yellow!50}, |
| 496 |
] |
| 497 |
\posterbox{name=A,column=1,above=bottom}{First box} |
| 498 |
\posterbox{name=B,column=1,above=A}{Second box} |
| 499 |
\posterbox{name=C,column=2,above=B}{Third box} |
| 500 |
\posterbox{name=D,column=3,above=row2}{Fourth box} |
| 501 |
\end{tcbposter} |
| 502 |
\end{exdispExample} |
| 503 |
\end{posterlocTcbKey} |
| 504 |
|
| 505 |
|
| 506 |
\clearpage |
| 507 |
\begin{posterlocTcbKey}[][doc new=2017-07-03]{at}{=\meta{name}}{no default, initially unset} |
| 508 |
The box is placed at the position with the given \meta{name}. This is |
| 509 |
quite likely a predefined node, see \zvref{subsec:poster_environment}. |
| 510 |
\begin{exdispExample}{at} |
| 511 |
\begin{tcbposter}[ |
| 512 |
poster = {showframe,height=3cm,spacing=2mm,rows=2}, |
| 513 |
boxes = {beamer,colframe=blue!50!black,colback=blue!50,colupper=yellow!50}, |
| 514 |
] |
| 515 |
\posterbox{name=A,column=1,at=middle}{First box} |
| 516 |
\posterbox{name=B,column=2,at=row1}{Second box} |
| 517 |
\end{tcbposter} |
| 518 |
\end{exdispExample} |
| 519 |
\end{posterlocTcbKey} |
| 520 |
|
| 521 |
|
| 522 |
\begin{posterlocTcbKey}[][doc new=2017-07-03]{between}{=\meta{name1} and \meta{name2}}{no default, initially unset} |
| 523 |
The box is placed below a box \meta{name1} and above another box \meta{name2}. Also, |
| 524 |
\meta{name1} and \meta{name2} can be predefined nodes, see \zvref{subsec:poster_environment}. |
| 525 |
\begin{exdispExample}{between} |
| 526 |
\begin{tcbposter}[ |
| 527 |
poster = {showframe,height=3cm,spacing=2mm,rows=2}, |
| 528 |
boxes = {beamer,colframe=blue!50!black,colback=blue!50,colupper=yellow!50}, |
| 529 |
] |
| 530 |
\posterbox{name=A,column=1,below=top}{First box} |
| 531 |
\posterbox{name=B,column=1,between=A and bottom}{Second box} |
| 532 |
\posterbox{name=C,column=2,above=bottom}{Third box} |
| 533 |
\posterbox{name=D,column=2,between=top and C,span=2}{Fourth box} |
| 534 |
\posterbox{name=E,column=3,between=D and bottom}{Fifth box} |
| 535 |
\end{tcbposter} |
| 536 |
\end{exdispExample} |
| 537 |
\end{posterlocTcbKey} |
| 538 |
|
| 539 |
|
| 540 |
\clearpage |
| 541 |
\begin{posterlocTcbKey}[][doc new=2017-07-03]{sequence}{=\meta{sequence}}{no default, initially unset} |
| 542 |
The box is broken into partial boxes. These partial boxes are placed |
| 543 |
following the given \meta{sequence} of placements. |
| 544 |
The feasible syntax for the \meta{sequence} is:\par\medskip |
| 545 |
\meta{column a} |between| \meta{name a1} |and| \meta{name a2} |then|\\ |
| 546 |
\meta{column b} |between| \meta{name b1} |and| \meta{name b2} |then|\\ |
| 547 |
\meta{column c} |between| \meta{name c1} |and| \meta{name c2} |then|\ldots\par\medskip |
| 548 |
Obviously, this places the first part box at \meta{column a} between |
| 549 |
\meta{name a2} and \meta{name a2}. The second box part is placed |
| 550 |
at \meta{column b} between |
| 551 |
\meta{name b2} and \meta{name b2}, and so on. |
| 552 |
|
| 553 |
\begin{exdispExample}{sequence} |
| 554 |
\begin{tcbposter}[ |
| 555 |
poster = {showframe,height=6cm,spacing=2mm,rows=2}, |
| 556 |
boxes = {beamer,colframe=blue!50!black,colback=blue!50,colupper=yellow!50}, |
| 557 |
] |
| 558 |
\posterbox[adjusted title=A]{name=A,column=1,below=top,span=2}{First box} |
| 559 |
\posterbox{name=B,column=2,above=bottom,span=2}{Second box} |
| 560 |
\posterbox[adjusted title=C,colframe=red!50!black,colback=red!50]{ |
| 561 |
name=C, sequence=1 between A and bottom then |
| 562 |
2 between A and B then |
| 563 |
3 between top and B |
| 564 |
}{\lipsum[2]} |
| 565 |
\end{tcbposter} |
| 566 |
\end{exdispExample} |
| 567 |
\end{posterlocTcbKey} |
| 568 |
|
| 569 |
\clearpage |
| 570 |
|
| 571 |
\begin{docTcbKey}[][doc new=2017-07-03]{placeholder}{}{style, no value} |
| 572 |
If the box content of a \refKey{/tcb/posterloc/sequence} is too short |
| 573 |
to fill all reserved box parts, the empty boxes are drawn with |
| 574 |
the \refKey{/tcb/placeholder} style. This style can be redefined, e.\,g.\ |
| 575 |
to \refKey{/tcb/blankest}, if nothing should be drawn for empty boxes. |
| 576 |
\begin{exdispExample}{placeholder} |
| 577 |
\begin{tcbposter}[ |
| 578 |
poster = {showframe,height=2.5cm,spacing=2mm,rows=2}, |
| 579 |
boxes = {beamer,colframe=blue!50!black,colback=blue!50,colupper=yellow!50}, |
| 580 |
] |
| 581 |
\posterbox{name=A,column=1,below=top,span=2}{First box} |
| 582 |
\posterbox[colframe=red!50!black,colback=red!50]{ |
| 583 |
name=B, sequence=1 between A and bottom then |
| 584 |
2 between A and bottom then |
| 585 |
3 between top and bottom |
| 586 |
}{Second box followed by placeholder boxes} |
| 587 |
\end{tcbposter} |
| 588 |
\end{exdispExample} |
| 589 |
\end{docTcbKey} |
| 590 |
|
| 591 |
|
| 592 |
|
| 593 |
\begin{posterlocTcbKey}[][doc new=2017-07-03]{xshift}{=\meta{length}}{no default, initially |0pt|} |
| 594 |
Horizontal shift of a box by \meta{length}. |
| 595 |
\begin{exdispExample}{xshift} |
| 596 |
\begin{tcbposter}[ |
| 597 |
poster = {showframe,height=3cm,spacing=2mm,rows=2}, |
| 598 |
boxes = {beamer,colframe=blue!50!black,colback=blue!50,colupper=yellow!50}, |
| 599 |
] |
| 600 |
\posterbox{name=A,column=1,row=1,xshift=6mm}{First box} |
| 601 |
\posterbox{name=B,column=2,row=2,xshift=-6mm}{Second box} |
| 602 |
\end{tcbposter} |
| 603 |
\end{exdispExample} |
| 604 |
\end{posterlocTcbKey} |
| 605 |
|
| 606 |
\clearpage |
| 607 |
|
| 608 |
\begin{posterlocTcbKey}[][doc new=2017-07-03]{yshift}{=\meta{length}}{no default, initially |0pt|} |
| 609 |
Vertical shift of a box by \meta{length}. |
| 610 |
\begin{exdispExample}{yshift} |
| 611 |
\begin{tcbposter}[ |
| 612 |
poster = {showframe,height=3cm,spacing=2mm,rows=2}, |
| 613 |
boxes = {beamer,colframe=blue!50!black,colback=blue!50,colupper=yellow!50}, |
| 614 |
] |
| 615 |
\posterbox{name=A,column=1,row=1,yshift=-4mm}{First box} |
| 616 |
\posterbox{name=B,column=2,row=2,yshift=4mm}{Second box} |
| 617 |
\end{tcbposter} |
| 618 |
\end{exdispExample} |
| 619 |
\end{posterlocTcbKey} |
| 620 |
|