From 322a0aa9361624efbab1926ebf736fbbb574de69 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Thu, 3 Dec 2020 14:01:27 +0100 Subject: [PATCH] Feat: ajout environnement definition --- tools/style/shortcuts.sty | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/tools/style/shortcuts.sty b/tools/style/shortcuts.sty index 8b9b850..a3e4df8 100755 --- a/tools/style/shortcuts.sty +++ b/tools/style/shortcuts.sty @@ -351,10 +351,24 @@ }} % Environnements théoreme, définition ... +\newenvironment{encadre}[1] +{ + \begin{bclogo}[barre=none, arrondi=0.1, logo=]{#1} + }{ + \end{bclogo} +} + \newcounter{doc} \newenvironment{doc}[1] {\refstepcounter{doc} -\begin{bclogo}[barre=none, arrondi=0.1, logo=]{Document \thedoc: #1} -}{ -\end{bclogo} + \begin{encadre}{Document \thedoc: #1} + }{ + \end{encadre} +} + +\newenvironment{definition} +{ + \begin{encadre}{Définition} + }{ + \end{encadre} }