Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.39 KB | None | 0 0
  1. %% this code comes from tColorbox Documentation Section 10.2.3 Page 153
  2. \newtcolorbox{BoxRafa}[2][]
  3. {enhanced,
  4. before skip=2mm,after skip=2mm,
  5. colback=yellow!20!white,colframe=black!50,boxrule=0.2mm,
  6. attach boxed title to top right =
  7.    {xshift=-0.6cm,yshift*=1mm-\tcboxedtitleheight},
  8.    varwidth boxed title*=-3cm,
  9.    boxed title style={frame code={
  10.                        \path[fill=tcbcolback!30!black]
  11.                            ([yshift=-1mm,xshift=-1mm]frame.north west)  
  12.                            arc[start angle=0,end angle=180,radius=1mm]
  13.                            ([yshift=-1mm,xshift=1mm]frame.north east)
  14.                            arc[start angle=180,end angle=0,radius=1mm];
  15.                        \path[left color=tcbcolback!60!black,right color = tcbcolback!60!black,
  16.                            middle color = tcbcolback!80!black]
  17.                            ([xshift=-2mm]frame.north west) -- ([xshift=2mm]frame.north east)
  18.                            [rounded corners=1mm]-- ([xshift=1mm,yshift=-1mm]frame.north east)
  19.                            -- (frame.south east) -- (frame.south west)
  20.                            -- ([xshift=-1mm,yshift=-1mm]frame.north west)
  21.                            [sharp corners]-- cycle;
  22.                            },interior engine=empty,
  23.                    },
  24. fonttitle=\bfseries\sffamily,
  25. title={#2},#1}
  26. %---------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement