Setwise
What is Setwise?
Setwise transforms question banks into beautiful, randomized LaTeX quiz sets. Create professional quizzes with dynamic questions, multiple templates, and automatic answer keys.
Key Features
đ˛ Smart Randomization
Questions and MCQ options automatically shuffled while maintaining fairness
đ Dynamic Templates
Create question variants using variables - works with both MCQ and subjective questions
đ¨ Professional Output
Beautiful LaTeX formatting with multiple themes and clean typography
Quick Example
Create questions.py
:
# Professional quiz metadata
= {
quiz_metadata "title": "Physics Quiz",
"duration": "60 minutes",
"total_marks": 25
}
# Templated MCQ question
= [{
mcq "template": r"A ball drops from {{ h }}m. Final velocity?",
"options": [
r"â(2gĂ{{ h }}) â {{ v:.1f }} m/s", # Correct
r"gĂ{{ h }} = {{ h*9.8 }} m/s",
r"{{ h }}/2 = {{ h/2 }} m/s"
],"answer": r"â(2gĂ{{ h }}) â {{ v:.1f }} m/s",
"variables": [
"h": 20, "v": 19.8},
{"h": 45, "v": 29.7}
{
],"marks": 3
}]
Generate quiz:
pip install git+https://github.com/nipunbatra/setwise.git
setwise generate --questions-file questions.py --sets 3
Result: 3 professional PDF quiz sets with randomized questions and complete answer keys!
Templates
Choose from three professional templates:
Getting Started
đĽ Installation
pip install git+https://github.com/nipunbatra/setwise.git
đ Quick Start
Generate your first quiz in 5 minutes
Use Setwise
đĽď¸ Web Interface
Try online with live preview
â¨ď¸ Command Line
Full automation and scripting
đ§ VSCode Extension
Professional editing experience
đ Python API
Programmatic integration
Ready to create professional quizzes?