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

tcb/sidebyside Gap: /tcbset

The document describes three options for the tcolorbox environment in LaTeX: 1. /tcb/sidebyside gap=hlengthi sets the horizontal distance between the left and right parts of a side-by-side tcolorbox. 2. /tcb/lefthand width=hlengthi sets the width of the left part of a side-by-side tcolorbox. 3. /tcb/righthand width=hlengthi sets the width of the right part of a side-by-side tcolorbox.

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)
61 views1 page

tcb/sidebyside Gap: /tcbset

The document describes three options for the tcolorbox environment in LaTeX: 1. /tcb/sidebyside gap=hlengthi sets the horizontal distance between the left and right parts of a side-by-side tcolorbox. 2. /tcb/lefthand width=hlengthi sets the width of the left part of a side-by-side tcolorbox. 3. /tcb/righthand width=hlengthi sets the width of the right part of a side-by-side tcolorbox.

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
You are on page 1/ 1

/tcb/sidebyside gap=hlengthi (no default, initially 10mm)

Sets the horizontal distance between the left-handed and right-handed part to hlengthi.

\tcbset{colback=red!5!white,colframe=red!75!black,fonttitle=\bfseries,nobeforeafter,
sidebyside,width=(\linewidth-2mm)/2}

\begin{tcolorbox}[adjusted title=Wide gap,sidebyside gap=30mm]


This is a text which is too long for one line.
\tcblower
This is a short text.
\end{tcolorbox}\hfill
\begin{tcolorbox}[adjusted title=Narrow gap,sidebyside gap=1mm]
This is a text which is too long for one line.
\tcblower
This is a short text.
\end{tcolorbox}

Wide gap

This is
a text Narrow gap
This is
which is
a short
too long This is a text which
text.
for one is too long for one This is a short text.
line. line.

/tcb/lefthand width=hlengthi (no default, initially unset)


Sets the width of the left-handed part to the given hlengthi.

\tcbset{colback=red!5!white,colframe=red!75!black,fonttitle=\bfseries}

\begin{tcolorbox}[title=My title,sidebyside,lefthand width=3cm]


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


This is the lower (right-handed) part.
(left-handed) part.

/tcb/righthand width=hlengthi (no default, initially unset)


Sets the width of the right-handed part to the given hlengthi.

\tcbset{colback=red!5!white,colframe=red!75!black,fonttitle=\bfseries}

\begin{tcolorbox}[title=My title,sidebyside,righthand width=3cm]


This is the upper (\textit{left-handed}) part.
\tcblower
This is the lower (\textit{right-handed}) part.
\end{tcolorbox}

My title

This is the lower


This is the upper (left-handed) part.
(right-handed) part.

118

You might also like