gradelib.reports
#
- gradelib.reports.generate_latex(gradebook: ~gradelib.core._gradebook.Gradebook, output_directory: ~pathlib.Path, show_percentile=<function _default_percentile_display>, one_file=False)#
Generate a LaTeX grade report for each student.
Creates one file, main.tex, containing all of the reports.
- Parameters:
gradebook (Gradebook) – The gradebook that will be used.
output_directory (Union[pathlib.Path, str]) – The directory where the reports will be placed. Will be created if it does not already exist.
show_percentile (Optional[Callable[[float], Optional[str]]]) – A function that takes in a percentile and returns a string that will be displayed to the student. If the output of the function is None, no message is displayed. If this is None, no messages are displayed to any students.
one_file (bool) – If True, all student reports will be placed in a single file, main.tex. Otherwise, each student will have their own file (<pid>.tex). In either case, a _template.tex file will be created that can be used as a template for the gradebook application.