From 96457ef2c9d5ef131987e9dda280cda7142a948b Mon Sep 17 00:00:00 2001 From: Trullemans Gregory Date: Mon, 25 May 2020 07:55:35 +0200 Subject: [PATCH] Update 'definition' environnement. --- ffgTemplate.sty | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/ffgTemplate.sty b/ffgTemplate.sty index d9f332b..3e3dedf 100644 --- a/ffgTemplate.sty +++ b/ffgTemplate.sty @@ -27,6 +27,7 @@ \RequirePackage{xspace} % Gestion intelligente de l'espace après une commande \RequirePackage{lmodern} % Police de caractère \RequirePackage{calc} % Syntaxe naturelle pour les calculs +\RequirePackage{framed} % Layout Page de garde @@ -91,10 +92,38 @@ \setlength\fboxrule{0.75pt} \newcommand{\mybox}[1]{\fbox{$~~~ \displaystyle#1 ~~~$}} -\theoremstyle{definition} -\newtheorem*{definition}{Définition} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Redefine Theoreme & Definition +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newtheoremstyle{new_theorem_style} +{\topsep} % space before +{\topsep} % space after +{ + \itshape +} % body font +{} % indent +{\bfseries} % header font +{} % punctuation +{\newline} % after theorem header +{ + \thmname{#1}~\thmnumber{#2}\thmnote{\ -\ #3}\\*[-1.5ex] +}% header specification (empty for default) +\theoremstyle{new_theorem_style} +\newtheorem*{definitionT}{Définition} +\newenvironment{definition} +{ + \begin{leftbar} + \begin{definitionT} + \mbox{}\noindent\ignorespaces}{ + \end{definitionT} + \end{leftbar} +} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Image's first page definition +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand\BackgroundPic{% \put(0,0){% \parbox[b][\paperheight]{\paperwidth}{%