I'd like to know if it's possible to define a kind of column weight in tcolorbox
, so say for example "The first column must use 20%, the second column must use 80%".
If possible I'd like to be able to use \tcbtextwidth
inside the box, like in the enclosed MWE, and if possible I'd like to avoid to multicolumns=2
, because if I want a precise pourcentage, I need to create lot's of very small columns, and it does not seem very proper...
Thank you!
MWE
\documentclass{article}
\usepackage[raster,most]{tcolorbox}
\begin{document}
\begin{minipage}{\linewidth}%
\begin{tcbitemize}[raster columns=2,
raster equal height]
\tcbitem[] % Should take 20%
\includegraphics[width=\tcbtextwidth]{example-image-a}
\tcbitem[] % Should take 80%
\includegraphics[width=\tcbtextwidth]{example-image-b}
\end{tcbitemize}%
\end{minipage}
\end{document}
-- EDIT --
I found a pseudo solution, using raster force size=false
in the tcbitemize
, and in the tcbitem
I use width=\linewidth/2
, but it does not take into account the space between the columns, and I always have a bad alignment... And also I'm not sure how to convert it in text height to do the same thing for rows.