summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/webquiz/examples/answer-star.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/webquiz/examples/answer-star.tex')
-rw-r--r--Master/texmf-dist/doc/latex/webquiz/examples/answer-star.tex16
1 files changed, 16 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/webquiz/examples/answer-star.tex b/Master/texmf-dist/doc/latex/webquiz/examples/answer-star.tex
new file mode 100644
index 00000000000..bb708cd203b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/webquiz/examples/answer-star.tex
@@ -0,0 +1,16 @@
+\documentclass[onepage]{webquiz}
+\title{An answer$*$ (and comparison=string)}
+\begin{document}
+ \begin{question} % a quiz question
+ What is the capital of Australia?
+ \answer*{Canberra} (Correct answer ``Canberra'')
+ \whenRight Yes, Sydney is the capital of NSW.
+ \whenWrong Remember to correctly capitalise your answer!
+ \end{question}
+ \begin{question} % a quiz question
+ What is the capital of Australia?
+ \answer{Canberra} (Correct answer ``Canberra'')
+ \whenRight Yes, Sydney is the capital of NSW.
+ \whenWrong Remember to correctly capitalise your answer!
+ \end{question}
+\end{document}