I would like to define a breakable tcolorbox whose interior contains no color or other drawing code, so displays whatever color is behind it. tcolorbox with the skins library has the options interior empty and interior hidden which control the drawing of the interior, though I struggling to understand the interaction between these keys and the corresponding frame empty and frame hidden. I would expect the former keys to print the frame surrounding the box's contents with nothing done to the interior, but instead the box is printed with a dark gray background.
From this answer, I see that we can get around this by setting both frame empty and interior empty then drawing the frame with borderline. This works for unbroken boxes, but if a box is broken then it seems the frame empty and interior empty keys are ignored and the tcolorbox defaults go into effect.
\documentclass{article}
\usepackage[skins,breakable]{tcolorbox}
\usepackage{kantlipsum}
\pagecolor{yellow!10}
\tcbset{enhanced}
\begin{document}
\begin{tcolorbox}[
interior empty
]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
\begin{tcolorbox}[
interior empty,
frame empty % don't want hidden frame
]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
\begin{tcolorbox}[
interior hidden
]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
\begin{tcolorbox}[
interior hidden,
frame hidden, % don't want hidden frame
]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
\begin{tcolorbox}[
frame empty,
interior empty,
borderline={1pt}{0pt}{},
]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
\begin{tcolorbox}[
breakable,
frame empty,
interior empty,
borderline={1pt}{0pt}{},
]
This is a \textbf{tcolorbox}.
\kant[1-3]
\end{tcolorbox}
\end{document}
I'm probably misunderstanding what is really meant by "frame" and "interior", but is there a way to make a breakable tcolorbox with an empty interior?
Edit
As samcarter_is_at_topanswers.xyz points out in the comments, the "frame" is a filled rectangle behind the box, not a line drawn around it. This explains the output with interior empty and interior hidden.
I've also discovered that breakable does not interact nicely with frame empty and interior empty in general:
\begin{tcolorbox}[
breakable,
interior empty,
frame empty
]
This is a \textbf{tcolorbox}.
\kant[1-5]
\end{tcolorbox}
This resets the frame and interior defaults when broken.
For context, I'm trying to adapt this answer for emulating thmbox with tcolorbox to use the page background color, not the preset background color white, since this is the behavior of thmbox.





enhanced jigsaw, opacityback=0. – muzimuzhi Z Jan 14 '24 at 20:12boxrule(orleftrule, etc.) are set to zero, they still display as grey lines. See also my comments below samcarter's answer – mbert Jan 14 '24 at 20:28thmboxwithtcolorbox..." composed an X-Y problem. I added an answer to the question from context, not from question title. – muzimuzhi Z Jan 15 '24 at 03:47