Makr RepLevel and Assesment easier to work with

This commit is contained in:
Bertrand Benjamin 2017-09-20 07:32:38 +03:00
parent 971524c538
commit e881cdb160
4 changed files with 48 additions and 18 deletions

Binary file not shown.

View File

@ -1,9 +1,8 @@
\documentclass{classReport}
\documentclass[a5paper,12pt]{article}
\usepackage{myXsim}
% Title Page
\titre{Devoir surveillé n}
% \seconde \premiereS \PSTMG \TSTMG
\classe{Une classe}
\title{Devoir surveillé n}
\tribe{Une classe}
\date{10 mars 2015}
@ -34,26 +33,35 @@
}
\vfill
\begin{tabular}{|p{3cm}|p{3cm}|p{3cm}|}
\hline
\rowcolor{highlightbg} Exercices & Barème & réussite \\
\hline
Exercice 1 & 10 & 9 \\
\hline
1 & 1 & \NoRep \\
1 & 1 & \RepLevel{.} \\
\hline
2 & 1 & \RepZ \\
2 & 1 & \RepLevel{0} \\
\hline
3 & 1 & \RepU \\
3 & 1 & \RepLevel{1} \\
\hline
3 & 1 & \RepD \\
3 & 1 & \RepLevel{2} \\
\hline
3 & 1 & \RepT \\
3 & 1 & \RepLevel{3} \\
\hline
\end{tabular}
\vfill
Bilan par compétences
\begin{itemize}
\item \Cher Chercher: \Assesment{0}
\item \Mod Modéliser: \Assesment{1}
\item \Rep Représente: \Assesment{2}
\item \Rai Raisonner: \Assesment{3}
\end{itemize}
\pagebreak
\end{document}

View File

@ -11,6 +11,8 @@
\RequirePackage{amsfonts}
%\RequirePackage{subfig}
\RequirePackage{graphicx}
\graphicspath{{./}{/home/lafrite/Cours/Prof/Enseignements/Clipart/}}
\RequirePackage[table]{xcolor}
\RequirePackage{gensymb}
\RequirePackage{ifthen, calc}

View File

@ -63,7 +63,7 @@
% Icones
\newcommand{\icon}[2][scale=0.4]{%
\includegraphics[#1]{/media/documents/Cours/Prof/Enseignements/Clipart/icons/#2.png}%
\includegraphics[#1]{icons/#2.png}%
}
% Icones des compétences
@ -93,13 +93,33 @@
% Pour l'évaluation par compétence
\usepackage{tikzsymbols}
\usetikzlibrary{babel}
\RequirePackage{xstring}
\newcommand{\RepLevel}[1]{%
\IfEqCase{#1}{%
{.}{\Xey[2]}%
{0}{\Changey[2]{-1}}%
{1}{\Changey[2][black!20]{0}}%
{2}{\Changey[2][black!40]{1}}%
{3}{\Cooley[2][black!60]}%
}[\PackageError{Rep}{Undefinded type of answer: #}{}]%
}
\newcommand{\RepT}{\Cooley[2][black!70]}
\newcommand{\RepD}{\Changey[2][black!40]{1}}
\newcommand{\RepU}{\Changey[2][black!10]{0}}
\newcommand{\RepZ}{\Changey[2]{-1}}
\newcommand{\NoRep}{\Xey[2]}
\newcommand{\Assesment}[1]{%
\IfEqCase{#1}{%
{0}{Très bonne maîtrise}%
{1}{Maîtrise satisfaisante}%
{2}{Maîtrise fragile}%
{3}{Maîtrise insufisante}%
}[\PackageError{Assesment}{Undefinded type of answer: #}{}]%
}
%\newcommand{\RepT}{\color{black!10}\Changey[2][black!70]{0.8}\color{text}}
\newcommand{\RepT}{\Smiley[2][black!70]}
\newcommand{\RepD}{\Sey[2][black!40]}
\newcommand{\RepU}{\Neutrey[2][black!10]}
\newcommand{\RepZ}{\Sadey[2]}
\newcommand{\NoRep}{(??)}
% ##########################
% Tikz shortcuts