Add a corollaire environment
This commit is contained in:
parent
b441f956df
commit
925f90688b
@ -71,6 +71,39 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% 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
|
% propriete
|
||||||
\NewDocumentEnvironment{propriete}{ s o }{
|
\NewDocumentEnvironment{propriete}{ s o }{
|
||||||
\IfBooleanTF {#1} {
|
\IfBooleanTF {#1} {
|
||||||
|
@ -64,6 +64,26 @@
|
|||||||
\end{@thm2*}
|
\end{@thm2*}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\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
|
% propriete
|
||||||
\mdtheorem[style=pencil, theoremseparator={}, theoremspace={},
|
\mdtheorem[style=pencil, theoremseparator={}, theoremspace={},
|
||||||
outerlinewidth=1pt, outerlinecolor=black]{@ppt1}{\Jd Propriété}
|
outerlinewidth=1pt, outerlinecolor=black]{@ppt1}{\Jd Propriété}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user