0% found this document useful (0 votes)
113 views1 page

tcb/split: /begin /includegraphics /linewidth /includegraphics /linewidth /end

This document discusses the tcolorbox split option, which determines the positioning of content within a box that is split into upper and lower parts. The split option accepts a value between 0 and 1, where 0 positions the split at the top and 1 at the bottom. Examples are provided with boxes split at 0.1, 0.5, and 0.8 fractions to demonstrate how this option works.

Uploaded by

jimusos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
113 views1 page

tcb/split: /begin /includegraphics /linewidth /includegraphics /linewidth /end

This document discusses the tcolorbox split option, which determines the positioning of content within a box that is split into upper and lower parts. The split option accepts a value between 0 and 1, where 0 positions the split at the top and 1 at the bottom. Examples are provided with boxes split at 0.1, 0.5, and 0.8 fractions to demonstrate how this option works.

Uploaded by

jimusos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

\begin{tcolorbox}[colframe=blue!75!

black,colback=white,height=3cm,
space to=\myspace]
\includegraphics[width=\linewidth,
height=0.33\dimexpr\myspace]{[Link]}\\[1mm]
This is my box of height 3cm.\\[2mm]
\includegraphics[width=\linewidth,
height=0.67\dimexpr\myspace]{[Link]}
\end{tcolorbox}

This is my box of height 3cm.

/tcb/split=hfractioni
(no default)
If the height of a tcolorbox is not the natural height, the hfractioni with a value between
0 and 1 determines the positioning of the segmentation between the upper and the lower
part. Here, 0 stands for top and 1 for bottom. Note that the box is split regardless of the
actual dimensions of the text parts!
\tcbset{width=(\linewidth-2mm)/3,before=,after=\hfill,height=3cm,
colback=white,colframe=blue!75!black,valign=center,valign lower=center}
\foreach \f in {0.1,0.5,0.8}
{\begin{tcolorbox}[split=\f]
This is the upper part.
\tcblower
This is the lower part with a lot of text in several lines.
\end{tcolorbox}}

This is the upper part.

This is the upper part.

This is the upper part.

This is the lower part


with a lot of text in several lines.

This is the lower part


with a lot of text in several lines.

This is the lower part


with a lot of text in several lines.

58

You might also like