Divide the app env into two new envs with or without title.

This commit is contained in:
Jeff Lance 2019-01-13 10:19:10 +01:00
parent daddccb173
commit 0edcfd66e2

View File

@ -143,7 +143,7 @@
} }
% commentaire % commentaire
\mdtheorem[style=quote, frametitle=none, \mdtheorem[style=comment, frametitle=none,
frametitleaboveskip=0em, frametitlebelowskip=0em]{@com}{} frametitleaboveskip=0em, frametitlebelowskip=0em]{@com}{}
\RenewDocumentEnvironment{@com}{ o } {%begin \RenewDocumentEnvironment{@com}{ o } {%begin
@ -153,7 +153,7 @@
\begin{@com*}[#1] \begin{@com*}[#1]
} }
}{%end }{%end
\end{@com*} \end{@com*}
} }
% remarque % remarque
@ -208,16 +208,28 @@
% application % application
\mdtheorem[style=cogs, theoremseparator={ -}, \mdtheorem[style=cogs, theoremseparator={ -},
theoremspace={}]{@app}{Application} theoremspace={}]{@app1}{Application}
\mdtheorem[style=cogs, theoremseparator={ -},
theoremspace={}]{@app2}{}
\RenewDocumentEnvironment{@app}{ o } {%begin \RenewDocumentEnvironment{@app1}{ o } {%begin
\IfNoValueTF {#1} { \IfNoValueTF {#1} {
\begin{@app*} \begin{@app1*}
}{ }{
\begin{@app*}[#1] \begin{@app1*}[#1]
} }
}{%end }{%end
\end{@app*} \end{@app2*}
}
\RenewDocumentEnvironment{@app2}{ o } {%begin
\IfNoValueTF {#1} {
\begin{@app2*}
}{
\begin{@app2*}[#1]
}
}{%end
\end{@app2*}
} }
% methode % methode