Makr RepLevel and Assesment easier to work with
This commit is contained in:
@@ -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}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user