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...)
Release files for ptyx-mcq 31.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ptyx_mcq-31.2.0.tar.gz | 129.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ptyx_mcq-31.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 289.8 kB
Release files / ptyx_mcq-31.2.0.tar.gz
| Download URL | ptyx_mcq-31.2.0.tar.gz |
|---|---|
| Size | 129.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0877102284c1f53e08f36475d3f8518ec38bd10c6815a9e99e7afc6d6394c559
|
|
BLAKE2b-256 checksum How to use checksums |
93a89952ec4c8080542bbcc62c46f5763cfd947b24c704fcc98450ae9b1a4eec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / ptyx_mcq-31.2.0-py3-none-any.whl
| Download URL | ptyx_mcq-31.2.0-py3-none-any.whl |
|---|---|
| Size | 160.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3349abc4b4af045ceae30fc4e49bce0c89af624db5bc3ff8d53d9174348391c
|
|
BLAKE2b-256 checksum How to use checksums |
32300d64797c493ce861cbc02413313201478e83c5e51aa18b68d0d4874af31a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|