Convert QTI (Canvas) to LaTeX exam. Designed to work with text2qti, but should also work with quiz files exported from Canvas.
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qti2latex-0.1.5.tar.gz.
File metadata
- Download URL: qti2latex-0.1.5.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6f476843c5ade008a347d0360e6c751757ba393e42753aec6bed6c59b5eb4cb
|
|
| MD5 |
e6b8c6a4644e2194b65842fe95739a08
|
|
| BLAKE2b-256 |
9daf2df34b4d89fdc4f2058199e4619d05ab763be2418a59ca10687f7196d3d7
|
File details
Details for the file qti2latex-0.1.5-py3-none-any.whl.
File metadata
- Download URL: qti2latex-0.1.5-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
346f6ec4d6221c74527a034e45fe2481dd38f907a66d147bed9f81c15f229854
|
|
| MD5 |
cdf6bf30dc0621201980c2dbd1bea0d8
|
|
| BLAKE2b-256 |
239d45f0d8859724005eeb36f0a11b7b60697fcbc609db1a340cb67b091caeb2
|