I am making this template for my notes, and I was trying to put an image (a logo) on the right side of a tcolorbox
. The code is as follows:
\begin{tcbitemize}[raster equal height=rows, raster columns=2]
\tcbitem[blankest, add to natural space to=\myspace]
\begin{tcolorbox}[title=Hello, colframe=titlecolor]
\textbf{Overview:} blah blah
\end{tcolorbox}
\tcbitem[blankest, space to=\myspace] \includegraphics[width=2.5cm, height=2.5cm]{2.png}
\end{tcbitemize}
And the output is:
But I have a few problems with this output:
- I would like the logo (the black square as the example here) to stick to the right side of the page (which isn't quite visible here as the background is white).
- Adjust the space between the box and the logo (for example set it to 1cm)
- The box has to fill the whole row (and not only fill half the row), so I can have my box fill the row (starting from left side of the page, and ending right before the logo).
- Adjust the height of the box to the maximum height; So if the box's height is less than the logo's height, the box's height would be increased automatically to be the same as the logo's, and if the box's height is greater, it's ok and nothing has ro be chenged).
I need to mention that there might be some other ways of doing a similar thing with tcblisting
instead of tcbitemize
, but I couldn't figure out their differences (as I'm new to this package), and which one would suite my needs better.
Thanks in advance.