1

In my document preamble, I have:

\usepackage[many]{tcolorbox}

In the body, I have a tcolorbox called thus:

\begin{tcolorbox}[breakable, enhanced jigsaw,opacityback=0,rounded corners, parbox=false]

This is a very large box running into multiple pages. With the current settings, the box continues on the next page but does not close on each page.

How do I get the box to close on each page?

  • 1
    Please help us (and also you) and add a minimal working example (MWE), that illustrates your problem. – Bobyandbob Nov 8 '17 at 15:43
  • Have you checked the tcolorbox manual about partial boxes? It is very helpful in explaining those concepts. – TeXnician Nov 8 '17 at 16:25
  • As far as I know, neither enhanced nor enhanced jigsaw allow for bottom or or top rules for the middle boxes and for bottomrule on the first, or top rule on the first box. – user31729 Nov 8 '17 at 17:15
5

You can hide the original frame (frame hidden) and draw an overlay-ed frame according your taste:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[most]{tcolorbox}
\usepackage{lmodern} 
\usepackage{lipsum}
\begin{document}
\begin{tcolorbox}[%
    enhanced, 
    breakable,
    frame hidden,
    overlay broken = {
        \draw[line width=1mm, red, rounded corners]
        (frame.north west) rectangle (frame.south east);},
    ]{}
    \lipsum[1-15]
\end{tcolorbox}
\end{document}

enter image description here

  • Oh damn, you beat me by some minutes :-( ... (+1)... I wonder, why this is not incorporated already as possible option for broken boxes in tcolorbox – user31729 Nov 8 '17 at 17:49
  • @ChristianHupfer Did you think the same solution? About including as a possible option, we can always fill a suggestion in tcolorbox development site. – Ignasi Nov 8 '17 at 18:03
  • It was basically the same solution, apart from the red color of the frame ;-) Thanks for suggesting the link to the github site – user31729 Nov 8 '17 at 18:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.