add line_statement_prefix to texenv

This commit is contained in:
Benjamin Bertrand
2016-11-18 18:07:38 +03:00
parent 0f56ca6477
commit a2c8e67ccd
2 changed files with 20 additions and 16 deletions

View File

@@ -12,7 +12,7 @@
\begin{document}
\Block{for e in students}
%- for e in students
\maketitle
\begin{minipage}{0.5\linewidth}
@@ -39,32 +39,32 @@
\scriptsize
\begin{multicols}{3}
\Block{for exo in e["Exercices"]}
%- for exo in e["Exercices"]
\begin{tabular}{|p{2cm}|c|}
\Block{if exo["Nom"] in ["Bonus", "Malus", "Presentation"]}
\Block{for _,q in exo["Questions"].iterrows()}
\Block{if q["Mark"]}
\hline
\rowcolor{highlightbg}
\Var{exo["Nom"]} (\Var{q["Question"]}) & \Var{q["Latex_rep"]} \\
\Block{endif}
\Block{endfor}
\Block{else}
%- 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"]} \\
\Block{for _,q in exo["Questions"].iterrows()}
%- for _,q in exo["Questions"].iterrows()
\hline
\Var{q["Question"]} \newline \Var{q["Commentaire"]} & \Var{q["Latex_rep"]} \\
\Block{endfor}
\Block{endif}
%- endfor
%- endif
\hline
\end{tabular}
\Block{endfor}
%- endfor
\end{multicols}
\vfill
@@ -77,7 +77,7 @@
\end{center}
\normalsize
\pagebreak
\Block{endfor}
%- endfor
\end{document}