Debian Codegraph @

texmf-dist/doc/latex/moodle/test/test_math.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
13 \moodleregisternewcommands
14 \newcommand{\derivative}[3]{\frac{\partial^{#3} #1}{\partial^{#3} #2}(#2)}
15
16 \begin{document}
17
18 \section*{Introduction}
19
20 This document is intended to check the support of \LaTeX\ math notations.
21
22 \begin{quiz}{Math Notations}
23
24 \begin{multi}{Derivative}
25 \[\derivative{f}{x}{3}.\]
26 \item $f'(x)$
27 \item $f''(x)$
28 \item* $f'''(x)$
29 \end{multi}
30
31 \begin{cloze}{Other derivatives}
32 \begin{multi}[vertical]
33 \[\derivative{g}{t}{2}.\]
34 \item $g'(t)$
35 \item* $g''(t)$
36 \item $g'''(t)$
37 \end{multi}
38 \end{cloze}
39
40 \end{quiz}
41
42 \end{document}
43
44