From 9d1aa56d140148d6f77412637d77ecf49fb588d7 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Wed, 4 Mar 2020 19:13:37 +0100 Subject: [PATCH] Up --- jl-cours/environments.tex | 33 +++++++++++++++++++++++++++++++++ jl-cours/jl-cours.cls | 4 ++-- jl-cours/mdtheorem.tex | 26 ++++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 2 deletions(-) diff --git a/jl-cours/environments.tex b/jl-cours/environments.tex index c939f5c..2310cfa 100644 --- a/jl-cours/environments.tex +++ b/jl-cours/environments.tex @@ -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 \NewDocumentEnvironment{vocabulaire}{ s o }{ \IfBooleanTF {#1} { diff --git a/jl-cours/jl-cours.cls b/jl-cours/jl-cours.cls index 5234095..94472c4 100644 --- a/jl-cours/jl-cours.cls +++ b/jl-cours/jl-cours.cls @@ -262,9 +262,9 @@ } } -%% page +%% pagesuivante %% -\NewDocumentCommand{\nextpage}{}{ +\NewDocumentCommand{\pagesuivante}{}{ \newpage \thispagestyle{plain} \lefoot*{} diff --git a/jl-cours/mdtheorem.tex b/jl-cours/mdtheorem.tex index deec09f..1bdc7eb 100644 --- a/jl-cours/mdtheorem.tex +++ b/jl-cours/mdtheorem.tex @@ -116,6 +116,32 @@ \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 \mdtheorem[style=pencil, theoremseparator={}, theoremspace={}]{@voc1}{Vocabulaire}