You are on page 1of 1

U 2015-02-06 /tcb/sidebyside align=halignmenti (no default, initially center)

Sets the vertical halignmenti for the left-handed and right-handed part.
Feasible values for halignmenti are:
• center: identical to minipage option c.
• top: identical to minipage option t (aligns the top lines of the left-handed and right-
handed side according to their baselines).
• bottom: identical to minipage option b (aligns the bottom lines of the left-handed and
right-handed side according to their baselines).
• center seam: aligns the center of the left-handed and right-handed side.
• top seam: aligns the very top seam of the left-handed and right-handed side.
• bottom seam: aligns the very bottom seam of the left-handed and right-handed side.

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

\begin{tcolorbox}[adjusted title=center,sidebyside align=center]


This is a text which is too long for one line.
\tcblower
This is a short text.
\end{tcolorbox}\hfill
\begin{tcolorbox}[adjusted title=top,sidebyside align=top]
This is a text which is too long for one line.
\tcblower
This is a short text.
\end{tcolorbox}\hfill
\begin{tcolorbox}[adjusted title=bottom,sidebyside align=bottom]
This is a text which is too long for one line.
\tcblower
This is a short text.
\end{tcolorbox}

center top bottom

This is a This is a This is a This is a


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

center, top, and bottom are identical to the known corresponding minipage options. While
this is the preferred approach for text content, the result for boxed content like tables or
images may not be as expected.
For such content, one may use center seam, top seam, and bottom seam. For example,
top seam aligns the very top seam of the left-handed and right-handed side.

117

You might also like