summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/moodle/test/test_categories.tex
blob: 23b2d7014f5079b53b634ccdf25af568d519ccf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
% !TeX encoding = UTF-8
% !TeX spellcheck = en_US
% !TEX TS-program = lualatex
\documentclass{article}
\usepackage[section,nostamp]{moodle}
\ifPDFTeX % FOR LATEX and PDFLATEX
	\usepackage[utf8]{inputenc} % necessary
	\usepackage[T1]{fontenc} % necessary
\else % assuming XELATEX or LUALATEX
	\usepackage{fontspec}
\fi
\begin{document}

\section*{Introduction}

This document is intended to check the support of category settings in the quiz 
environment.

%\setcategory{Category Outside Quiz}
%\setsubcategory{Subcategory Outside Quiz}

\begin{quiz}{Examples}
\setsubcategory{Generic}
\begin{multi}{Multi}
A
\item* B
\item C
\item D
\end{multi}

\begin{numerical}{Numerical}
One
\item 1
\end{numerical}

\setsubcategory{Very Specific}
\begin{multi}{Multi}
A
\item* B
\item C
\item D
\end{multi}

\begin{numerical}{Numerical}
One
\item 1
\end{numerical}

\setcategory{Other Category}

\begin{multi}{Multi}
A
\item* B
\item C
\item D
\end{multi}

\begin{numerical}{Numerical}
One
\item 1
\end{numerical}

\setsubcategory{Other Subcategory}
\begin{multi}{Multi}
A
\item* B
\item C
\item D
\end{multi}

\begin{numerical}{Numerical}
One
\item 1
\end{numerical}

\end{quiz}
\end{document}