You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
922 B

%Usage \begin{paperbox}[options]{title}[color]
\DeclareTColorBox{paperbox}{O{} m O{paperboxcolor}}{%
before upper={\nottoggle{justified}{\RaggedRight}},
frame hidden,
boxrule=0pt,
enhanced,
before skip=11pt plus 1pt,
toptitle=3mm,
boxsep=0.25ex,
left=8pt,
right=8pt,
fonttitle=\jebba@BoxTitleFont\color{black},
fontupper=\jebba@BoxBodyFont,
title={#2},
arc=0mm,
parbox=false,
borderline north={1pt}{-0.5pt}{black},
borderline south={1pt}{-0.5pt}{black},
colback={#3},
colbacktitle={#3},
fuzzy shadow={0mm}{-3.5pt}{-0.5pt}{0.4mm}{black!60!white},
overlay={%
\fill[black] (frame.south west) -- ++ (7pt,0) -- ++ (0,-5pt) -- cycle;
\fill[black] (frame.north west) -- ++ (7pt,0) -- ++ (0,5pt) -- cycle;
\fill[black] (frame.north east) -- ++ (-7pt,0) -- ++ (0,5pt) -- cycle;
\fill[black] (frame.south east) -- ++ (-7pt,0) -- ++ (0,-5pt) -- cycle;
},
after={\vspace{10pt plus 1pt}\noindent},
#1
}