HTML multiple-choice quiz generator

Once Maxima code is successfully embedded it is ready for HTML multiple-choice format. For this purpose LATEXstyle commands are prepared in qgmax.sty, and used in the following form:

\problemset
\problem
problem statements
\multiplechoice
\correct
correct choice
\incorrect
incorrect choice
..........
\incorrect
incorrect choice
\endmultiplechoice
\problem
problem statements
..........
..........
\endproblemset

Here is an example of LATEX source and HTML output. Notice that multiple-choice solutions for each problem are shuffled when converted into html.


  1. If a linear function $f$ satisfies $f\left(-2\right)=3$ and $f\left(5\right)=1$, find $f(x)$.

    $y=-{{2 x}\over{7}}-{{17}\over{7}}$ $y={{17}\over{2}}-{{3 x}\over{2}}$ $y={{17}\over{7}}-{{2 x}\over{7}}$ $y=-{{3 x}\over{2}}-{{17}\over{2}}$

  2. Solve the equation $3 x^2+7 x+4=0$.

    $\left[ x=-{{4}\over{3}},x=-1 \right] $ $\left[ x=-{{\sqrt{97}+7}\over{6}},x={{\sqrt{97}-7}\over{6}}
\right] $ $\left[ x=1,x={{4}\over{3}} \right] $ $\left[ x=-{{\sqrt{33}+7}\over{2}},x={{\sqrt{33}-7}\over{2}}
\right] $


The perl script qgpick.pl will shuffle both problems and choices randomly, and create javascript-enabled LATEX file (type qgpick.pl -h for usage). It is then processed by latex2html. The javascript qghtml.js has to be placed under the directory ``../'' relative to the base.

Here you can upload your file. I will process it for you.



Department of Mathematics
Last modified: 2005-03-17