\newtheorem{@definition}{Definition}[chapter]
\newenvironment{definition}[1]{
- \addcontentsline{lod}{section}{#1}
- \vspace{3mm}\begin{mdframed}[backgroundcolor=gray90, linewidth=0pt]\begin{@definition}\upshape
+ \vspace{3mm}
+ \begin{mdframed}[backgroundcolor=gray90,
+ outermargin=-30mm,
+ innermargin=-30mm,
+ innerleftmargin=30mm,
+ innerrightmargin=30mm,
+ innertopmargin=3mm,
+ innerbottommargin=3mm,
+ linewidth=0pt]
+ \addcontentsline{lod}{section}{#1}
+ \begin{@definition}\upshape
}
{
- \end{@definition}\end{mdframed}
+ \end{@definition}
+ \end{mdframed}
}
\makeatletter
\renewcommand{\the@definition}{\arabic{@definition}}