Add a corollaire environment

This commit is contained in:
Jeff Lance 2021-12-04 18:01:36 +01:00
parent b441f956df
commit 925f90688b
2 changed files with 53 additions and 0 deletions

View File

@ -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} {

View File

@ -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é}