<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[tikz]{webquiz}
\usepackage{tikz}
\title{A tikz example}
\begin{document}
  \begin{question}     % a quiz question
     What number is represented by the dot on the following number line?
     \begin{center}
       \begin{tikzpicture}
          \foreach \x in {-3,...,3} { \draw(\x,0.25) --(\x,0)node[below]{$\x$}; }
          \foreach \x in {-2.5,...,2.5} { \draw(\x,0.18) --(\x,0); }
          \draw[thick,&lt;-&gt;](-3.5,0)--(3.5,0);
          \filldraw[blue!50!white](1.5,0) circle (1mm);
       \end{tikzpicture}
     \end{center}
     \answer[number]{1.5} % inserts an answer box and specifies the answer as 1.5
     \whenRight Correct!
     \whenWrong Incorrect!
  \end{question}
\end{document}
</pre></body></html>