Debian Codegraph @

texmf-dist/doc/latex/moodle/test/test_description.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 the support of the description
17 question type.
18
19 \begin{description}
20 \item Foo
21 \item Bar
22 \end{description}
23
24 \begin{quiz}{Example Quiz}
25 \begin{description}[tags={descr},feedback={here is a feedback}]{Requirements}
26 This is a description. Not really a question. We can include environments and
27 math.
28 \begin{itemize}
29 \item This
30 \item That
31 \end{itemize}
32 \[\mathrm{e}^{2\mathrm{i}\pi}+1=0.\]
33 \end{description}
34 \end{quiz}
35
36 \begin{description}
37 \item Foo
38 \item Bar
39 \end{description}
40
41 \end{document}