Debian Codegraph @

texmf-dist/doc/latex/moodle/test/test_fractions.tex

raw
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 how fractions are handled.
17
18 \begin{quiz}{Example Quiz}
19
20 \begin{multi}[multiple,feedback={abc\\def
21 $\sqrt{2}$}]{Multiple Choice}
22 Select the following numbers that are prime.
23 \item[fraction=83.3] $\sqrt{25}$
24 \item[fraction=-66.6] \textbf{68}
25 \item[fraction=16.7,feedback={$\sqrt{25}$}] 7
26 \item[fraction=33.3] 8
27 \item[fraction=-0.05] \texttt{nothing}
28 \end{multi}
29
30 \end{quiz}
31 \end{document}