Basic usage and configuration file
The process is simply to run the python script (see Download) in a directory where the config.yaml file described below is located. A question file must also be findable (see yamlfile: keyword below).
Configuration file
All the necessary configuration information is provided in the config.yaml input file. The file reads as:
yamlfile: quiz20.yaml
spellcheck: no
createLMS: yes
createLMS_text: no
base: "http://homepages.rpi.edu/~meuniv/Images/TSM_F20/"
dir: "THERMO"
title1: 'PHYS {4420}: Thermodynamics and Statistical Mechanics (Quiz 20)'
title2: "Dr. Vincent Meunier, Fall 2020"
solutionKey: no
The various keywords (ending with a :) are mostly self-explanatory.
yamlfileprovides the actual file with the list of questions (see here: YAML Format (input))spellcheckis a yes/no input (more information can be found here: Spellchecking)createLMSandcreateLMS_textare yes/no answers (see here: LMS Output)baseis only used if thecreateLMS: yesis used. It is also described in LMS Output.diris only used if thecreateLMS: yesis used. It is also described in LMS Output.title1andtitle2are used to assemble the PDF files (both the raw exam and the version with answer keys when requested)solutionKeyis a yes/no input. This provides the answer Key in a PDF file with highlighted answers (see here Portable Data File creation)
Note
This configuration file was used to create the examples shown in Example of multiple questions.