I am trying to create a tcolorbox like the one mentioned in version 3.40 manual:

enter image description here

I tried to figure out the settings by going through the source code, available here:


Till now, I am not able to create a MWE using the extracted settings but it seems that they are too complicated to just draw a box:


  \global\advance\tcolorbox@number by -1\relax%
    \tcbset{every box on higher layers}%
    \tcbset{every box on higher layers/.code=}%
    \tcbset{every box on layer \number\c@tcblayer}%
    \tcbset{every box on layer \number\c@tcblayer/.code=}%

    before skip=\medskipamount,after skip=\medskipamount,
  index default settings/.style={index actual={@},index quote={"},index level={!}},
  index german settings/.style={index actual={=},index quote={!},index level={>}},
  english language/.code={\tcbset{doclang/.cd,
    environment content=environment content,



Hello World

Can someone please suggest me a simpler way to draw a similar box ?


  • You could at least have provided a \documentclass etc :-( -- and current version of tcolorbox is 3.93 already – user31729 Jul 5 '16 at 11:19
  • No, it's still not compilable – user31729 Jul 5 '16 at 11:23

default code boxes for tcolorboxversion 3.40 are different from last version 3.93. I don't know how to obtain 3.40 code to dive into, so I've tried to do something similar. Hope it helps.

OP box has a frame based on a fixed image which looks like a rotated version of blueshade.png from tcolorbox.

enter image description here

As I don't know how to rotate it being the frame style image, the result is not the same.

enter image description here



\newtcolorbox{mybox}{colback=blue!25!black!15, enhanced, frame style image=blueshade.png, drop fuzzy shadow}

This is a \textbf{tcolorbox}.


Thank you to Christian Hupfer who provided a link to 3.40 version, I could find how default code boxes were defined. In this case, svgnames option must be passed to xcolor and all option to tcolorbox because ExampleBack color is defined in its documentation library:



\newtcolorbox{mybox}{colback=Navy!5!ExampleBack, enhanced, 
    frame style ={fill stretch image*={angle=180,origin=c}{blueshade.png},         
          fill image opacity=0.75}, 
    drop fuzzy shadow}

This is a \textbf{tcolorbox}.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.