2020-08-07 16:04:18 +00:00
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
|
|
% extensions
|
|
|
|
|
|
|
|
\RequirePackage{colorscheme}
|
|
|
|
\RequirePackage{base}
|
|
|
|
\RequirePackage{myhdr}
|
2020-12-06 06:17:04 +00:00
|
|
|
\RequirePackage{notbeamer}
|
2020-08-07 16:04:18 +00:00
|
|
|
|
|
|
|
\RequirePackage[no-files]{xsim}
|
|
|
|
|
|
|
|
\DeclareExerciseTagging{step}
|
2020-09-29 09:21:23 +00:00
|
|
|
\DeclareExerciseTagging{type}
|
2020-10-01 08:29:24 +00:00
|
|
|
\DeclareExerciseTagging{tribe}
|
2020-08-11 15:21:57 +00:00
|
|
|
\DeclareExerciseTagging{difficulty}
|
|
|
|
\DeclareExerciseTagging{origin}
|
2020-08-07 16:04:18 +00:00
|
|
|
|
|
|
|
\DeclareExerciseTranslations{total}{
|
|
|
|
French = total ,
|
|
|
|
}
|
|
|
|
|
|
|
|
\DeclareExerciseEnvironmentTemplate{exo}{%
|
|
|
|
\subsection*
|
|
|
|
{%
|
|
|
|
\color{exercise}{\XSIMmixedcase{\GetExerciseName}}\nobreakspace
|
|
|
|
\GetExerciseProperty{counter}%
|
|
|
|
\hspace{0.5cm} \color{line}\hrulefill \hspace{0.5cm}
|
|
|
|
\color{exercise}
|
|
|
|
\IfInsideSolutionF
|
|
|
|
{%
|
|
|
|
\GetExercisePropertyT{subtitle}
|
|
|
|
{{\PropertyValue}}%
|
|
|
|
\GetExercisePropertyT{points}
|
|
|
|
{{(/\PropertyValue})}%
|
|
|
|
}%
|
|
|
|
\noindent
|
|
|
|
}
|
|
|
|
}{}
|
|
|
|
\xsimsetup{exercise/template=exo}
|
|
|
|
|
|
|
|
\DeclareExerciseTableTemplate{DNB}{%
|
|
|
|
\XSIMputright\ExerciseTableCode{%
|
|
|
|
\hline
|
|
|
|
\XSIMifblankTF{\ExerciseType}
|
|
|
|
{}
|
|
|
|
{\XSIMmixedcase{\GetExerciseParameter{exercise-name}}}
|
|
|
|
&
|
|
|
|
\XSIMmixedcase{\XSIMtranslate{points}} \\
|
|
|
|
\hline
|
|
|
|
}%
|
|
|
|
\ForEachUsedExerciseByType{%
|
|
|
|
\XSIMifeqTF{#1}{\ExerciseTableType{#1}}
|
|
|
|
{%
|
|
|
|
\XSIMifblankTF{\ExerciseType}
|
|
|
|
{%
|
|
|
|
\XSIMputright\ExerciseTableCode{%
|
|
|
|
\XSIMmixedcase{\ExerciseParameterGet{#1}{exercise-name} }%
|
|
|
|
}%
|
|
|
|
}
|
|
|
|
{}%
|
|
|
|
\XSIMputright\ExerciseTableCode
|
|
|
|
{#3 & \XSIMifblankTF{#5}{\printgoal{0}}{\printgoal{#5}}\\ }%
|
|
|
|
}
|
|
|
|
{}%
|
|
|
|
}
|
|
|
|
\XSIMputright\ExerciseTableCode{%
|
|
|
|
\hline
|
|
|
|
\XSIMmixedcase{\XSIMtranslate{total}} &
|
|
|
|
\XSIMifblankTF{\ExerciseType}
|
|
|
|
{\TotalExerciseGoal{points}{}{}}
|
|
|
|
{\TotalExerciseTypeGoal{\ExerciseType}{points}{}{}} \\
|
|
|
|
\hline
|
|
|
|
}%
|
|
|
|
\XSIMexpandcode{%
|
|
|
|
\noexpand\begin{tabular}{|\XSIMifblankTF{\ExerciseType}{l}{c}|c|}
|
|
|
|
\noexpand\ExerciseTableCode
|
|
|
|
\noexpand\end{tabular}%
|
|
|
|
}%
|
|
|
|
}
|
|
|
|
|