change bilan to report

This commit is contained in:
Benjamin Bertrand
2017-03-07 13:08:50 +03:00
parent b273cb548f
commit 090be7a348
11 changed files with 57 additions and 54 deletions

View File

@@ -0,0 +1,28 @@
\documentclass{/media/documents/Cours/Prof/Enseignements/2016-2017/tools/style/classBilan}
\usepackage{/media/documents/Cours/Prof/Enseignements/2016-2017/theme}
\usepackage{booktabs}
% Title Page
\titre{\Var{report_info["Nom"]}}
% \seconde \premiereS \PSTMG \TSTMG
\classe{\Var{report_info["Classe"]}}
\date{\Var{report_info["Date"]}}
\begin{document}
\Block{block classPOV}\Block{endblock}
\pagebreak
\Block{block students}\Block{endblock}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

View File

@@ -0,0 +1,93 @@
%- extends "tpl_reports.tex"
% FILENAME: "tpl_reports_eval.tex
%- block classPOV
\maketitle
Devoir sur \Var{eval_df["Bareme"].iloc[0]}
\vfill
\Var{eval_df.describe()[["Mark"]].T.to_latex()}
\vfill
\Var{eval_df| marks_hist | includegraphics(document_path=directory, scale=0.5)}
%- endblock
%-block students
%- for e in students
\maketitle
\begin{minipage}{0.5\linewidth}
\large
\Var{e["Nom"]}
\end{minipage}
\begin{minipage}{0.3\linewidth}
\begin{flushright}
\Large \Var{e["Total"]["Mark"]} / \Var{e["Total"]["Bareme"]}
\end{flushright}
\end{minipage}
\vfill
\begin{minipage}{0.6\linewidth}
\fbox{%
\begin{minipage}{0.9\linewidth}
\hfill
\vspace{2cm}
\end{minipage}
}
\end{minipage}
\begin{minipage}{0.4\linewidth}
\Var{e["quest"] | radar_on("Competence") | includegraphics(document_path=directory, scale=0.4)}
\end{minipage}
\vfill
\scriptsize
\begin{multicols}{3}
%- for exo in e["Exercices"]
\begin{tabular}{|p{2cm}|c|}
%- if exo["Nom"] in ["Bonus", "Malus", "Presentation"]
%- for _,q in exo["Questions"].iterrows()
%- if q["Mark"]
\hline
\rowcolor{highlightbg}
\Var{exo["Nom"]} (\Var{q["Question"]}) & \Var{q["Latex_rep"]} \\
%- endif
%- endfor
%- else
\hline
\rowcolor{highlightbg}
Exerice \Var{exo["Nom"]} & \Var{exo["Total"]["Mark"]} / \Var{exo["Total"]["Bareme"]} \\
%- for _,q in exo["Questions"].iterrows()
\hline
\Var{q["Question"]} \newline \Var{q["Commentaire"]} & \Var{q["Latex_rep"]} \\
%- endfor
%- endif
\hline
\end{tabular}
%- endfor
\end{multicols}
\vfill
\begin{center}
Pas de réponse \NoRep \hfill
Tout faux \RepZ \hfill
Beaucoup d'erreurs \RepU \hfill
Quelques erreurs \RepD \hfill
Juste \RepT \hfill
\end{center}
\normalsize
\pagebreak
%- endfor
%- endblock

View File

@@ -0,0 +1,34 @@
%- extends "tpl_reports.tex"
% FILENAME: "tpl_reports_term.tex
%- block classPOV
%- endblock
%-block students
%- for e in students
\maketitle
{\Large \Var{e["Nom"]}}
\vfill
\Var{e["eval"].groupby("Nom").sum()[["Mark","Bareme"]].T.to_latex()}
\vfill
\Var{e["quest"] | radar_on("Competence") | includegraphics(document_path=directory, scale=0.6)}
\Var{e["quest"] | radar_on("Domaine") | includegraphics(document_path=directory, scale=0.6)}
\vfill
%#\Var{conn_df}
%- if not conn_df.empty
\Var{conn_df | parallele_on("Exercice", e["Nom"]) | includegraphics(document_path=directory, scale=0.5)}
%- endif
\vfill
\vfill
\normalsize
\pagebreak
%- endfor
%- endblock