diff --git a/tools/example/report.pdf b/tools/example/report.pdf index dd99f13..2e2449a 100644 Binary files a/tools/example/report.pdf and b/tools/example/report.pdf differ diff --git a/tools/example/report.tex b/tools/example/report.tex index 1fc7d1d..817cae7 100644 --- a/tools/example/report.tex +++ b/tools/example/report.tex @@ -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} diff --git a/tools/style/base.sty b/tools/style/base.sty index 3b8d0a9..8dca3b9 100755 --- a/tools/style/base.sty +++ b/tools/style/base.sty @@ -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} diff --git a/tools/style/shortcuts.sty b/tools/style/shortcuts.sty index 12b3bb5..0aa53ce 100755 --- a/tools/style/shortcuts.sty +++ b/tools/style/shortcuts.sty @@ -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