clean code

This commit is contained in:
Jeff Lance 2016-12-27 16:39:52 +01:00
parent 6c30f76500
commit 0aac8b8364

View File

@ -31,7 +31,7 @@
% mise en page % mise en page
\RequirePackage{geometry} \RequirePackage{geometry}
\RequirePackage{scrlayer-scrpage} \RequirePackage{scrlayer-scrpage}
\RequirePackage{mdframed} % \RequirePackage{mdframed}
\RequirePackage{titlesec} \RequirePackage{titlesec}
\RequirePackage{pageslts} \RequirePackage{pageslts}
%--% %--%
@ -144,7 +144,7 @@
} }
\mdfdefinestyle{todo}{% \mdfdefinestyle{todo}{%
linecolor=white,linewidth=1pt,% linecolor=white,linewidth=1pt,%
tikzsetting={draw=black,dashed,line width=1pt},% tikzsetting={draw=black,line width=1pt},%
leftmargin=0,rightmargin=0,% leftmargin=0,rightmargin=0,%
innertopmargin=1em,innerbottommargin=1em,% innertopmargin=1em,innerbottommargin=1em,%
innerleftmargin=1em,innerrightmargin=5pt,% innerleftmargin=1em,innerrightmargin=5pt,%
@ -153,6 +153,9 @@
frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,% frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,%
nobreak=true,% nobreak=true,%
xcolor,% 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)$) firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
node[symbol] { \faicon{\faFileTextO} };},% node[symbol] { \faicon{\faFileTextO} };},%
secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
@ -163,7 +166,7 @@
node[symbol] { \faicon{\faFileTextO} };},% node[symbol] { \faicon{\faFileTextO} };},%
} }
\mdfdefinestyle{quot}{% \mdfdefinestyle{quot}{%
linecolor=black,linewidth=1pt,% linecolor=white,linewidth=1pt,%
leftmargin=0,rightmargin=0,% leftmargin=0,rightmargin=0,%
innertopmargin=1em,innerbottommargin=1em,% innertopmargin=1em,innerbottommargin=1em,%
innerleftmargin=1em,innerrightmargin=5pt,% innerleftmargin=1em,innerrightmargin=5pt,%
@ -189,7 +192,7 @@
\path let \p1=(P), \p2=(O) in ($(\x1,.4)+(0,\y2)$) \path let \p1=(P), \p2=(O) in ($(\x1,.4)+(0,\y2)$)
node[symbol] { \faicon{\faQuoteRight} };},% node[symbol] { \faicon{\faQuoteRight} };},%
} }
\mdfdefinestyle{warning}{% \mdfdefinestyle{warn}{%
linecolor=black,linewidth=1pt,% linecolor=black,linewidth=1pt,%
leftmargin=0,rightmargin=0,% leftmargin=0,rightmargin=0,%
innertopmargin=1em,innerbottommargin=1em,% innertopmargin=1em,innerbottommargin=1em,%
@ -199,22 +202,23 @@
frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,% frametitlebackgroundcolor=white!0,%innertopmargin=\topskip,%
nobreak=true,% nobreak=true,%
xcolor,% xcolor,%
hidealllines=true, leftline=true,%
firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$) 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)$) 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)$) 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)$) 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=cmpl, theoremseparator={ - }]{déf}{Définition}
\mdtheorem[style=framed, theoremseparator={ - }]{thm}{Théorème} \mdtheorem[style=framed, theoremseparator={ - }]{thm}{Théorème}
\mdtheorem[style=framed]{ppt}{Propriété} \mdtheorem[style=framed]{ppt}{Propriété}
\mdtheorem[style=framed]{pre}{Preuve} \mdtheorem[style=framed]{pre}{Preuve}
\mdtheorem[style=no_framed]{voc}{Vocabulaire} \mdtheorem[style=quot]{voc}{Vocabulaire}
\mdtheorem[style=warning]{rmq}{Remarque} \mdtheorem[style=warn]{rmq}{Remarque}
\mdtheorem[style=framed]{exe}{Exemple} \mdtheorem[style=framed]{exe}{Exemple}
\mdtheorem[style=todo]{exo}{Exercice} \mdtheorem[style=todo]{exo}{Exercice}
\mdtheorem[style=todo, theoremseparator={ - }]{app}{Application} \mdtheorem[style=todo, theoremseparator={ - }]{app}{Application}