Feat: font parameter and listexercise

This commit is contained in:
Bertrand Benjamin 2022-01-16 17:28:19 +01:00
parent 0563c8c153
commit 137431bbbb
3 changed files with 27 additions and 14 deletions

View File

@ -1,13 +1,12 @@
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
% extensions % extensions
\RequirePackage[utf8x]{inputenc} %\RequirePackage[utf8x]{inputenc}
\RequirePackage[french]{babel} \RequirePackage[french]{babel}
%\usepackage[babel=true,kerning=true]{microtype} %\usepackage[babel=true,kerning=true]{microtype}
\RequirePackage[T1]{fontenc} %\RequirePackage{amssymb}
\RequirePackage{amssymb} %\RequirePackage{amsmath}
\RequirePackage{amsmath} %\RequirePackage{amsfonts}
\RequirePackage{amsfonts}
\PassOptionsToPackage{table,usenames,dvipsnames}{xcolor} \PassOptionsToPackage{table,usenames,dvipsnames}{xcolor}
\RequirePackage{hyperref} \RequirePackage{hyperref}
%\RequirePackage{subfig} %\RequirePackage{subfig}
@ -15,6 +14,7 @@
\RequirePackage{graphicx} \RequirePackage{graphicx}
\graphicspath{{./}{\string~/.Clipart/}} \graphicspath{{./}{\string~/.Clipart/}}
\RequirePackage{textcomp}
\RequirePackage{gensymb} \RequirePackage{gensymb}
\RequirePackage{ifthen, calc} \RequirePackage{ifthen, calc}
\RequirePackage{tabularx} \RequirePackage{tabularx}
@ -53,10 +53,16 @@
\RequirePackage{shortcuts} \RequirePackage{shortcuts}
%Polices %Polices
%% l'option nomath fait que la police du mode mathématique n'est pas affectée \RequirePackage{kpfonts-otf}
\RequirePackage[nomath]{kpfonts} \RequirePackage{fontspec}
\renewcommand*\familydefault{\sfdefault} \setmainfont{KpSans}
\RequirePackage[T1]{fontenc} \setsansfont{KpSans}
\setmonofont{KpMono}
% \RequirePackage[nomath]{kpfonts}
% \renewcommand*\familydefault{\sfdefault}
% \RequirePackage[T1]{fontenc}
% Les tableaux % Les tableaux
\renewcommand{\arraystretch}{1.5} \renewcommand{\arraystretch}{1.5}

View File

@ -104,16 +104,23 @@
} }
\newcommand\listsectionexercises{% \newcommand\listsectionexercises{%
\begin{itemize}
\begin{itemize}[label={$\square$}]
\ForEachUsedExerciseByType{% \ForEachUsedExerciseByType{%
\ifnum\ExercisePropertyGet{##1}{##2}{step}=\value{section} \ifnum\ExercisePropertyGet{##1}{##2}{step}=\value{section}%
\item \item %
\XSIMmixedcase{\GetExerciseName}\nobreakspace \XSIMmixedcase{\GetExerciseName}\nobreakspace
\GetExerciseProperty{counter}% \GetExerciseProperty{counter}%
{{\PropertyValue}}: % {{\PropertyValue}}: %
\GetExerciseProperty{subtitle}% \GetExerciseProperty{subtitle}%
{{\PropertyValue}}% {{\PropertyValue}}%
\dotfill
%Auto-évaluation
\begin{tikzpicture}
\foreach \k in {0,1,...,4}{
\draw (\k*0.5, 0) node[draw, star, star points=5, star point ratio=0.5]{};
}
\end{tikzpicture}
\fi \fi
}% }%
\end{itemize} \end{itemize}

View File

@ -97,7 +97,7 @@
% Pour l'évaluation par compétence % Pour l'évaluation par compétence
\usepackage{tikzsymbols} \usepackage{tikzsymbols}
\usetikzlibrary{babel} \usetikzlibrary{babel, shapes, snakes}
\RequirePackage{xstring} \RequirePackage{xstring}
\newcommand{\RepLevel}[1]{% \newcommand{\RepLevel}[1]{%