summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/webquiz/examples/answer-number.tex
blob: 1584b448a7e99bf84af6b2413cc1e1c68aa22bc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
\documentclass[onepage]{webquiz}
\title{An answer with comparison=number}
\begin{document}
  \begin{question}     % a quiz question
      What is $\frac12+\frac14$?
     \answer[number]{3/4} (Correct answer $3/4$)
     \whenRight Correct!
     \whenWrong Incorrect! Is your ruler working?
  \end{question}
  \begin{question}     % a quiz question
      What is $\frac12+\frac14$?
     \answer[number]{3/4} (Correct answer $3/4$)
     \whenRight Correct!
     \whenWrong Incorrect! Is your ruler working?
  \end{question}
\end{document}