tex2lambda.main.runner#

tex2lambda.main.runner(question_file: str, subject: str, output_dir: str | None = None, answer_file: str | None = None) Module[source]#

Takes in a TeX file for a given subject and outputs how it’s broken down within Lambda Feedback.

Parameters:
  • question_file – The absolute path to a TeX question file.

  • subject – The subject which the TeX file contains questions for.

  • output_dir – An optional argument for where to output the Lambda Feedback compatible json/zip files.

  • answer_file – The absolute path to a TeX answer file.

Returns:

A list of questions and how they would be broken down into different Lambda Feedback sections in a Python-readable format. If output_dir is specified, the corresponding json/zip files are produced.