Generates anti-cheating QCM PDFs in LaTeX from a document of questions and correct answers.
This project automatically generates multiple-choice questionnaires (QCM) in LaTeX. The script takes a text file containing questions and possible answers and generates several versions of the QCM to minimize cheating risks.
- Generates multiple versions of QCM from a question file.
- Shuffles questions and answers for each version.
- Automatically creates PDF files using
pdflatex
. - Supports basic latex syntax for questions
You might need to change this line
from qcm_generator.main_cli import generate_subjects
to
from main_cli import generate_subjects
Clone the repository and install the required dependencies:
git clone https://github.com/toby-bro/latex_QCM_generator.git
cd latex_QCM_generator
make install
Provided the required packages are installed then a double click on the main_gui.py
should do the trick
-
Create a
questions.txt
file in the project root containing the following information:QCM Title Author School Course Date Q1. First question? Answer A Answer B Answer C Q2. Second question? Answer A Answer B Answer C
-
Run the Python script from CLI:
python qcm_generator/main_cli.py
-
The generated PDF files will be located in the
subjects
directory.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.