[Tex/LaTex] how to draw a bicolor tcolorbox without frame

tcolorbox

Sometimes I want to draw tcolorboxes without frames and although I use boxrule=0pt some border frame is still visible. I would like to know why.

As an example, take a look at next code which draws a bicolor box.

\documentclass{article}
\usepackage{lmodern}
\usepackage[most]{tcolorbox}

\begin{document}

\begin{tcblisting}{bicolor, colback=blue!15, 
         colbacklower=white, boxrule=0pt}
This is an example of a \emph{bicolor} \texttt{tcolorbox}
\end{tcblisting}

\end{document}

enter image description here

As you can see the frame around the box is clearly visible. I've tested with
different viewers and all of them show the border.

My opinion is that this border shows a little difference between frame dimensions and inner upper and lower parts, but I'm not sure because boxsep=0pt doesn't affect it. But colframe=white hiddes it because the paper is also white. This could be a solution except if background is colorful (like in beamer). And I would like to understand what happens.

If I use an empty skin nothing except the text is shown, but I don't now how
to reproduce a bicolor skin from an empty one.

Best Answer

You can use frame hidden

 \documentclass{article}
\usepackage{lmodern}
\usepackage[most]{tcolorbox}

\begin{document}

\begin{tcblisting}{bicolor, colback=blue!15,
         colbacklower=white, boxrule=0pt,frame hidden}
This is an example of a \emph{bicolor} \texttt{tcolorbox}
\end{tcblisting}

\end{document}

enter image description here

Related Question