I'm trying to use tcolobox with the following code that I found online.
How can I get rid of the preamble in the title, so that it reads just "Sample", not "Algorithm 1:Sample"?
Thank you very much,
Asaf
Code: Select all
Code, edit and compile here:
\usepackage{tcolorbox}\tcbuselibrary{theorems}\tcbuselibrary{skins}\newtcbtheorem[]{coloredtheorem}{Algorithm}{colback=gray!15!white,arc=0pt,outer arc=0pt}{th}\begin{coloredtheorem}{Sample}{smp}Pigs are pink.\end{coloredtheorem}