From 4e66c4353da9e3069dd0dd8a54fb98068ea2e847 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Sat, 2 Nov 2019 10:54:12 +0100 Subject: [PATCH] Add environment for exercises --- jl-cours/mdtheorem.tex | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/jl-cours/mdtheorem.tex b/jl-cours/mdtheorem.tex index 5e606ce..deec09f 100644 --- a/jl-cours/mdtheorem.tex +++ b/jl-cours/mdtheorem.tex @@ -259,7 +259,7 @@ } % exercice -\newtheoremstyle{@exe} +\newtheoremstyle{@exo1} {\topsep}% espace avant {\topsep}% espace apres {}% Police utilisee par le style de thm @@ -270,6 +270,23 @@ {\thmname{#1}\thmnumber{ #2}\thmnote{ - \normalfont{\textit{#3}}}} % composants du titre du thm : \thmname = nom, \thmnumber = numéro, \thmnote = sous-titre -\theoremstyle{@exe} -\newtheorem{exercice}{Exercice} +\theoremstyle{@exo1} +\newtheorem{exercice1}{Exercice} + +% exercice +\newtheoremstyle{@exo2} +{\topsep}% espace avant +{\topsep}% espace apres +{}% Police utilisee par le style de thm +{}% Indentation (vide = aucune, \parindent = indentation paragraphe) +{\bfseries}% Police du titre de thm +{}% Signe de ponctuation apres le titre du thm +{\newline}% Espace apres le titre du thm (\newline = linebreak) +{\thmname{#1}\thmnote{ - \normalfont{\textit{#2}}}} +% composants du titre du thm : \thmname = nom, \thmnumber = numéro, \thmnote = sous-titre + +\theoremstyle{@exo2} +\newtheorem*{exercice2}{Exercice} + +\counterwithin*{exercice1}{section} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%