From 2c330c07af86e1974a54a300c2d827a7698ad5b9 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 27 Dec 2016 10:58:33 +0100 Subject: [PATCH 01/11] add a tikzset to define a box for a "writing symbol" --- cours/cours_prof.cls | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cours/cours_prof.cls b/cours/cours_prof.cls index d284a29..defc15f 100644 --- a/cours/cours_prof.cls +++ b/cours/cours_prof.cls @@ -115,6 +115,14 @@ xcolor,% } +\tikzset{ + writesymbol/.style={ + rectangle, draw=black, + fill=white, scale=1, + overlay + } +} + \mdtheorem[style=framed, theoremseparator={ - }]{déf}{Définition} \mdtheorem[style=framed, theoremseparator={ - }]{thm}{Théorème} \mdtheorem[style=framed]{ppt}{Propriété} From 81cf25c0193a1f327fc893cbe27b6385da3174b4 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 27 Dec 2016 11:05:49 +0100 Subject: [PATCH 02/11] add a mdframed style using symbol --- cours/cours_prof.cls | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/cours/cours_prof.cls b/cours/cours_prof.cls index defc15f..6c52984 100644 --- a/cours/cours_prof.cls +++ b/cours/cours_prof.cls @@ -122,6 +122,25 @@ overlay } } +\mdfdefinestyle{exo}{% + linecolor=black,linewidth=1pt,% + leftmargin=0,rightmargin=0,% + innertopmargin=1em,innerbottommargin=1em,% + innerleftmargin=5pt,innerrightmargin=5pt,% + skipabove=0,skipbelow=0,% + frametitlerule=false,% + frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,% + nobreak=true,% + xcolor,% + firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+0.5*(0,\y1)$) + node[writesymbol] {\$};},% + secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+0.5*(0,\y1)$) + node[writesymbol] {\$};},% + middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+0.5*(0,\y1)$) + node[writesymbol] {\$};},% + singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+0.5*(0,\y1)$) + node[writesymbol] {\$};},% +} \mdtheorem[style=framed, theoremseparator={ - }]{déf}{Définition} \mdtheorem[style=framed, theoremseparator={ - }]{thm}{Théorème} From 2b04a2b2bae46fbdf1f40803ee3245819b4d5a1e Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 27 Dec 2016 11:07:36 +0100 Subject: [PATCH 03/11] redefine the Exercice mdtheorem env to use the new style --- cours/cours_prof.cls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cours/cours_prof.cls b/cours/cours_prof.cls index 6c52984..a95554a 100644 --- a/cours/cours_prof.cls +++ b/cours/cours_prof.cls @@ -149,7 +149,8 @@ \mdtheorem[style=no_framed]{voc}{Vocabulaire} \mdtheorem[style=no_framed]{rmq}{Remarque} \mdtheorem[style=framed]{exe}{Exemple} -\mdtheorem[style=dash_framed]{exo}{Exercice} +% \mdtheorem[style=dash_framed]{exo}{Exercice} +\mdtheorem[style=exo]{exo}{Exercice} \mdtheorem[style=dash_framed]{app}{Application} \mdtheorem[style=dash_framed, theoremseparator={ - }]{met}{Méthode} %--% From 69f3f6927db74c8c2e3ee5d293c6413b31114909 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 27 Dec 2016 11:15:44 +0100 Subject: [PATCH 04/11] . --- cours/cours_prof.cls | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cours/cours_prof.cls b/cours/cours_prof.cls index a95554a..2bb7f39 100644 --- a/cours/cours_prof.cls +++ b/cours/cours_prof.cls @@ -149,9 +149,9 @@ \mdtheorem[style=no_framed]{voc}{Vocabulaire} \mdtheorem[style=no_framed]{rmq}{Remarque} \mdtheorem[style=framed]{exe}{Exemple} -% \mdtheorem[style=dash_framed]{exo}{Exercice} -\mdtheorem[style=exo]{exo}{Exercice} -\mdtheorem[style=dash_framed]{app}{Application} +\mdtheorem[style=dash_framed]{exo}{Exercice} +% \mdtheorem[style=dash_framed]{app}{Application} +\mdtheorem[style=exo]{app}{Application} \mdtheorem[style=dash_framed, theoremseparator={ - }]{met}{Méthode} %--% From c585827da7c4f90019a2eae697085d7bb7182ea2 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 27 Dec 2016 11:48:00 +0100 Subject: [PATCH 05/11] set icon for mdframed style --- cours/cours_prof.cls | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cours/cours_prof.cls b/cours/cours_prof.cls index 2bb7f39..3592244 100644 --- a/cours/cours_prof.cls +++ b/cours/cours_prof.cls @@ -133,13 +133,13 @@ nobreak=true,% xcolor,% firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+0.5*(0,\y1)$) - node[writesymbol] {\$};},% + node[writesymbol] { \faicon{\faPencil} };},% secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+0.5*(0,\y1)$) - node[writesymbol] {\$};},% + node[writesymbol] { \faicon{\faPencil} };},% middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+0.5*(0,\y1)$) - node[writesymbol] {\$};},% + node[writesymbol] { \faicon{\faPencil} };},% singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+0.5*(0,\y1)$) - node[writesymbol] {\$};},% + node[writesymbol] { \faicon{\faPencil} };},% } \mdtheorem[style=framed, theoremseparator={ - }]{déf}{Définition} From 955ce342262bb19015ce91d9e601acbd22d58eb4 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 27 Dec 2016 12:13:19 +0100 Subject: [PATCH 06/11] positioning the symbol in upper left corner of the frame --- cours/cours_prof.cls | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cours/cours_prof.cls b/cours/cours_prof.cls index 3592244..7eb6116 100644 --- a/cours/cours_prof.cls +++ b/cours/cours_prof.cls @@ -132,13 +132,13 @@ frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,% nobreak=true,% xcolor,% - firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+0.5*(0,\y1)$) + firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+1.0*(0,\y1)$) node[writesymbol] { \faicon{\faPencil} };},% - secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+0.5*(0,\y1)$) + secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+1.0*(0,\y1)$) node[writesymbol] { \faicon{\faPencil} };},% - middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+0.5*(0,\y1)$) + middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+1.0*(0,\y1)$) node[writesymbol] { \faicon{\faPencil} };},% - singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+0.5*(0,\y1)$) + singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+1.0*(0,\y1)$) node[writesymbol] { \faicon{\faPencil} };},% } From e926d8466d3f5e1e06c8e075e26410cc343991b7 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 27 Dec 2016 12:23:47 +0100 Subject: [PATCH 07/11] change left space between frame and content --- cours/cours_prof.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cours/cours_prof.cls b/cours/cours_prof.cls index 7eb6116..cc1f9dc 100644 --- a/cours/cours_prof.cls +++ b/cours/cours_prof.cls @@ -126,7 +126,7 @@ linecolor=black,linewidth=1pt,% leftmargin=0,rightmargin=0,% innertopmargin=1em,innerbottommargin=1em,% - innerleftmargin=5pt,innerrightmargin=5pt,% + innerleftmargin=1em,innerrightmargin=5pt,% skipabove=0,skipbelow=0,% frametitlerule=false,% frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,% From 2a2f3969ba7da56278aacdc8b3bae9336150af51 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 27 Dec 2016 12:38:32 +0100 Subject: [PATCH 08/11] - clean code - suppress border around the icon - change name of frame style - change position of icon --- cours/cours_prof.cls | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/cours/cours_prof.cls b/cours/cours_prof.cls index cc1f9dc..623651e 100644 --- a/cours/cours_prof.cls +++ b/cours/cours_prof.cls @@ -116,13 +116,13 @@ } \tikzset{ - writesymbol/.style={ - rectangle, draw=black, + pensymbol/.style={ + rectangle, draw=white, fill=white, scale=1, overlay } } -\mdfdefinestyle{exo}{% +\mdfdefinestyle{complete}{% linecolor=black,linewidth=1pt,% leftmargin=0,rightmargin=0,% innertopmargin=1em,innerbottommargin=1em,% @@ -132,17 +132,17 @@ frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,% nobreak=true,% xcolor,% - firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+1.0*(0,\y1)$) - node[writesymbol] { \faicon{\faPencil} };},% - secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+1.0*(0,\y1)$) - node[writesymbol] { \faicon{\faPencil} };},% - middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+1.0*(0,\y1)$) - node[writesymbol] { \faicon{\faPencil} };},% - singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,0)+1.0*(0,\y1)$) - node[writesymbol] { \faicon{\faPencil} };},% + firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) + node[pensymbol] { \faicon{\faPencil} };},% + secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) + node[pensymbol] { \faicon{\faPencil} };},% + middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) + node[pensymbol] { \faicon{\faPencil} };},% + singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) + node[pensymbol] { \faicon{\faPencil} };},% } -\mdtheorem[style=framed, theoremseparator={ - }]{déf}{Définition} +\mdtheorem[style=complete, theoremseparator={ - }]{déf}{Définition} \mdtheorem[style=framed, theoremseparator={ - }]{thm}{Théorème} \mdtheorem[style=framed]{ppt}{Propriété} \mdtheorem[style=framed]{pre}{Preuve} @@ -150,8 +150,7 @@ \mdtheorem[style=no_framed]{rmq}{Remarque} \mdtheorem[style=framed]{exe}{Exemple} \mdtheorem[style=dash_framed]{exo}{Exercice} -% \mdtheorem[style=dash_framed]{app}{Application} -\mdtheorem[style=exo]{app}{Application} +\mdtheorem[style=dash_framed]{app}{Application} \mdtheorem[style=dash_framed, theoremseparator={ - }]{met}{Méthode} %--% From 7161bcd2a0da1164c451fe862e80512f4fad3034 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 27 Dec 2016 13:11:33 +0100 Subject: [PATCH 09/11] create a quoted framed style with corresponding icon from fontawesome --- cours/cours_prof.cls | 56 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 48 insertions(+), 8 deletions(-) diff --git a/cours/cours_prof.cls b/cours/cours_prof.cls index 623651e..dea342a 100644 --- a/cours/cours_prof.cls +++ b/cours/cours_prof.cls @@ -115,8 +115,9 @@ xcolor,% } + \tikzset{ - pensymbol/.style={ + symbol/.style={ rectangle, draw=white, fill=white, scale=1, overlay @@ -133,13 +134,52 @@ nobreak=true,% xcolor,% firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) - node[pensymbol] { \faicon{\faPencil} };},% + node[symbol] { \faicon{\faPencil} };},% secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) - node[pensymbol] { \faicon{\faPencil} };},% + node[symbol] { \faicon{\faPencil} };},% middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) - node[pensymbol] { \faicon{\faPencil} };},% + node[symbol] { \faicon{\faPencil} };},% singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) - node[pensymbol] { \faicon{\faPencil} };},% + node[symbol] { \faicon{\faPencil} };},% +} +\mdfdefinestyle{doit}{% + linecolor=white,linewidth=1pt,% + tikzsetting={draw=black,dashed,line width=1pt},% + leftmargin=0,rightmargin=0,% + innertopmargin=1em,innerbottommargin=1em,% + innerleftmargin=1em,innerrightmargin=5pt,% + skipabove=0,skipbelow=0,% + frametitlerule=false,% + frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,% + nobreak=true,% + xcolor,% + firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) + node[symbol] { \faicon{\faFileTextO} };},% + secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) + node[symbol] { \faicon{\faFileTextO} };},% + middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) + node[symbol] { \faicon{\faFileTextO} };},% + singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) + node[symbol] { \faicon{\faFileTextO} };},% +} +\mdfdefinestyle{quote}{% + linecolor=white,linewidth=1pt,% + leftmargin=0,rightmargin=0,% + innertopmargin=1em,innerbottommargin=1em,% + innerleftmargin=1em,innerrightmargin=5pt,% + skipabove=0,skipbelow=0,% + frametitlerule=false,% + frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,% + nobreak=true,% + xcolor,% + firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) + node[symbol] { \faicon{\faQuoteLeft} };},% + secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) + node[symbol] { \faicon{\faQuoteLeft} };},% + middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) + node[symbol] { \faicon{\faQuoteLeft} };},% + singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) + node[symbol] { \faicon{\faQuoteLeft} };},% } \mdtheorem[style=complete, theoremseparator={ - }]{déf}{Définition} @@ -149,9 +189,9 @@ \mdtheorem[style=no_framed]{voc}{Vocabulaire} \mdtheorem[style=no_framed]{rmq}{Remarque} \mdtheorem[style=framed]{exe}{Exemple} -\mdtheorem[style=dash_framed]{exo}{Exercice} -\mdtheorem[style=dash_framed]{app}{Application} -\mdtheorem[style=dash_framed, theoremseparator={ - }]{met}{Méthode} +\mdtheorem[style=doit]{exo}{Exercice} +\mdtheorem[style=doit]{app}{Application} +\mdtheorem[style=doit, theoremseparator={ - }]{met}{Méthode} %--% From 6c30f765008fe2a6ecabb676a75ed8b8821efacd Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 27 Dec 2016 16:10:58 +0100 Subject: [PATCH 10/11] valide quoted env style defined --- cours/cours_prof.cls | 53 +++++++++++++++++++++++++++++++++----------- 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/cours/cours_prof.cls b/cours/cours_prof.cls index dea342a..2cbeb87 100644 --- a/cours/cours_prof.cls +++ b/cours/cours_prof.cls @@ -123,7 +123,7 @@ overlay } } -\mdfdefinestyle{complete}{% +\mdfdefinestyle{cmpl}{% linecolor=black,linewidth=1pt,% leftmargin=0,rightmargin=0,% innertopmargin=1em,innerbottommargin=1em,% @@ -142,7 +142,7 @@ singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) node[symbol] { \faicon{\faPencil} };},% } -\mdfdefinestyle{doit}{% +\mdfdefinestyle{todo}{% linecolor=white,linewidth=1pt,% tikzsetting={draw=black,dashed,line width=1pt},% leftmargin=0,rightmargin=0,% @@ -162,8 +162,8 @@ singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) node[symbol] { \faicon{\faFileTextO} };},% } -\mdfdefinestyle{quote}{% - linecolor=white,linewidth=1pt,% +\mdfdefinestyle{quot}{% + linecolor=black,linewidth=1pt,% leftmargin=0,rightmargin=0,% innertopmargin=1em,innerbottommargin=1em,% innerleftmargin=1em,innerrightmargin=5pt,% @@ -173,25 +173,52 @@ nobreak=true,% xcolor,% firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) - node[symbol] { \faicon{\faQuoteLeft} };},% + node[symbol] { \faicon{\faQuoteLeft} },% + \path let \p1=(P), \p2=(O) in ($(\x1,.4)+(0,\y2)$) + node[symbol] { \faicon{\faQuoteRight} };},% secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) - node[symbol] { \faicon{\faQuoteLeft} };},% + node[symbol] { \faicon{\faQuoteLeft} },% + \path let \p1=(P), \p2=(O) in ($(\x1,.4)+(0,\y2)$) + node[symbol] { \faicon{\faQuoteRight} };},% middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) - node[symbol] { \faicon{\faQuoteLeft} };},% + node[symbol] { \faicon{\faQuoteLeft} },% + \path let \p1=(P), \p2=(O) in ($(\x1,.4)+(0,\y2)$) + node[symbol] { \faicon{\faQuoteRight} };},% singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) - node[symbol] { \faicon{\faQuoteLeft} };},% + node[symbol] { \faicon{\faQuoteLeft} },% + \path let \p1=(P), \p2=(O) in ($(\x1,.4)+(0,\y2)$) + node[symbol] { \faicon{\faQuoteRight} };},% +} +\mdfdefinestyle{warning}{% + linecolor=black,linewidth=1pt,% + leftmargin=0,rightmargin=0,% + innertopmargin=1em,innerbottommargin=1em,% + innerleftmargin=1em,innerrightmargin=5pt,% + skipabove=0,skipbelow=0,% + frametitlerule=false,% + frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,% + nobreak=true,% + xcolor,% + firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) + node[symbol] { \faicon{\faWarning} };},% + secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) + node[symbol] { \faicon{\faWarning} };},% + middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) + node[symbol] { \faicon{\faWarning} };},% + singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) + node[symbol] { \faicon{\faWarning} };},% } -\mdtheorem[style=complete, theoremseparator={ - }]{déf}{Définition} +\mdtheorem[style=cmpl, theoremseparator={ - }]{déf}{Définition} \mdtheorem[style=framed, theoremseparator={ - }]{thm}{Théorème} \mdtheorem[style=framed]{ppt}{Propriété} \mdtheorem[style=framed]{pre}{Preuve} \mdtheorem[style=no_framed]{voc}{Vocabulaire} -\mdtheorem[style=no_framed]{rmq}{Remarque} +\mdtheorem[style=warning]{rmq}{Remarque} \mdtheorem[style=framed]{exe}{Exemple} -\mdtheorem[style=doit]{exo}{Exercice} -\mdtheorem[style=doit]{app}{Application} -\mdtheorem[style=doit, theoremseparator={ - }]{met}{Méthode} +\mdtheorem[style=todo]{exo}{Exercice} +\mdtheorem[style=todo, theoremseparator={ - }]{app}{Application} +\mdtheorem[style=todo, theoremseparator={ - }]{met}{Méthode} %--% From 0aac8b83642e1d6f84add335a5e3f3428b79318f Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 27 Dec 2016 16:39:52 +0100 Subject: [PATCH 11/11] clean code --- cours/cours_prof.cls | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/cours/cours_prof.cls b/cours/cours_prof.cls index 2cbeb87..2c28d5d 100644 --- a/cours/cours_prof.cls +++ b/cours/cours_prof.cls @@ -31,7 +31,7 @@ % mise en page \RequirePackage{geometry} \RequirePackage{scrlayer-scrpage} -\RequirePackage{mdframed} +% \RequirePackage{mdframed} \RequirePackage{titlesec} \RequirePackage{pageslts} %--% @@ -144,7 +144,7 @@ } \mdfdefinestyle{todo}{% linecolor=white,linewidth=1pt,% - tikzsetting={draw=black,dashed,line width=1pt},% + tikzsetting={draw=black,line width=1pt},% leftmargin=0,rightmargin=0,% innertopmargin=1em,innerbottommargin=1em,% innerleftmargin=1em,innerrightmargin=5pt,% @@ -153,6 +153,9 @@ frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,% nobreak=true,% xcolor,% + % hidealllines=true, topline=true, bottomline=true,% + shadow=true,% + background=gray!40,% firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) node[symbol] { \faicon{\faFileTextO} };},% secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) @@ -163,7 +166,7 @@ node[symbol] { \faicon{\faFileTextO} };},% } \mdfdefinestyle{quot}{% - linecolor=black,linewidth=1pt,% + linecolor=white,linewidth=1pt,% leftmargin=0,rightmargin=0,% innertopmargin=1em,innerbottommargin=1em,% innerleftmargin=1em,innerrightmargin=5pt,% @@ -189,7 +192,7 @@ \path let \p1=(P), \p2=(O) in ($(\x1,.4)+(0,\y2)$) node[symbol] { \faicon{\faQuoteRight} };},% } -\mdfdefinestyle{warning}{% +\mdfdefinestyle{warn}{% linecolor=black,linewidth=1pt,% leftmargin=0,rightmargin=0,% innertopmargin=1em,innerbottommargin=1em,% @@ -199,22 +202,23 @@ frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,% nobreak=true,% xcolor,% + hidealllines=true, leftline=true,% firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) - node[symbol] { \faicon{\faWarning} };},% + node[symbol] { \faicon{\fa-exclamation-triangle} };},% secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) - node[symbol] { \faicon{\faWarning} };},% + node[symbol] { \faicon{\fa-exclamation-triangle} };},% middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) - node[symbol] { \faicon{\faWarning} };},% + node[symbol] { \faicon{\fa-exclamation-triangle} };},% singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) - node[symbol] { \faicon{\faWarning} };},% + node[symbol] { \faicon{\fa-exclamation-triangle} };},% } \mdtheorem[style=cmpl, theoremseparator={ - }]{déf}{Définition} \mdtheorem[style=framed, theoremseparator={ - }]{thm}{Théorème} \mdtheorem[style=framed]{ppt}{Propriété} \mdtheorem[style=framed]{pre}{Preuve} -\mdtheorem[style=no_framed]{voc}{Vocabulaire} -\mdtheorem[style=warning]{rmq}{Remarque} +\mdtheorem[style=quot]{voc}{Vocabulaire} +\mdtheorem[style=warn]{rmq}{Remarque} \mdtheorem[style=framed]{exe}{Exemple} \mdtheorem[style=todo]{exo}{Exercice} \mdtheorem[style=todo, theoremseparator={ - }]{app}{Application}