qti2latex - Convert QTI XML to LaTeX exam file
qti2latex converts a QTI XML file (version 1.2) to a LaTeX exam file. it is designed to work with text2qti (https://github.com/gpoore/text2qti), which does not support all possible question types. it should work with export QTI files from canvas for supported question types. it uses the exam document class (https://ctan.org/pkg/exam).
both qti2latex and exporting exams from canvas will produce a QTI zip file that can be used with qti2latex.
if there are question groups (a set of questions that can be chosen from), qti2latex will pick them at random. the --choose-item option can be used the select a specific question instead of choosing at random.
Supported Question Types
- Multiple Choice (single answer)
- Multiple Choice (multiple answers)
- True/False
- Short Answer
- Numerical
- Essay
Bonus questions
QTI doesn't support bonus questions, a question that starts with (bonus X points) or bonus (X points) will be treated as a bonus question worth X points.
Flow to get a LaTeX exam file from a markdown text file
starting with a markdown text file called exam.md:
text2qti exam.md
qti2latex exam.zip
pdflatex exam.tex
pdflatex exam.tex
pdflatex exam.tex
Metadata
Release files for qti2latex 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qti2latex-0.1.6.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qti2latex-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / qti2latex-0.1.6.tar.gz
| Download URL | qti2latex-0.1.6.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30616a1f3f59171a9bbc46165b79cefbe058ecd625cc484b0fd9cbcea2a7720a
|
|
BLAKE2b-256 checksum How to use checksums |
eac84c777082e6195cf6122904c18bc28184a5076a208cd727b5238841d2479f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / qti2latex-0.1.6-py3-none-any.whl
| Download URL | qti2latex-0.1.6-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c317d3c241ea0fd7f969c323ad827dd1674acbeeecb55add1c79aba42f5b464f
|
|
BLAKE2b-256 checksum How to use checksums |
b4662381c17995a4ec009aea5bc99ec46fb50ca7fbbe8d6628ab862de879f763
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|