Skip to main content

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).

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 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

qti2latex-0.1.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qti2latex-0.1.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file qti2latex-0.1.2.tar.gz.

File metadata

  • Download URL: qti2latex-0.1.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for qti2latex-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fb07d1cee63497715cc13e17916f0187fdfd4866e273bb47023eea6dbc39c091
MD5 2b1d26e8dc5e07cb3c980d107a91ce7a
BLAKE2b-256 c528d163518258944798415c6deff70bd3ccec1d921be59f0d171c46867ee752

See more details on using hashes here.

File details

Details for the file qti2latex-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: qti2latex-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for qti2latex-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9503c95ac7277b1c6b8bd74d27411550a2b2d9bcfcaa77fc840b8a43fbcd1cda
MD5 8052fc2186e515d8cea74180bc72a545
BLAKE2b-256 18d32b3f8296aeb7ba618163fbae0318fe2f57dec240af2996be9026fc079637

See more details on using hashes here.

Supported by

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