Import work from year 2014-2015
This commit is contained in:
2057
1er_STMG/DS/DS_0410/Bilan/Bilan DS_0410.ipynb
Normal file
2057
1er_STMG/DS/DS_0410/Bilan/Bilan DS_0410.ipynb
Normal file
File diff suppressed because it is too large
Load Diff
BIN
1er_STMG/DS/DS_0410/Bilan/bilan.pdf
Normal file
BIN
1er_STMG/DS/DS_0410/Bilan/bilan.pdf
Normal file
Binary file not shown.
2516
1er_STMG/DS/DS_0410/Bilan/bilan.tex
Normal file
2516
1er_STMG/DS/DS_0410/Bilan/bilan.tex
Normal file
File diff suppressed because it is too large
Load Diff
30
1er_STMG/DS/DS_0410/Bilan/texenv.py
Normal file
30
1er_STMG/DS/DS_0410/Bilan/texenv.py
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
import jinja2, os
|
||||
|
||||
# Definition of jinja syntax for latex
|
||||
texenv = jinja2.Environment(
|
||||
block_start_string = '\Block{',
|
||||
# Gros WTF!! Si on le met en maj ça ne marche pas alors que c'est en maj dans le template...
|
||||
block_end_string = '}',
|
||||
variable_start_string = '\Var{',
|
||||
variable_end_string = '}',
|
||||
loader = jinja2.FileSystemLoader(os.path.abspath('.')),
|
||||
extensions = ['jinja2.ext.do']
|
||||
)
|
||||
|
||||
# Filters
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
from pymath.expression import Expression
|
||||
exp = Expression("2/4 + 18")
|
||||
print(do_calculus(exp.simplify()))
|
||||
|
||||
|
||||
|
||||
# -----------------------------
|
||||
# Reglages pour 'vim'
|
||||
# vim:set autoindent expandtab tabstop=4 shiftwidth=4:
|
||||
# cursor: 16 del
|
79
1er_STMG/DS/DS_0410/Bilan/tpl_bilan.tex
Normal file
79
1er_STMG/DS/DS_0410/Bilan/tpl_bilan.tex
Normal file
@@ -0,0 +1,79 @@
|
||||
\documentclass{/media/documents/Cours/Prof/Enseignements/Archive/2014-2015/tools/style/classBilan}
|
||||
\usepackage{/media/documents/Cours/Prof/Enseignements/Archive/2014-2015/2014_2015}
|
||||
|
||||
\usepackage{multicol}
|
||||
|
||||
% Title Page
|
||||
\titre{DS 6}
|
||||
% \seconde \premiereS \PSTMG \TSTMG
|
||||
\classe{\PSTMG}
|
||||
\date{10 avril 2015}
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
||||
\Block{for (name, notes) in eleves.iterrows()}
|
||||
\maketitle
|
||||
|
||||
\begin{minipage}{0.5\linewidth}
|
||||
\large
|
||||
\Var{name}
|
||||
\end{minipage}
|
||||
\begin{minipage}{0.3\linewidth}
|
||||
\begin{flushright}
|
||||
\Large \Var{notes[ds_name]} / \Var{barem.DS_0410[0]}
|
||||
\end{flushright}
|
||||
\end{minipage}
|
||||
|
||||
\vfill
|
||||
|
||||
\fbox{%
|
||||
\begin{minipage}{0.9\linewidth}
|
||||
\hfill
|
||||
\vspace{3cm}
|
||||
\end{minipage}
|
||||
}
|
||||
|
||||
\vfill
|
||||
|
||||
\scriptsize
|
||||
\begin{multicols}{2}
|
||||
\begin{tabular}{|p{3cm}|c|c|}
|
||||
\hline
|
||||
\rowcolor{highlightbg} Exercices & Réussite & Barème \\
|
||||
\hline
|
||||
\Block{for question in barem.T[1:7].T}
|
||||
\Var{question} & \Var{notes[question]} & \Var{barem[question][0]} \\
|
||||
\hline
|
||||
\Block{endfor}
|
||||
\end{tabular}
|
||||
|
||||
\begin{tabular}{|p{3cm}|c|c|}
|
||||
\hline
|
||||
\rowcolor{highlightbg} Exercices & Réussite & Barème \\
|
||||
\hline
|
||||
\Block{for question in barem.T[7:].T}
|
||||
\Var{question} & \Var{notes[question]} & \Var{barem[question][0]} \\
|
||||
\hline
|
||||
\Block{endfor}
|
||||
\end{tabular}
|
||||
\end{multicols}
|
||||
|
||||
%\begin{tabular}{|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|}
|
||||
% \hline
|
||||
% Pas de réponse & Faux & Peu juste & Partiellement juste & Juste \\
|
||||
% \hline
|
||||
% \NoRep & \RepZ & \RepU & \RepD & \RepT \\
|
||||
% \hline
|
||||
%\end{tabular}
|
||||
\normalsize
|
||||
\pagebreak
|
||||
\Block{endfor}
|
||||
|
||||
\end{document}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: "master"
|
||||
%%% End:
|
||||
|
Reference in New Issue
Block a user