I am looking to implement a new tcolorbox, with a unique style for each page of my table of contents. The format I desire is such that each box is unbreakable, ensuring that a new box is started at the beginning of each new page. The intention is to keep the entire content of each box confined to a single page, preventing any splits or breaks. Additionally, I wish to preserve the rounded corners for these boxes, maintaining a consistent and aesthetically pleasing design throughout the document.
box toc page1 end of the box
box toc page2 end of the box
For any tip welcome! Thank you
\documentclass{article}
\usepackage[most]{tcolorbox}
\usepackage{import}
\usepackage{pdfpages}
\usepackage{hyperref}
\begin{document}
% tcolorbox for TOC
\begin{tcolorbox}[enhanced, title=Table des Matières, fonttitle=\bfseries, colback=blue!5!white,colframe=blue!75!black]
\tableofcontents
\end{tcolorbox}
\newpage
% Importing pages
\import{sections/}{part1.tex}
\import{sections/}{part2.tex}
\import{sections/}{part3.tex}
\import{sections/}{part4.tex}
% ...
\end{document}
