T-F-S / tcolorbox

A LaTeX package to create highly customizable colored boxes.
http://www.ctan.org/pkg/tcolorbox
LaTeX Project Public License v1.3c
213 stars 15 forks source link

multicol issue #244

Closed ultravioletcatastrophe closed 9 months ago

ultravioletcatastrophe commented 10 months ago

Hi, I've read the tcolorbox documentation and know that I can't expect a perfect result when using breakable tcolorboxes and multicol, but i'm having a weird issue where paragraph breaks are actually being inserted and deleted, which I don't think is expected behavior. MWE and picture here: https://tex.stackexchange.com/questions/695327/tcolorbox-multicols-tufte-book-inserting-unwanted-paragraph-breaks

muzimuzhi commented 10 months ago
T-F-S commented 10 months ago

As @muzimuzhi wrote, the deletion if paragraph breaks is problem/bug further discussed in https://github.com/T-F-S/tcolorbox/issues/245.

Automatic breakable boxes are not possible inside a multicol environment. On page 410ff of the documentation you will find examples how to use manual breaks with break at, if you still need to break boxes inside a multicols environment, but it is uncomfortable and a kind of final polish for a written document or multicols part.

The initial misalignment at the top results from using breakable and a sourrounding fullwidth environment. Removing one of them will remove the misalignment. Typically, a breakable box should not be inside other constructs, because the box will insert and remove stuff to calculate the remaining height. Inside other constructs, this process may leave visible space behind.