I am working on a project in which I am using tcolorbox as a sort of sidebar.
While I am already somewhat happy with the box itsself I am having trouble with how to integrate it into the document.
The box is half the width of the text, and I would the text to flow around it while placing the box itself in a somewaht sensible fashion.
The works reasonably well when the box is small enough and somewhere in the middle of the page. But when it get too close to the bottom of the page weird things happen.
https://www.dropbox.com/s/yuzdevn48lwmq ... ement?dl=0
There are some obvious things wrong here:
The box extends too far down... it should be on the next page where it should be placed on the left side.
The text on the second page should not be "flowing around" the box that isn't even there! How do I fix this?
The code I used:
Code: Select all
% In the preamble:
\usepackage{wrapfig}
\usepackage{aurical}
\usepackage[T1]{fontenc}
\newtcolorbox{lorequote}{enhanced, interior style tile={width=15cm}{parchment.png}, fontupper = \Fontskrivan, width = 0.5\textwidth}
%in the document:
\begin{wrapfigure}{o}{0.5\textwidth}
\begin{lorequote}
... interesting sideinfor...
\end{lorequote}
\end{wrapfigure}