I want to generate a quiz for my students to be imported within the moodle platform . The quiz includes some figure.
I tried the moodle package from texlive 2018 but I get the following error when using the tikzpicture environment :
ERROR:
Package tikz Error: Sorry, the system call 'pdflatex -shell-escape -halt-on-error -interaction=batchmode -jobname "geometry-tikztemp-1" "\def\tikzexternalrealjob{geometry}\input{geometry}"' did NOT result in a usable output file 'geometry-tikztemp-1' (expected one of .pdf:.jpg:.jpeg:.png:).
Please verify that you have enabled system calls. For pdflatex, this is 'pdflatex -shell-escape'. Sometimes it is also named 'write 18' or something like that.
Or maybe the command simply failed? Error messages can be found in 'geometry-tikztemp-1.log'.
If you continue now, I'll try to typeset the picture.
Here is an example:
\documentclass{article}
\usepackage{tikz}
\usepackage[draft]{moodle}
\begin{document}
\begin{quiz}{geometry}
\begin{multi}{circle}
is the shape in the figure a circle?
\begin{tikzpicture}
\draw (0,0)circle[radius=1cm];
\end{tikzpicture}
\item yes
\item* no
\end{multi}
\end{quiz}
\end{document}