Setwise

Python License Tests

Professional LaTeX quiz generator with advanced templating

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:

Professional single-column layout perfect for formal exams

Default Template

Download Sample

Space-efficient two-column layout for printing

Compact Template

Download Sample

Clean black & white design for simple assessments

Minimal Template

Download Sample

Getting Started

📥 Installation

pip install git+https://github.com/nipunbatra/setwise.git

Full Guide

🚀 Quick Start

Generate your first quiz in 5 minutes

Get Started

Use Setwise

🖥️ Web Interface

Try online with live preview

Launch Demo

⌨️ Command Line

Full automation and scripting

CLI Guide

🔧 VSCode Extension

Professional editing experience

Install Extension

🐍 Python API

Programmatic integration

View Examples


Ready to create professional quizzes?

Get Started View Examples