texmf-dist/doc/latex/webquiz/examples/answer-integer.tex
raw| 1 | \documentclass[hidesidemenu]{webquiz} |
| 2 | \title{An answer with comparison=integer} |
| 3 | \begin{document} |
| 4 | \begin{question} % a quiz question |
| 5 | How long is a piece of string? |
| 6 | \answer[integer]{18} mm (Correct answer $18$) |
| 7 | \whenRight Yes, $18$mm pieces of string are $18$mm long! |
| 8 | \whenWrong Incorrect! Is your ruler working? |
| 9 | \end{question} |
| 10 | \end{document} |