signal bars
This commit is contained in:
parent
c6c289491c
commit
f22f8523ed
Binary file not shown.
@ -13,7 +13,7 @@
|
|||||||
\RequirePackage{graphicx}
|
\RequirePackage{graphicx}
|
||||||
\graphicspath{{./}{/home/lafrite/Cours/Prof/Enseignements/Clipart/}}
|
\graphicspath{{./}{/home/lafrite/Cours/Prof/Enseignements/Clipart/}}
|
||||||
|
|
||||||
\RequirePackage[table]{xcolor}
|
\RequirePackage[table, dvipsnames]{xcolor}
|
||||||
\RequirePackage{gensymb}
|
\RequirePackage{gensymb}
|
||||||
\RequirePackage{ifthen, calc}
|
\RequirePackage{ifthen, calc}
|
||||||
\RequirePackage{tabularx}
|
\RequirePackage{tabularx}
|
||||||
|
@ -111,12 +111,53 @@
|
|||||||
\newcommand{\RepZ}{\Changey[2]{-1}}
|
\newcommand{\RepZ}{\Changey[2]{-1}}
|
||||||
\newcommand{\NoRep}{\Xey[2]}
|
\newcommand{\NoRep}{\Xey[2]}
|
||||||
|
|
||||||
\newcommand{\Assesment}[1]{%
|
\newcommand{\EmptySignalBar}{%
|
||||||
|
\draw (0, 0) rectangle ++(0.8, 1);
|
||||||
|
\draw (1, 0) rectangle ++(0.8, 2);
|
||||||
|
\draw (2, 0) rectangle ++(0.8, 3);
|
||||||
|
\draw (3, 0) rectangle ++(0.8, 4);
|
||||||
|
}
|
||||||
|
\newcommand{\filledSignalBar}[1]{%
|
||||||
\IfEqCase{#1}{%
|
\IfEqCase{#1}{%
|
||||||
{0}{Très bonne maîtrise}%
|
{3}{%
|
||||||
{1}{Maîtrise satisfaisante}%
|
\filldraw[fill=OliveGreen] (0, 0) rectangle ++(0.8, 1);
|
||||||
{2}{Maîtrise fragile}%
|
\filldraw[fill=OliveGreen] (1, 0) rectangle ++(0.8, 2);
|
||||||
{3}{Maîtrise insufisante}%
|
\filldraw[fill=OliveGreen] (2, 0) rectangle ++(0.8, 3);
|
||||||
|
\filldraw[fill=OliveGreen] (3, 0) rectangle ++(0.8, 4);
|
||||||
|
}
|
||||||
|
{2}{%
|
||||||
|
\filldraw[fill=Green] (0, 0) rectangle ++(0.8, 1);
|
||||||
|
\filldraw[fill=Green] (1, 0) rectangle ++(0.8, 2);
|
||||||
|
\filldraw[fill=Green] (2, 0) rectangle ++(0.8, 3);
|
||||||
|
}
|
||||||
|
{1}{%
|
||||||
|
\filldraw[fill=yellow] (0, 0) rectangle ++(0.8, 1);
|
||||||
|
\filldraw[fill=yellow] (1, 0) rectangle ++(0.8, 2);
|
||||||
|
}
|
||||||
|
{0}{%
|
||||||
|
\filldraw[fill=red] (0, 0) rectangle ++(0.8, 1);
|
||||||
|
}
|
||||||
|
}[\PackageError{Assesment}{Undefinded type of answer: #1}{}]%
|
||||||
|
}
|
||||||
|
|
||||||
|
\newcommand{\Assesment}[1]{%
|
||||||
|
\begin{tikzpicture}[scale=0.15]
|
||||||
|
\EmptySignalBar
|
||||||
|
\filledSignalBar{#1}
|
||||||
|
\end{tikzpicture}
|
||||||
|
\IfEqCase{#1}{%
|
||||||
|
{3}{%
|
||||||
|
Très bonne maîtrise%
|
||||||
|
}%
|
||||||
|
{2}{%
|
||||||
|
Maîtrise satisfaisante
|
||||||
|
}%
|
||||||
|
{1}{%
|
||||||
|
Maîtrise fragile%
|
||||||
|
}%
|
||||||
|
{0}{%
|
||||||
|
Maîtrise insufisante%
|
||||||
|
}%
|
||||||
}[\PackageError{Assesment}{Undefinded type of answer: #1}{}]%
|
}[\PackageError{Assesment}{Undefinded type of answer: #1}{}]%
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user