In the README, the troubleshooting section describes common errors when running the package. Pdf compilation can fail when some solution has some syntax error, since they can happen as they are generated by a llm. Currently, when this happens, it's not clear which solution has wrong syntax.
Objective
In the generate_pdf.py, check the syntax for each question and throw an error if one or more questions have wrong syntax, so that the user can fix them.
This check could be some pylatex method for syntax check (I'm not sure there is one) or trying to compile each question individually.
Context
In the README, the troubleshooting section describes common errors when running the package. Pdf compilation can fail when some solution has some syntax error, since they can happen as they are generated by a llm. Currently, when this happens, it's not clear which solution has wrong syntax.
Objective
In the
generate_pdf.py
, check the syntax for each question and throw an error if one or more questions have wrong syntax, so that the user can fix them.This check could be some pylatex method for syntax check (I'm not sure there is one) or trying to compile each question individually.