clean code

This commit is contained in:
Jeff Lance 2016-12-28 02:08:35 +01:00
parent fed47bcc5f
commit 9747712808

View File

@ -70,17 +70,7 @@
innerbottommargin=2em,%
}
\mdfdefinestyle{framed}{%
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,%
}
\mdfdefinestyle{dash_framed}{%
linecolor=white,linewidth=1pt,%
tikzsetting={draw=black,dashed,line width=1pt},%
@ -142,28 +132,16 @@
singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
node[symbol] { \faicon{\faPencil} };},%
}
\mdfdefinestyle{todo}{%
linecolor=white,linewidth=1pt,%
tikzsetting={draw=black,line width=1pt},%
\mdfdefinestyle{box}{%
linecolor=black,linewidth=1pt,%
leftmargin=0,rightmargin=0,%
innertopmargin=1em,innerbottommargin=1em,%
innerleftmargin=1em,innerrightmargin=5pt,%
innerleftmargin=5pt,innerrightmargin=5pt,%
skipabove=0,skipbelow=0,%
frametitlerule=false,%
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)$)
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{quot}{%
linecolor=white,linewidth=1pt,%
@ -192,6 +170,29 @@
\path let \p1=(P), \p2=(O) in ($(\x1,.4)+(0,\y2)$)
node[symbol] { \faicon{\faQuoteRight} };},%
}
\mdfdefinestyle{todo}{%
linecolor=white,linewidth=1pt,%
tikzsetting={draw=black,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,%
% 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)$)
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{warn}{%
linecolor=black,linewidth=1pt,%
leftmargin=0,rightmargin=0,%
@ -214,12 +215,12 @@
}
\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=cmpl, theoremseparator={ - }]{thm}{Théorème}
\mdtheorem[style=cmpl]{ppt}{Propriété}
\mdtheorem[style=box]{pre}{Preuve}
\mdtheorem[style=quot]{voc}{Vocabulaire}
\mdtheorem[style=warn]{rmq}{Remarque}
\mdtheorem[style=framed]{exe}{Exemple}
\mdtheorem[style=box]{exe}{Exemple}
\mdtheorem[style=todo]{exo}{Exercice}
\mdtheorem[style=todo, theoremseparator={ - }]{app}{Application}
\mdtheorem[style=todo, theoremseparator={ - }]{met}{Méthode}