1119 lines
25 KiB
TeX
1119 lines
25 KiB
TeX
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
%
|
|
%
|
|
% MDFRAMED
|
|
%
|
|
%
|
|
|
|
|
|
%% global options
|
|
%%
|
|
\mdfsetup{
|
|
frametitlealignment=\raggedright,%
|
|
innerbottommargin=2em,%
|
|
}
|
|
|
|
%% styles
|
|
%%
|
|
\tikzset{
|
|
symbol/.style={
|
|
rectangle, draw=white,
|
|
fill=white, scale=1,
|
|
overlay
|
|
}
|
|
}
|
|
|
|
% nologo: a standard square frame with thick border and without a logo
|
|
\mdfdefinestyle{nologo}{%
|
|
linecolor=black,linewidth=1pt,%
|
|
leftmargin=0,rightmargin=0,%
|
|
innertopmargin=1em,innerbottommargin=1em,%
|
|
innerleftmargin=.5em,innerrightmargin=.5em,%
|
|
skipabove=0,skipbelow=0,%
|
|
frametitlerule=false,%
|
|
frametitlebackgroundcolor=white!0,%
|
|
nobreak=true,%
|
|
xcolor,%
|
|
}
|
|
% noborder: a no border frame
|
|
\mdfdefinestyle{noborder}{%
|
|
linecolor=white,linewidth=0pt,%
|
|
leftmargin=0,rightmargin=0,%
|
|
innertopmargin=.5em,innerbottommargin=.5em,%
|
|
innerleftmargin=.5em,innerrightmargin=.5em,%
|
|
skipabove=0,skipbelow=0,%
|
|
frametitlerule=false,%
|
|
frametitlebackgroundcolor=white!0,%
|
|
xcolor,%
|
|
}
|
|
% pencil: a square frame with a pencil icon in upper left corner
|
|
\mdfdefinestyle{pencil}{%
|
|
linecolor=black,linewidth=1pt,%
|
|
leftmargin=0,rightmargin=0,%
|
|
innertopmargin=1em,innerbottommargin=1em,%
|
|
innerleftmargin=1em,innerrightmargin=.5em,%
|
|
skipabove=0,skipbelow=0,%
|
|
frametitlerule=false,%
|
|
frametitlebackgroundcolor=white!0,%
|
|
nobreak=true,%
|
|
xcolor,%
|
|
firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faPencil };
|
|
},%
|
|
secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faPencil };
|
|
},%
|
|
middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faPencil };
|
|
},%
|
|
singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faPencil };
|
|
},%
|
|
}
|
|
% eye: square frame with an eye logo
|
|
\mdfdefinestyle{eye}{%
|
|
linecolor=white,linewidth=1pt,%
|
|
tikzsetting={draw=black,line width=.5pt},%
|
|
leftmargin=2pt,rightmargin=0,%
|
|
innertopmargin=1em,innerbottommargin=1em,%
|
|
innerleftmargin=.75em,innerrightmargin=.5em,%
|
|
skipabove=0,skipbelow=0,%
|
|
frametitlerule=false,%
|
|
frametitlebackgroundcolor=white!0,%
|
|
nobreak=false,%
|
|
xcolor,%
|
|
hidealllines=true, leftline=true,%
|
|
firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faEye };
|
|
},%
|
|
secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faEye };
|
|
},%
|
|
middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faEye };
|
|
},%
|
|
singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faEye };
|
|
},%
|
|
}
|
|
% comment: frame with no borders but with a beginning quote at upper left and
|
|
% an ending quote at lower right
|
|
\mdfdefinestyle{comment}{%
|
|
linecolor=white,linewidth=1pt,%
|
|
leftmargin=0,rightmargin=0,%
|
|
innertopmargin=1em,innerbottommargin=1em,%
|
|
innerleftmargin=1em,innerrightmargin=.5em,%
|
|
skipabove=0,skipbelow=0,%
|
|
frametitlerule=false,%
|
|
frametitlebackgroundcolor=white!0,%
|
|
nobreak=true,%
|
|
xcolor,%
|
|
firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faQuoteLeft };
|
|
\path let \p1=(P), \p2=(O) in ($(\x1,.4)+(0,\y2)$)
|
|
node[symbol] { \faQuoteRight };
|
|
},%
|
|
secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faQuoteLeft };
|
|
\path let \p1=(P), \p2=(O) in ($(\x1,.4)+(0,\y2)$)
|
|
node[symbol] { \faQuoteRight };
|
|
},%
|
|
middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faQuoteLeft };
|
|
\path let \p1=(P), \p2=(O) in ($(\x1,.4)+(0,\y2)$)
|
|
node[symbol] { \faQuoteRight };
|
|
},%
|
|
singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faQuoteLeft };
|
|
\path let \p1=(P), \p2=(O) in ($(\x1,.4)+(0,\y2)$)
|
|
node[symbol] { \faQuoteRight };
|
|
},%
|
|
}
|
|
% cogs: a shadowed square frame with a file text icon at upper left
|
|
\mdfdefinestyle{cogs}{%
|
|
linecolor=white,linewidth=1pt,%
|
|
tikzsetting={draw=black,line width=1pt},%
|
|
leftmargin=0,rightmargin=0,%
|
|
innertopmargin=1em,innerbottommargin=1em,%
|
|
innerleftmargin=1em,innerrightmargin=.5em,%
|
|
skipabove=0,skipbelow=0,%
|
|
frametitlerule=false,%
|
|
frametitlebackgroundcolor=white!0,%
|
|
nobreak=true,%
|
|
xcolor,%
|
|
shadow=true,%
|
|
firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faCogs };
|
|
},%
|
|
secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faCogs };
|
|
},%
|
|
middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faCogs };
|
|
},%
|
|
singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faCogs };
|
|
},%
|
|
}
|
|
% tips: a shadowed square frame with a light bulb icon at upper left
|
|
\mdfdefinestyle{tips}{%
|
|
linecolor=white,linewidth=1pt,%
|
|
tikzsetting={draw=black,line width=1pt},%
|
|
leftmargin=0,rightmargin=0,%
|
|
innertopmargin=1em,innerbottommargin=1em,%
|
|
innerleftmargin=1em,innerrightmargin=.5em,%
|
|
skipabove=0,skipbelow=0,%
|
|
frametitlerule=false,%
|
|
frametitlebackgroundcolor=white!0,%
|
|
nobreak=true,%
|
|
xcolor,%
|
|
hidealllines=true, leftline=true,%
|
|
firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faLightbulbO };
|
|
},%
|
|
secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faLightbulbO };
|
|
},%
|
|
middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faLightbulbO };
|
|
},%
|
|
singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faLightbulbO };
|
|
},%
|
|
}
|
|
% bookmark: a shadowed square frame with cogs icon at upper left
|
|
\mdfdefinestyle{bookmark}{%
|
|
linecolor=white,linewidth=1pt,%
|
|
tikzsetting={draw=black,line width=1pt},%
|
|
leftmargin=0,rightmargin=0,%
|
|
innertopmargin=0em,innerbottommargin=1em,%
|
|
innerleftmargin=1em,innerrightmargin=.5em,%
|
|
skipabove=0,skipbelow=0,%
|
|
frametitlerule=false,%
|
|
frametitlebackgroundcolor=white!0,%
|
|
nobreak=true,%
|
|
xcolor,%
|
|
hidealllines=true, leftline=true,%
|
|
firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faBookmarkO };
|
|
},%
|
|
secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faBookmarkO };
|
|
},%
|
|
middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faBookmarkO };
|
|
},%
|
|
singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faBookmarkO };
|
|
},%
|
|
}
|
|
% warn: frame with only left border and warning icon at upper left
|
|
\mdfdefinestyle{warning}{%
|
|
linecolor=white,linewidth=1pt,%
|
|
innerlinewidth=1pt,outerlinewidth=1pt,
|
|
tikzsetting={draw=black,
|
|
decorate,
|
|
decoration={snake, amplitude=.5mm},
|
|
line width=.5pt},%
|
|
leftmargin=2pt,rightmargin=0,%
|
|
innertopmargin=1em,innerbottommargin=1em,%
|
|
innerleftmargin=1em,innerrightmargin=.5em,%
|
|
skipabove=0,skipbelow=0,%
|
|
frametitlerule=false,%
|
|
frametitlebackgroundcolor=white!0,%
|
|
nobreak=true,%
|
|
xcolor,%
|
|
hidealllines=true, leftline=true,%
|
|
firstextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faExclamationTriangle };
|
|
},%
|
|
secondextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faExclamationTriangle };
|
|
},%
|
|
middleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faExclamationTriangle };
|
|
},%
|
|
singleextra={\path let \p1=(P), \p2=(O) in ($(\x2,-.4)+1.0*(0,\y1)$)
|
|
node[symbol] { \faExclamationTriangle };
|
|
},%
|
|
}
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
%
|
|
%
|
|
% MDTHEOREM
|
|
%
|
|
%
|
|
|
|
|
|
%% New theorem declarations and redirection of all standard previously defined
|
|
%% environments to their starred version as they don't display numbering.
|
|
%%
|
|
|
|
% definition
|
|
\mdtheorem[style=pencil, theoremseparator={},
|
|
theoremspace={}, roundcorner=6pt]{@def1}{\Jd Définition}
|
|
\mdtheorem[style=nologo, theoremseparator={},
|
|
theoremspace={}, roundcorner=6pt]{@def2}{\Jd Définition}
|
|
|
|
\RenewDocumentEnvironment{@def1}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@def1*}
|
|
}{
|
|
\begin{@def1*}[\hfill{\normalfont\slshape#1}]
|
|
}
|
|
}{%end
|
|
\end{@def1*}
|
|
}
|
|
|
|
\RenewDocumentEnvironment{@def2}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@def2*}
|
|
}{
|
|
\begin{@def2*}[\hfill{\normalfont\slshape#1}]
|
|
}
|
|
}{%end
|
|
\end{@def2*}
|
|
}
|
|
|
|
% theoreme
|
|
\mdtheorem[style=pencil, theoremseparator={},
|
|
theoremspace={}, roundcorner=6pt,
|
|
outerlinewidth=1pt, outerlinecolor=black]{@thm1}{\Jd Théorème}
|
|
\mdtheorem[style=nologo, theoremseparator={},
|
|
theoremspace={}, roundcorner=6pt,
|
|
outerlinewidth=1pt, outerlinecolor=black]{@thm2}{\Jd Théorème}
|
|
|
|
\RenewDocumentEnvironment{@thm1}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@thm1*}
|
|
}{
|
|
\begin{@thm1*}[\hfill{\normalfont\slshape#1}]
|
|
}
|
|
}{%end
|
|
\end{@thm1*}
|
|
}
|
|
|
|
\RenewDocumentEnvironment{@thm2}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@thm2*}
|
|
}{
|
|
\begin{@thm2*}[\hfill{\normalfont\slshape#1}]
|
|
}
|
|
}{%end
|
|
\end{@thm2*}
|
|
}
|
|
|
|
% coroallaire
|
|
\mdtheorem[style=pencil, theoremseparator={},
|
|
theoremspace={}, roundcorner=3pt,
|
|
outerlinecolor=black]{@coro1}{\Jd Corollaire}
|
|
\mdtheorem[style=nologo, theoremseparator={},
|
|
theoremspace={}, roundcorner=3pt,
|
|
outerlinecolor=black]{@coro2}{\Jd Corollaire}
|
|
|
|
\RenewDocumentEnvironment{@coro1}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@coro1*}
|
|
}{
|
|
\begin{@coro1*}[\hfill{\normalfont\slshape#1}]
|
|
}
|
|
}{%end
|
|
\end{@coro1*}
|
|
}
|
|
|
|
\RenewDocumentEnvironment{@coro2}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@coro2*}
|
|
}{
|
|
\begin{@coro2*}[\hfill{\normalfont\slshape#1}]
|
|
}
|
|
}{%end
|
|
\end{@coro2*}
|
|
}
|
|
|
|
% propriete
|
|
\mdtheorem[style=pencil, theoremseparator={}, theoremspace={},
|
|
outerlinewidth=1pt, outerlinecolor=black]{@ppt1}{\Jd Propriété}
|
|
\mdtheorem[style=nologo, theoremseparator={}, theoremspace={},
|
|
outerlinewidth=1pt, outerlinecolor=black]{@ppt2}{\Jd Propriété}
|
|
|
|
\RenewDocumentEnvironment{@ppt1}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@ppt1*}
|
|
}{
|
|
\begin{@ppt1*}[\hfill{\normalfont\slshape#1}]
|
|
}
|
|
}{%end
|
|
\end{@ppt1*}
|
|
}
|
|
|
|
\RenewDocumentEnvironment{@ppt2}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@ppt2*}
|
|
}{
|
|
\begin{@ppt2*}[\hfill{\normalfont\slshape#1}]
|
|
}
|
|
}{%end
|
|
\end{@ppt2*}
|
|
}
|
|
|
|
% demonstration
|
|
\mdtheorem[style=pencil, theoremseparator={},
|
|
theoremspace={}]{@dem1}{\Jd Démonstration}
|
|
\mdtheorem[style=nologo, theoremseparator={},
|
|
theoremspace={}]{@dem2}{\Jd Démonstration}
|
|
|
|
\RenewDocumentEnvironment{@dem1}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@dem1*}
|
|
}{
|
|
\begin{@dem1*}[\hfill{\normalfont\slshape#1}]
|
|
}
|
|
}{%end
|
|
\end{@dem1*}
|
|
}
|
|
|
|
\RenewDocumentEnvironment{@dem2}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@dem2*}
|
|
}{
|
|
\begin{@dem2*}[\hfill{\normalfont\slshape#1}]
|
|
}
|
|
}{%end
|
|
\end{@dem2*}
|
|
}
|
|
|
|
% consequence
|
|
\mdtheorem[style=nologo, theoremseparator={}, theoremspace={},
|
|
outerlinewidth=1pt, outerlinecolor=black]{@csq1}{\Jd Conséquence(s)}
|
|
\mdtheorem[style=nologo, theoremseparator={}, theoremspace={},
|
|
outerlinewidth=1pt, outerlinecolor=black]{@csq2}{}
|
|
|
|
\RenewDocumentEnvironment{@csq1}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@csq1*}
|
|
}{
|
|
\begin{@csq1*}[\hfill{\normalfont\slshape#1}]
|
|
}
|
|
}{%end
|
|
\end{@csq1*}
|
|
}
|
|
|
|
\RenewDocumentEnvironment{@csq2}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@csq2*}
|
|
}{
|
|
\begin{@csq2*}[\hfill{\normalfont\slshape#1}]
|
|
}
|
|
}{%end
|
|
\end{@csq2*}
|
|
}
|
|
|
|
% vocabulaire
|
|
\mdtheorem[style=noborder, theoremseparator={},
|
|
theoremspace={}]{@voc1}{\Jd Vocabulaire}
|
|
\mdtheorem[style=nologo, theoremseparator={},
|
|
theoremspace={}]{@voc2}{\Jd Vocabulaire}
|
|
|
|
\RenewDocumentEnvironment{@voc1}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@voc1*}
|
|
}{
|
|
\begin{@voc1*}[\hfill{\normalfont\slshape#1}]
|
|
}
|
|
}{%end
|
|
\end{@voc1*}
|
|
}
|
|
|
|
\RenewDocumentEnvironment{@voc2}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@voc2*}
|
|
}{
|
|
\begin{@voc2*}[\hfill{\normalfont\slshape#1}]
|
|
}
|
|
}{%end
|
|
\end{@voc2*}
|
|
}
|
|
|
|
% commentaire
|
|
\mdtheorem[style=comment, frametitle=none,
|
|
frametitleaboveskip=0em, frametitlebelowskip=0em]{@com}{}
|
|
|
|
\RenewDocumentEnvironment{@com}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@com*}
|
|
}{
|
|
\begin{@com*}[#1]
|
|
}
|
|
}{%end
|
|
\end{@com*}
|
|
}
|
|
|
|
% remarque
|
|
\mdtheorem[style=warning, theoremseparator={ -},
|
|
theoremspace={}]{@rmq1}{\Jd Remarque(s)}
|
|
\mdtheorem[style=warning, theoremseparator={},
|
|
theoremspace={}]{@rmq2}{}
|
|
|
|
\RenewDocumentEnvironment{@rmq1}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@rmq1*}
|
|
}{
|
|
\begin{@rmq1*}[#1]
|
|
}
|
|
}{%end
|
|
\end{@rmq1*}
|
|
}
|
|
|
|
\RenewDocumentEnvironment{@rmq2}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@rmq2*}
|
|
}{
|
|
\begin{@rmq2*}[#1]
|
|
}
|
|
}{%end
|
|
\end{@rmq2*}
|
|
}
|
|
|
|
% exemple
|
|
\mdtheorem[style=eye, theoremseparator={ -}, theoremspace={}]{@exe1}{\Jd Exemple}
|
|
\mdtheorem[style=eye, theoremseparator={}, theoremspace={}]{@exe2}{}
|
|
|
|
\RenewDocumentEnvironment{@exe1}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@exe1*}
|
|
}{
|
|
\begin{@exe1*}[#1]
|
|
}
|
|
}{%end
|
|
\end{@exe1*}
|
|
}
|
|
|
|
\RenewDocumentEnvironment{@exe2}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@exe2*}
|
|
}{
|
|
\begin{@exe2*}[#1]
|
|
}
|
|
}{%end
|
|
\end{@exe2*}
|
|
}
|
|
|
|
% application
|
|
\mdtheorem[style=cogs, theoremseparator={},
|
|
theoremspace={}]{@app1}{\Jd Application}
|
|
\mdtheorem[style=cogs, theoremseparator={},
|
|
theoremspace={}]{@app2}{}
|
|
|
|
\RenewDocumentEnvironment{@app1}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@app1*}
|
|
}{
|
|
\begin{@app1*}[\hfill{\normalfont\slshape#1}]
|
|
}
|
|
}{%end
|
|
\end{@app1*}
|
|
}
|
|
|
|
\RenewDocumentEnvironment{@app2}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@app2*}
|
|
}{
|
|
\begin{@app2*}[\hfill{\normalfont\slshape#1}]
|
|
}
|
|
}{%end
|
|
\end{@app2*}
|
|
}
|
|
|
|
% methode
|
|
\mdtheorem[style=bookmark, theoremseparator={ -},
|
|
theoremspace={}]{@met1}{\Jd Méthode}
|
|
\mdtheorem[style=noborder, theoremseparator={},
|
|
theoremspace={}]{@met2}{}
|
|
|
|
\RenewDocumentEnvironment{@met1}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@met1*}
|
|
}{
|
|
\begin{@met1*}[#1]
|
|
}
|
|
}{%end
|
|
\end{@met1*}
|
|
}
|
|
|
|
\RenewDocumentEnvironment{@met2}{ o } {%begin
|
|
\IfNoValueTF {#1} {
|
|
\begin{@met2*}
|
|
}{
|
|
\begin{@met2*}[#1]
|
|
}
|
|
}{%end
|
|
\end{@met2*}
|
|
}
|
|
|
|
% Need to adapt the code in order to get numbering and
|
|
% framing
|
|
%% application
|
|
%\newtheoremstyle{@app1}
|
|
% {\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}\thmnumber{ #2}\thmnote{ - \normalfont{\textit{#3}}}}
|
|
% % composants du titre du thm : \thmname = nom, \thmnumber = numéro, \thmnote = sous-titre
|
|
%
|
|
%\theoremstyle{@app1}
|
|
%\newtheorem{application1}{\Jd Application}
|
|
%
|
|
%% application
|
|
%\newtheoremstyle{@app2}
|
|
%{\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{@app2}
|
|
%\newtheorem*{application2}{\Jd Application}
|
|
%
|
|
%\counterwithin*{application1}{section}
|
|
|
|
% exercice
|
|
\newtheoremstyle{@exo1}
|
|
{\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}\thmnumber{ #2}\thmnote{ - \normalfont{\textit{#3}}}}
|
|
% composants du titre du thm : \thmname = nom, \thmnumber = numéro, \thmnote = sous-titre
|
|
|
|
\theoremstyle{@exo1}
|
|
\newtheorem{exercice1}{\Jd 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}{\Jd Exercice}
|
|
|
|
\counterwithin*{exercice1}{section}
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
%
|
|
%
|
|
% ENVIRONMENTS
|
|
%
|
|
%
|
|
|
|
% definition
|
|
\NewDocumentEnvironment{definition}{ s o }{
|
|
\IfBooleanTF {#1} {
|
|
% if starred: with logo
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@def1}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@def1}[#2]
|
|
|
|
}
|
|
}{
|
|
% if not starred: without logo
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@def2}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@def2}[#2]
|
|
|
|
}
|
|
}
|
|
}{
|
|
\IfBooleanTF {#1} {
|
|
\end{@def1}
|
|
}{
|
|
\end{@def2}
|
|
}
|
|
}
|
|
|
|
% theoreme
|
|
\NewDocumentEnvironment{theoreme}{ s o }{
|
|
\IfBooleanTF {#1} {
|
|
% if starred: with logo
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@thm1}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@thm1}[#2]
|
|
|
|
}
|
|
}{
|
|
% if not starred: without logo
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@thm2}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@thm2}[#2]
|
|
|
|
}
|
|
}
|
|
}{
|
|
\IfBooleanTF {#1} {
|
|
\end{@thm1}
|
|
}{
|
|
\end{@thm2}
|
|
}
|
|
}
|
|
|
|
% corollaire
|
|
\NewDocumentEnvironment{corollaire}{ s o }{
|
|
\IfBooleanTF {#1} {
|
|
% if starred: with logo
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@coro1}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@coro1}[#2]
|
|
|
|
}
|
|
}{
|
|
% if not starred: without logo
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@coro2}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@coro2}[#2]
|
|
|
|
}
|
|
}
|
|
}{
|
|
\IfBooleanTF {#1} {
|
|
\end{@coro1}
|
|
}{
|
|
\end{@coro2}
|
|
}
|
|
}
|
|
|
|
% propriete
|
|
\NewDocumentEnvironment{propriete}{ s o }{
|
|
\IfBooleanTF {#1} {
|
|
% if starred: with logo
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@ppt1}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@ppt1}[#2]
|
|
|
|
}
|
|
}{
|
|
% if not starred: without logo
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@ppt2}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@ppt2}[#2]
|
|
|
|
}
|
|
}
|
|
}{
|
|
\IfBooleanTF {#1} {
|
|
\end{@ppt1}
|
|
}{
|
|
\end{@ppt2}
|
|
}
|
|
}
|
|
|
|
% demonstration
|
|
\NewDocumentEnvironment{demonstration}{ s o }{
|
|
\IfBooleanTF {#1} {
|
|
% if starred: with logo
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@dem1}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@dem1}[#2]
|
|
|
|
}
|
|
}{
|
|
% if not starred: without logo
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@dem2}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@dem2}[#2]
|
|
|
|
}
|
|
}
|
|
}{
|
|
\IfBooleanTF {#1} {
|
|
\end{@dem1}
|
|
}{
|
|
\end{@dem2}
|
|
}
|
|
}
|
|
|
|
% consequence
|
|
\NewDocumentEnvironment{consequence}{ s o }{
|
|
\IfBooleanTF {#1} {
|
|
% if starred: without title
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@csq2}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@csq2}[#2]
|
|
|
|
}
|
|
}{
|
|
% if not starred: with title
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@csq1}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@csq1}[#2]
|
|
|
|
}
|
|
}
|
|
}{
|
|
\IfBooleanTF {#1} {
|
|
\end{@csq2}
|
|
}{
|
|
\end{@csq1}
|
|
}
|
|
}
|
|
|
|
% vocabulaire
|
|
\NewDocumentEnvironment{vocabulaire}{ s o }{
|
|
\IfBooleanTF {#1} {
|
|
% if starred: with logo
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@voc1}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@voc1}[#2]
|
|
|
|
}
|
|
}{
|
|
% if not starred: without logo
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@voc2}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@voc2}[#2]
|
|
|
|
}
|
|
}
|
|
}{
|
|
\IfBooleanTF {#1} {
|
|
\end{@voc1}
|
|
}{
|
|
\end{@voc2}
|
|
}
|
|
}
|
|
|
|
% citation
|
|
\NewDocumentEnvironment{commentaire}{ o }{
|
|
\IfNoValueTF {#1} {
|
|
% if no subtitle
|
|
\begin{@com}
|
|
% \vspace{-.5cm}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@com}[#1]
|
|
|
|
}
|
|
}{
|
|
\end{@com}
|
|
}
|
|
|
|
% remarque
|
|
\NewDocumentEnvironment{remarque}{ s o }{
|
|
\IfBooleanTF {#1} {
|
|
% if starred: without title
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@rmq2}
|
|
% \vspace{-.3cm}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@rmq2}[#2]
|
|
% \vspace{-.3cm}
|
|
|
|
}
|
|
}{
|
|
% if not starred: with title
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@rmq1}
|
|
\vspace{-.5cm}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@rmq1}[#2]
|
|
\vspace{-.5cm}
|
|
|
|
}
|
|
}
|
|
}{
|
|
\IfBooleanTF {#1} {
|
|
\end{@rmq2}
|
|
}{
|
|
\end{@rmq1}
|
|
}
|
|
}
|
|
|
|
% exemple
|
|
\NewDocumentEnvironment{exemple}{ s o }{
|
|
\IfBooleanTF {#1} {
|
|
% if starred: without title
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@exe2}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@exe2}[#2]
|
|
|
|
}
|
|
}{
|
|
% if not starred: with title
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@exe1}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@exe1}[#2]
|
|
|
|
}
|
|
}
|
|
}{
|
|
\IfBooleanTF {#1} {
|
|
\end{@exe2}
|
|
}{
|
|
\end{@exe1}
|
|
}
|
|
}
|
|
|
|
% application
|
|
\NewDocumentEnvironment{application}{ s o }{
|
|
\IfBooleanTF {#1} {
|
|
% if starred: without logo and title
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@app2}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@app2}[#2]
|
|
|
|
}
|
|
}{
|
|
% if not starred: with logo
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@app1}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@app1}[#2]
|
|
|
|
}
|
|
}
|
|
}{
|
|
\IfBooleanTF {#1} {
|
|
\end{@app2}
|
|
}{
|
|
\end{@app1}
|
|
}
|
|
}
|
|
|
|
% methode
|
|
\NewDocumentEnvironment{methode}{ s o }{
|
|
\IfBooleanTF {#1} {
|
|
% if starred: without logo and title
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@met2}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@met2}[#2]
|
|
|
|
}
|
|
}{
|
|
% if not starred: with logo
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{@met1}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{@met1}[#2]
|
|
|
|
}
|
|
}
|
|
}{
|
|
\IfBooleanTF {#1} {
|
|
\end{@met2}
|
|
}{
|
|
\end{@met1}
|
|
}
|
|
}
|
|
|
|
% Need to adapt the code in order to get numbering and
|
|
% framing
|
|
%% application
|
|
%\NewDocumentEnvironment{application}{ s o o o}{
|
|
% \IfBooleanTF {#1} {
|
|
% % if starred: without logo and title
|
|
% \IfNoValueTF {#2} {
|
|
% % if no subtitle
|
|
% \begin{application2}
|
|
%
|
|
% }{
|
|
% % if subtitle
|
|
% \begin{application2}[#2]
|
|
%
|
|
% }
|
|
% }{
|
|
% % if not starred: with number
|
|
% \IfNoValueTF {#2} {
|
|
% % if no subtitle
|
|
% \begin{application1}
|
|
%
|
|
% }{
|
|
% % if subtitle
|
|
% \begin{application1}[#2]
|
|
%
|
|
% }
|
|
% }
|
|
% }{
|
|
% \IfBooleanTF {#1} {
|
|
% \end{application2}
|
|
% }{
|
|
% \end{application1}
|
|
% }
|
|
% }
|
|
|
|
% exercice
|
|
\NewDocumentEnvironment{exercice}{ s o o o}{
|
|
\IfBooleanTF {#1} {
|
|
% if starred: without logo and title
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{exercice2}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{exercice2}[#2]
|
|
|
|
}
|
|
}{
|
|
% if not starred: with number
|
|
\IfNoValueTF {#2} {
|
|
% if no subtitle
|
|
\begin{exercice1}
|
|
|
|
}{
|
|
% if subtitle
|
|
\begin{exercice1}[#2]
|
|
|
|
}
|
|
}
|
|
}{
|
|
\IfBooleanTF {#1} {
|
|
\end{exercice2}
|
|
}{
|
|
\end{exercice1}
|
|
}
|
|
}
|
|
|
|
% rappel
|
|
\NewDocumentEnvironment{rappel}{ o }{
|
|
\IfNoValueTF {#1} {
|
|
\begin{bclogo}[logo=\bclivre, noborder=true]{Rappel}
|
|
}{
|
|
\begin{bclogo}[logo=\bclivre, noborder=true]{#1}
|
|
}
|
|
}{
|
|
\end{bclogo}
|
|
}
|
|
|
|
% aide
|
|
\NewDocumentEnvironment{aide}{ o }{
|
|
\IfNoValueTF {#1} {
|
|
\begin{bclogo}[logo=\bcaide, noborder=true, barre=motif, motifBarre=$ $]{ }
|
|
\vspace{-1.1em}\em
|
|
}{
|
|
\begin{bclogo}[logo=\bcaide, noborder=true, barre=motif, motifBarre=$ $]{\textnormal{\em #1}}
|
|
\em
|
|
}
|
|
}{
|
|
\end{bclogo}
|
|
}
|
|
|
|
%% objectif
|
|
%% Tentative d'environnement utilisant bclogo
|
|
%\NewDocumentEnvironment{objectif}{ }{
|
|
% \vspace{1cm}
|
|
% \begin{center}
|
|
% \Annie\textbf{Objectif :}
|
|
%}{
|
|
% \end{center}
|
|
% \vspace{1cm}
|
|
%}
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|