gradelib.reports
- LaTeX grade reports
- gradelib.reports.generate_latex(gradebook: ~gradelib.core._gradebook.Gradebook, output_directory: ~pathlib.Path, show_percentile=<function _default_percentile_display>)
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.