LaTeX forum ⇒ Graphics, Figures & TablesWeird textbox placement and testflow

Information and discussion about graphics, figures & tables in LaTeX documents.
Posts: 14
Joined: Wed Dec 12, 2018 3:32 pm

Weird textbox placement and testflow

Postby bertibott » Wed Mar 06, 2019 3:49 pm

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.

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:

  1. % In the preamble:
  3. \usepackage{wrapfig}
  5. \usepackage{aurical}
  6. \usepackage[T1]{fontenc}
  7. \newtcolorbox{lorequote}{enhanced, interior style tile={width=15cm}{parchment.png}, fontupper = \Fontskrivan, width = 0.5\textwidth}
  9. %in the document:
  10. \begin{wrapfigure}{o}{0.5\textwidth}
  11. \begin{lorequote}
  12. ... interesting sideinfor...
  13. \end{lorequote}
  14. \end{wrapfigure}

How do I get it to place the whole thing in a more sensible way?

Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 6 guests