add line_statement_prefix to texenv
This commit is contained in:
parent
0f56ca6477
commit
a2c8e67ccd
@ -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"]}
|
||||
%- 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"]} \\
|
||||
\Block{endif}
|
||||
\Block{endfor}
|
||||
\Block{else}
|
||||
%- 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}
|
||||
|
||||
|
@ -12,6 +12,10 @@ texenv = jinja2.Environment(
|
||||
block_end_string = '}',
|
||||
variable_start_string = '\Var{',
|
||||
variable_end_string = '}',
|
||||
comment_start_string = '\#{',
|
||||
comment_end_string = '}',
|
||||
line_statement_prefix = '%-',
|
||||
line_comment_prefix = '%#',
|
||||
loader = jinja2.PackageLoader("notes_tools.generate_bilan", "templates"),
|
||||
extensions = ['jinja2.ext.do']
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user