I believe I have a compatibility problem with center
environment and the breakable tcolorbox
package.
What I'm doing is:
\usepackage[breakable]{tcolorbox}
\tcbset{before=\begin{center}, after=\end{center}, width=0.8\linewidth, colback=blue!20!white, colframe=blue!70!white, boxrule=0.3mm, toptitle=1.5mm, bottomtitle=1.5mm}
The document is compiled but with some errors:
\begin{center} on input line 53 ended by \end{tcolorbox}. \end{tcolorbox} \begin{tcolorbox} on input line 43 ended by \end{center}. \end{tcolorbox} Missing } inserted. \end{tcolorbox} Too many }'s. \end{tcolorbox}
Beforehand, I appreciate your help!
before
andafter
for breakable boxes. But both answers of Christian Hupfer and Harish Kumar show good alternatives to achieve the centering.\begin{center}...\end{center}
for just one breakabletcolorbox
isn't too much typing at all.