From: Thomas Pietrzak Date: Mon, 30 Aug 2021 08:01:41 +0000 (+0200) Subject: Environnement définition X-Git-Tag: first-full-draft~158 X-Git-Url: https://git.thomaspietrzak.com/?a=commitdiff_plain;h=d90d3697a55f1d8ae3540cd2142ae05a464bc82a;p=hdr.git Environnement définition --- 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}}