From d90d3697a55f1d8ae3540cd2142ae05a464bc82a Mon Sep 17 00:00:00 2001 From: Thomas Pietrzak Date: Mon, 30 Aug 2021 10:01:41 +0200 Subject: [PATCH] =?utf8?q?Environnement=20d=C3=A9finition?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- mystyle.sty | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/mystyle.sty b/mystyle.sty index 881d74a..9841f04 100644 --- a/mystyle.sty +++ b/mystyle.sty @@ -333,11 +333,21 @@ \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}} -- 2.30.2