Feat: template pour l'environnement solution

This commit is contained in:
Bertrand Benjamin 2021-11-15 11:28:07 +01:00
parent 69c6c02bfd
commit 74e6c1240d

View File

@ -37,6 +37,22 @@
}{} }{}
\xsimsetup{exercise/template=exo} \xsimsetup{exercise/template=exo}
\DeclareExerciseEnvironmentTemplate{sol}{%
\subsection*
{%
\color{exercise}{\XSIMmixedcase{\GetExerciseName}}\nobreakspace
: Exercice \GetExerciseProperty{counter}%
\hspace{0.5cm} \color{line}\hrulefill \hspace{0.5cm}
\color{exercise}
\IfInsideSolutionF
{%
}%
\noindent
}
}{}
\xsimsetup{solution/template=sol}
\DeclareExerciseTableTemplate{DNB}{% \DeclareExerciseTableTemplate{DNB}{%
\XSIMputright\ExerciseTableCode{% \XSIMputright\ExerciseTableCode{%
\hline \hline