Is there something equivalent to "lines before break" for the end part in tcolorbox? If there is I can't find it ;-)
The following box should have at least 3 lines on the second page. As the code is created automatically any solution that involves manual break points (like break at
) is not suitable.
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{tcolorbox,lipsum}
\tcbuselibrary{skins,breakable}
\begin{document}
\begin{tcolorbox}[enhanced,colback=lightgray!20!white,frame hidden,breakable]
a\\b\\c\\d\\e\\f\\g
\lipsum[1-4]
\end{tcolorbox}
\end{document}