% !TeX encoding = UTF-8
% !TeX spellcheck = en_US
% !TEX TS-program = lualatex
\documentclass{article}
\usepackage[nostamp]{moodle}
\ifPDFTeX % FOR LATEX and PDFLATEX
	\usepackage[utf8]{inputenc} % necessary
	\usepackage[T1]{fontenc} % necessary
\else % assuming XELATEX or LUALATEX
	\usepackage{fontspec}
\fi

\moodleregisternewcommands
\newcommand{\derivative}[3]{\frac{\partial^{#3} #1}{\partial^{#3} #2}(#2)}

\begin{document}

\section*{Introduction}

This document is intended to check the support of \LaTeX\ math notations.

\begin{quiz}{Math Notations}

\begin{multi}{Derivative}
\[\derivative{f}{x}{3}.\]
\item $f'(x)$
\item $f''(x)$
\item* $f'''(x)$
\end{multi}

\begin{cloze}{Other derivatives}
\begin{multi}[vertical]
\[\derivative{g}{t}{2}.\]
\item $g'(t)$
\item* $g''(t)$
\item $g'''(t)$
\end{multi}
\end{cloze}

\end{quiz}

\end{document}


