# How this shading effect would be applied to an mdframed environment?

I'd like to apply the following shading effect

proposed in " Fake sheet effect " as a background for a mdframed environment. How can this be achieved?

-
Is the gray filled rectangle the text area or where should be the text? –  Marco Daniel Sep 8 '12 at 10:54

Here is a suggestion whereby I only modified the first frame:

\documentclass{article}

\usepackage{kantlipsum}
\usepackage[framemethod=tikz]{mdframed}
\usetikzlibrary{calc}

\mdfdefinestyle{fakesheet}{%
backgroundcolor=gray!15,
middlelinecolor=gray!15,
roundcorner=15pt,
singleextra={%
\fill[gray!60,rounded corners,]
($(P)+(0,-2.05)$) .. controls  ($(P)+(0.14,-0.55)$) ..  ($(P)+(0.16,-0.45)$) --  ($(P)+(-0.2,-0.4)$) -- cycle;
\draw[gray!15,line width=0.20cm]  ($(P)+(-.1,-2.15)$)  --  ($(P)+(-.1,-.4)$) ;
\path let \p1=(P), \p2=(O) in ({(\x1-\x2)/2},\y2) coordinate (M);
($(M)+(-5.4,-0.135)$) .. controls ($(M)+(0,-0.015)$) .. ($(M)+(5.4,-0.135)$) -- ($(M)+(5.4,0.135)$) .. controls ($(M)+(0,0.135)$) .. ($(M)+(-5.4,0.135)$)-- cycle;
\draw[gray!15,line width=0.20cm]  ($(M)+(-5.4,0.10)$)  --  ($(M)+(5.4,0.1)$) ;
}
}

\begin{document}
\kant[1]


Extra material can be added by the options singleextra firstextra etc. See forexample here: