[Tex/LaTex] Package for framed boxes

boxesframedtcolorbox

I saw the following framed box in a Tex-generated PDF and was wondering what package had been used to make it:

enter image description here

Does anybody recognize it?

Best Answer

Here is a quick setup with tcolorbox, using the \newtcbtheorem macro, but it can done with a normal \newtcolorbox macro as well. The special title setup requires the skin library, which is included using most option.

I applied a \newtcolorbox approach as well, to show how the options of the boxes can be changed, contrary to \newtcbtheorem.

\documentclass{article}

\usepackage[most]{tcolorbox}


\newtcbtheorem{Summary}{\bfseries Summary}{enhanced,drop shadow={black!50!white},
  coltitle=black,
  top=0.3in,
  attach boxed title to top left=
  {xshift=1.5em,yshift=-\tcboxedtitleheight/2},
  boxed title style={size=small,colback=pink}
}{summary}


\newtcolorbox[auto counter]{summary}[1][]{title={\bfseries Summary~\thetcbcounter},enhanced,drop shadow={black!50!white},
  coltitle=black,
  top=0.3in,
  attach boxed title to top left=
  {xshift=1.5em,yshift=-\tcboxedtitleheight/2},
  boxed title style={size=small,colback=pink},#1}



\begin{document}

\begin{Summary}{}{firstsummary}
Brontosaurs are thin at one end, thick in the middle and thin again on the other end
\end{Summary}

\begin{summary}[boxed title style={colback=yellow},colback=green]
Everything needed to decrypt the drive data is stored on the drive itself. No secret is
present in the enclosure.

$\Rightarrow$ The attacker should be able to brute-force the PIN or extract the encryption key
only in software.
\end{summary}


\end{document}

enter image description here

Related Question