Environnement définition
authorThomas Pietrzak <thomas.pietrzak@gmail.com>
Mon, 30 Aug 2021 08:01:41 +0000 (10:01 +0200)
committerThomas Pietrzak <thomas.pietrzak@gmail.com>
Mon, 30 Aug 2021 08:01:41 +0000 (10:01 +0200)
mystyle.sty

index 881d74a3e90077410b27adeae1a473e0e6fa2852..9841f04bbf2dd25c638e5b782ac4be368bffe0f0 100644 (file)
 
 \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}}