This commit is contained in:
Jeff Lance 2020-03-04 19:13:37 +01:00
parent 3b8871ed9c
commit 9d1aa56d14
3 changed files with 61 additions and 2 deletions

View File

@ -137,6 +137,39 @@
} }
} }
% 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 % vocabulaire
\NewDocumentEnvironment{vocabulaire}{ s o }{ \NewDocumentEnvironment{vocabulaire}{ s o }{
\IfBooleanTF {#1} { \IfBooleanTF {#1} {

View File

@ -262,9 +262,9 @@
} }
} }
%% page %% pagesuivante
%% %%
\NewDocumentCommand{\nextpage}{}{ \NewDocumentCommand{\pagesuivante}{}{
\newpage \newpage
\thispagestyle{plain} \thispagestyle{plain}
\lefoot*{} \lefoot*{}

View File

@ -116,6 +116,32 @@
\end{@dem2*} \end{@dem2*}
} }
% consequence
\mdtheorem[style=nologo, theoremseparator={}, theoremspace={},
outerlinewidth=1pt, outerlinecolor=black]{@csq1}{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 % vocabulaire
\mdtheorem[style=pencil, theoremseparator={}, \mdtheorem[style=pencil, theoremseparator={},
theoremspace={}]{@voc1}{Vocabulaire} theoremspace={}]{@voc1}{Vocabulaire}