Professional Documents
Culture Documents
6 Side by Side: 6.1 Basic Settings
6 Side by Side: 6.1 Basic Settings
A side by side box is a special tcolorbox P. 12 where the upper and lower part of the box are
set side by side. All boxes of this kind are unbreakable.
Further side by side options for code examples are /tcb/listing side text P. 304 ,
! /tcb/text side listing P. 304 , /tcb/listing outside text P. 304 , and /tcb/text
outside listing P. 304 .
\tcbset{colback=red!5!white,colframe=red!75!black,fonttitle=\bfseries}
\begin{tcolorbox}[title=My title,sidebyside]
This is the upper (\textit{left-handed}) part.
\tcblower
This is the lower (\textit{right-handed}) part.
\end{tcolorbox}
My title
This is the upper (left-handed) part. This is the lower (right-handed) part.
% \usepackage{lipsum}
% \tcbuselibrary{skins}
\begin{tcolorbox}[bicolor,sidebyside,righthand width=3cm,
sharp corners,boxrule=.4pt,colback=green!5,colbacklower=green!50!black!50]
\lipsum[2]
\tcblower
\includegraphics[width=\linewidth]{goldshade}%
\end{tcolorbox}
109