WEBQUIZ:(A)
π WEBQUIZ π
okay bestie, this is the WEBQUIZ manual page, and it's giving everything you need to make online quizzes with LaTeX π
β¨ NAME β¨
WebQuiz is a LaTeX package for writing online quizzes π¦
So basically, WebQuiz lets you write interactive online quizzes using LaTeX. You write the quiz in LaTeX first, then WebQuiz (which is written in python) turns it into HTML. The behind-the-scenes conversion from LaTeX to HTML is handled by TeX4ht. The whole vibe is that you can make super cute online quizzes with WebQuiz as long as you know basic LaTeX π
WebQuiz is made for the command line π
If quiz1.tex is a LaTeX file for a quiz, then:
latex quiz1
pdflatex quiz1
webquiz quiz1
latex quiz1makes a "readable" DVI file for the quiz πpdflatex quiz1makes a "readable" PDF file for the quiz πwebquiz quiz1creates the web pagequiz1.htmlπ
If you'd rather use a GUI for LaTeX, it should be possible to set it up to use WebQuiz directly. The manual has the details for doing this with TeXShop, so go check it out π«Ά
π§ USAGE π§
usage: webquiz [-h] [-q] [-d] [-s] [--latex | -l | -x] [-r RCFILE]
[-i | -e | --settings [SETTINGS]] [quiz_file [quiz_file ...]]
A LaTeX package for writing online quizzes π
Positional arguments
quiz_fileβ the latex quiz files you want to work on π
Optional arguments
-h,--helpβ shows this help message and exits π-q,--quietβ hushes the tex4ht messages (you can also go-qqetc, if you're extra π€«)-d,--draftβ uses make4ht draft mode βοΈ-s,--shell-escapeβ shell escape for tex4ht/make4ht π₯--latexβ uses latex to compile the document with make4ht. This one's the default, so you don't have to ask for it π-l,--luaβ uses lualatex to compile the quiz πΈ-x,--xelatexβ uses xelatex to compile the quiz πΈ-r RCFILE,--rcfile RCFILEβ tells webquiz where the webquiz rc-file lives π-i,--initialise,--initializeβ installs the web components of webquiz π-e,--edit-settingsβ lets you edit the default settings for webquiz βοΈ--settings <SETTINGS>β lists the default settings for webquiz π
π· INSTALLATION π·
To use WebQuiz you need a standard LaTeX distribution, like TeXLive, that includes TeX4ht. You also need Python3 installed π WebQuiz uses scalable vector graphics (SVG), so please check that all of the dependencies of dvisvgm are installed on your system. This is extra important if you plan on using graphics or images πΌοΈ
Once the TeX components of the WebQuiz package are installed, you can install the web components with the following command, run from the command line:
> webquiz --initialise
If you want to install the web components of WebQuiz into a system directory, you need to run this command from an administrator's account. On a unix-like system that means using sudo β οΈ
For more details about installing and configuring WebQuiz, check out Section 3.2 of the WebQuiz manual π The manual also has more about initialising and using WebQuiz, so please go read it π«Ά
π¦ INSTALLATION FROM THE CTAN ZIPFILE π¦
On both unix-like systems (macOS included) and windows systems (using either TeXLive or MiKTeX), you can install WebQuiz by downloading the WebQuiz zip file from:
http://mirrors.ctan.org/macros/latex/contrib/webquiz.zip
To install it, unzip the file, change directory to the webquiz/scripts subdirectory, and run:
> webquiz --tex-install
(or webquiz.bat --text-install on windows). This command unpacks the webquiz files into their standard spots in the TeX install tree ποΈ So it should be run from an administrator's account, or with sudo on a unix-like system. Roughly, here's what it does:
- It creates a symbolic link, or equivalent, to the main WebQuiz executable, which is the file
webquiz.pyin the scripts directory π - It copies the
latexdirectory somewhere in the TeX search path, then runsmktexlsrso that LaTeX and WebQuiz can find these files π - It copies the python code into the TeX scripts subdirectory π
- It copies the WebQuiz
docsubdirectory into the TeXdoc/latexsubdirectory π
If you're on MiKTeX, you may need to open the MiKTeX console, go to the Tasks menu, and rebuild the TeX filename database π οΈ
Once the files above are in place, initialise WebQuiz by following the installation instructions above πΈ
Mainly for development purposes, there's another undocumented command-line option for removing these files from TEXMFMAIN. Use it with care π
> sudo webquiz/scripts/webquiz --tex-uninstall
π» SYSTEM REQUIREMENTS π»
In order to work, WebQuiz needs these programs installed on your system:
- An up-to-date LaTeX distribution, like the one TeXLive provides. In particular, you need TeX4ht and make4ht installed. Honestly this part is a little chaotic π Since TeXLive 2018 came out, there have been a significant number of updates to a bunch of packages that WebQuiz uses, including updates to TeX4ht, make4ht, tikz and pstricks. So it's strongly recommended that you update all packages from
ctanbefore usingWebQuizβ οΈ python3. As of writing, python 3.7.2 is available π- Javascript π
- If you plan to use pstricks with WebQuiz, or if you want to compile the online manual for WebQuiz, you need ghostscript and dvisvgm installed and properly configured on your system. Check the WebQuiz manual and the dvisvgm documentation for more details π
- A web server π To view online quizzes you obviously need one. Like the Installation section said, you'll also need to copy the WebQuiz components onto your web server using this command:
> webquiz --initialise
π AUTHORS π
The LaTeX component of WebQuiz was written by Andrew Mathas π«Ά The python, css and javascript code was written by Andrew Mathas (and Don Taylor), based on an initial prototype of Don Taylor's from 2001. Since 2004 the program has been maintained and developed by Andrew Mathas. The program has changed a LOT since 2004, but Don's idea of using TeX4ht, and some of his code, is still very much in use π
Copyright (C) 2004-2019 Β©οΈ
π LICENSE π
GNU General Public License, Version 3, 29 June 2007
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version π
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details π
That's the whole WEBQUIZ page, bestie π It's from the LaTeX package, manual page WEBQUIZ:(A) π¦β¨
π¦ where this page comes from
- arch rolling: texlive-doc 2026.1-1 Β· GPL
- debian bookworm: texlive-latex-extra 2022.20230122-4
- debian trixie: texlive-latex-extra 2024.20250309-2
- fedora 43: texlive-webquiz 11:svn58808-93.fc43 Β· GPL-3.0-or-later
- fedora 43: texlive-webquiz 11:svn58808-95.fc43.1 Β· GPL-3.0-or-later
- fedora 44: texlive-webquiz 12:svn58808-105.fc44 Β· GPL-3.0-or-later
- fedora 44: texlive-webquiz 12:svn58808-111.fc44 Β· GPL-3.0-or-later
- opensuse-leap 16.0: texlive-webquiz-doc 2025.221.5.2svn58808-160000.3.1 Β· GPL-2.0-or-later
- ubuntu jammy: texlive-latex-extra 2021.20220204-1
- ubuntu noble: texlive-latex-extra 2023.20240207-1
- ubuntu questing: texlive-latex-extra 2024.20250309-2
- ubuntu resolute: texlive-latex-extra 2025.20260124-1
- ubuntu stonking: texlive-latex-extra 2026.20260711-2
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms