Skip to main content

pTyX-MCQ is a generator/scanner of MCQ, based on pTyX.

Project description

pTyX MCQ Extension

MCQ generation (PDF files) and automatic marking of scanned students answers.

Overview

pTyX is a LaTeX precompiler, written in Python. pTyX enables to generate LaTeX documents, using custom commands or plain python code. One single pTyX file may generate many latex documents, with different values. I developed and used pTyX to make several versions of a same test in exams, for my student, to discourage cheating. Since it uses sympy library, pTyX has symbolic calculus abilities too.

The pTyX MCQ extension makes it easy to use pTyX to generate Multiple Choice Questions in the form of pdf documents. The students MCQ can then be scanned and automatically corrected and marked.

Installation

Obviously, pTyX needs a working Python installation. Python version 3.8 (at least) is required for pTyX MCQ to run.

Currently, pTyX is only supported on GNU/Linux.

The easiest way to install it is to use pip.

$ pip install --user ptyx_mcq

Usage

To generate a template, run:

$ mcq new new_folder

This will generate a new_folder folder with a new.ptyx file inside, which is the main configuration file.

This will also create a new_folder/questions/ folder, where you should put all the exercises, as .txt files.

A few text files are already included as examples.

See the next section (MCQ file format) for more information about those files format.

To compile the template, run:

$ mcq make

For more options:

$ mcq make --help

To automatically corrected the scanned students MCQs, but them as a pdf inside new_folder/scan.

Then run:

$ mcq scan

MCQ file format

When running mcq new, a template folder will be generated, including a new.ptyx file.

(More to come...)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ptyx_mcq-28.0.0.tar.gz (119.2 kB view details)

Uploaded Source

Built Distribution

ptyx_mcq-28.0.0-py3-none-any.whl (139.6 kB view details)

Uploaded Python 3

File details

Details for the file ptyx_mcq-28.0.0.tar.gz.

File metadata

  • Download URL: ptyx_mcq-28.0.0.tar.gz
  • Upload date:
  • Size: 119.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.2 Linux/6.1.0-23-amd64

File hashes

Hashes for ptyx_mcq-28.0.0.tar.gz
Algorithm Hash digest
SHA256 eda186d75b2fb7729a66bce096178608b11671ba27c3fc8354236bf8cc9590c0
MD5 da9701b4aaf01f753176fe46bafe9ce7
BLAKE2b-256 cc9324a39fd8cfba68fc36702bf69aaa5ca59c7933da1c1dfe540046cfac5f7b

See more details on using hashes here.

File details

Details for the file ptyx_mcq-28.0.0-py3-none-any.whl.

File metadata

  • Download URL: ptyx_mcq-28.0.0-py3-none-any.whl
  • Upload date:
  • Size: 139.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.2 Linux/6.1.0-23-amd64

File hashes

Hashes for ptyx_mcq-28.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24c295b66f94fa93f8b11f34ca229c4d29462115af34a8842b86579bf088a7f1
MD5 50490d12ff12033186fbc3c801460af9
BLAKE2b-256 67428a5eb67f0aa4ee2e866bf2cec0e043e02d1806eb4a88235bb0d0714cf404

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page