Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% this code comes from tColorbox Documentation Section 10.2.3 Page 153
- \newtcolorbox{BoxRafa}[2][]
- {enhanced,
- before skip=2mm,after skip=2mm,
- colback=yellow!20!white,colframe=black!50,boxrule=0.2mm,
- attach boxed title to top right =
- {xshift=-0.6cm,yshift*=1mm-\tcboxedtitleheight},
- varwidth boxed title*=-3cm,
- boxed title style={frame code={
- \path[fill=tcbcolback!30!black]
- ([yshift=-1mm,xshift=-1mm]frame.north west)
- arc[start angle=0,end angle=180,radius=1mm]
- ([yshift=-1mm,xshift=1mm]frame.north east)
- arc[start angle=180,end angle=0,radius=1mm];
- \path[left color=tcbcolback!60!black,right color = tcbcolback!60!black,
- middle color = tcbcolback!80!black]
- ([xshift=-2mm]frame.north west) -- ([xshift=2mm]frame.north east)
- [rounded corners=1mm]-- ([xshift=1mm,yshift=-1mm]frame.north east)
- -- (frame.south east) -- (frame.south west)
- -- ([xshift=-1mm,yshift=-1mm]frame.north west)
- [sharp corners]-- cycle;
- },interior engine=empty,
- },
- fonttitle=\bfseries\sffamily,
- title={#2},#1}
- %---------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement