From 1a1a2145a4fbc3c81949828ae7faee30616b62a5 Mon Sep 17 00:00:00 2001
From: Christophe Garion <tofgarion@runbox.com>
Date: Fri, 18 Nov 2016 21:08:32 +0100
Subject: [PATCH] theorems: add code conventions theorem

---
 my-theorems.sty | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/my-theorems.sty b/my-theorems.sty
index 5b7a76f..b2460ab 100644
--- a/my-theorems.sty
+++ b/my-theorems.sty
@@ -31,4 +31,11 @@
     \newtheorem*{definition}{\translate{Definition}}
     \deftranslation[to=French]{Definition}{D\'efinition}
   }
-}
\ No newline at end of file
+}
+
+% better theorems
+\usepackage[theorems]{tcolorbox}
+
+\newtcbtheorem[number within=section]{codeconv}{\translate{Code conventions}}%
+{colback=gray!10,colframe=gray!80,fonttitle=\bfseries}{th}
+\deftranslation[to=French]{Code conventions}{Conventions de codage}
-- 
GitLab