| 1 |
% !TeX encoding = UTF-8 |
| 2 |
% !TeX spellcheck = en_US |
| 3 |
% !TEX TS-program = lualatex |
| 4 |
\documentclass{article} |
| 5 |
\usepackage[nostamp]{moodle} |
| 6 |
\ifPDFTeX % FOR LATEX and PDFLATEX |
| 7 |
\usepackage[utf8]{inputenc} % necessary |
| 8 |
\usepackage[T1]{fontenc} % necessary |
| 9 |
\else % assuming XELATEX or LUALATEX |
| 10 |
\usepackage{fontspec} |
| 11 |
\fi |
| 12 |
\begin{document} |
| 13 |
|
| 14 |
\section*{Introduction} |
| 15 |
|
| 16 |
This document is intended to check the support of the \texttt{allornothing} |
| 17 |
option for multiple choice questions. |
| 18 |
|
| 19 |
\begin{quiz}[]{All Or Nothing} |
| 20 |
%\begin{quiz}[allornothing]{All Or Nothing} |
| 21 |
|
| 22 |
\begin{multi}[allornothing]{All Or Nothing}% |
| 23 |
text |
| 24 |
\item* a |
| 25 |
\item[fraction=20] b |
| 26 |
\item[fraction=-30] c |
| 27 |
\item d |
| 28 |
\end{multi} |
| 29 |
|
| 30 |
\begin{multi}[allornothing,multiple]{All Or Nothing Wins Conflict 1}% |
| 31 |
text |
| 32 |
\item* a |
| 33 |
\item* b |
| 34 |
\item c |
| 35 |
\item d |
| 36 |
\end{multi} |
| 37 |
|
| 38 |
\begin{multi}[multiple,allornothing]{All Or Nothing Wins Conflict 2}% |
| 39 |
text |
| 40 |
\item* a |
| 41 |
\item* b |
| 42 |
\item c |
| 43 |
\item d |
| 44 |
\end{multi} |
| 45 |
|
| 46 |
\begin{multi}[allornothing,single=false]{All Or Nothing Wins Conflict 3}% |
| 47 |
text |
| 48 |
\item* a |
| 49 |
\item* b |
| 50 |
\item c |
| 51 |
\item d |
| 52 |
\end{multi} |
| 53 |
|
| 54 |
\begin{multi}[single=false,allornothing]{All Or Nothing Wins Conflict 4}% |
| 55 |
text |
| 56 |
\item* a |
| 57 |
\item* b |
| 58 |
\item c |
| 59 |
\item d |
| 60 |
\end{multi} |
| 61 |
|
| 62 |
\begin{cloze}{Title} |
| 63 |
\begin{multi}[allornothing=false] % <- true results in an error issued |
| 64 |
text |
| 65 |
\item* a |
| 66 |
\item[fraction=20] b |
| 67 |
\item[fraction=-30] c |
| 68 |
\item d |
| 69 |
\end{multi} |
| 70 |
\end{cloze} |
| 71 |
|
| 72 |
\end{quiz} |
| 73 |
|
| 74 |
\end{document} |