Create a random quiz in latex and ASCII format
Open a terminal and type:
git clone https://github.com/dodogabrie/ExamsQuiz.git
You need to create the folder of the chapters of your course in the folder "domande". The chapter's name have to be preceded by the number of the chapter himself like "1_chapname".
Run "pycrea.py" to write your first question in the following way:
python3 pycrea.py n
Where n need to be replaced with the number of the chapter in which you wanna put your question (this will search for the folder that you create in the previous step).
After that just follow the instruction on screen and at the end you'll see a dummy file in the chapter folder with your question.
You can choose if create an ascii quiz without leaving your terminal or if you want to write the sequence in the latex file.
Run the file "py_quiz.py" in the following way:
python3 py_quiz.py -c chapters -n numquestion
- chapters: the numbers of the chapter folders or the names of the folders themeselves (you can pass more folders here)
- numquestion: the number of question that you wanna generate.
Run the file "tex_quiz.py" in the same way as the previous one:
python3 tex_quiz.py -c chapters -n numquestion
This will write in the "esame"'s folder the file "domande.tex" which contains the question that you chose.
After that just compile the master.tex file with your LaTex compiler and visualize your quiz in pdf.
After that you'll have folder like this one:
.