qformat qtex
qformat qtex | |
---|---|
Type | Question format |
Set | N/A |
Downloads | https://moodle.org/plugins/view.php?plugin=qformat_qtex |
Issues | https://github.com/ltalirz/moodle-qformat_qtex/issues |
Discussion | https://moodle.org/mod/forum/discuss.php?d=259450 |
Maintainer(s) | Leopold Talirz |
QuestionTeX
QuestionTeX is LaTeX package for writing multiple-choice tests. The QuestionTeX package and its documentation can be found on https://github.com/ltalirz/QuestionTeX.
QuestionTeX for Moodle
The QuestionTeX format plugin makes it possible to import of questions written in QuestionTeX directly into Moodle and to export questions from Moodle to QuestionTeX.
Prerequisites
- The Moodle web server needs write permissions to the $moodle_root/question/format directory.
- A configured and enabled TeX Notation filter is required to render the formulae (see https://docs.moodle.org/27/en/TeX_notation_filter for instructions). Consider in particular the MathJax filter https://github.com/oohoo/moodle-filter_mathjax
- Handling of images requires PHP's zip extension to be enabled
Installation
Following the standard procedure for installing add-ons,
- download the zip archive from https://moodle.org/plugins/view.php?plugin=qformat_qtex.
- go to the administration panel in Site Administration -> Plugins -> Install add-ons
- select the plugin type 'Question import/export format' and upload the zip archive
- the QuestionTeX format should now appear in question export/import dialogues.
If you prefer a manual installation (or if your Moodle version is < 2.5), copy the folder "qtex" to $moodle_root/question/format. Then, in the admin panel purge the Plugin list on Site Administration -> Plugins -> Caching -> Configuration
Hints
- In order to improve vertical alignment of images, add the following css to your theme: .texrender {border:0px;vertical-align:middle;}
- If you are looking for some QuestionTeX examples to test the import, check out the qtex/examples folder in the archive.
Contact
This software was written in the projects LEMUREN and nemesis at the department of mathematics of ETH Zurich. For further information please contact echo@ethz.ch