Hints for using Moodle LaTeX

The following is the template I use:

% See http://tug.ctan.org/macros/latex/contrib/moodle/moodle.pdf
% use \sa as a new command then do a search and replace in Notepad++ with regular expression: search= "\\sa\{([^\}]*)\}" and replace = "\begin{shortanswer} \item \1 \end{shortanswer}"
%
% Here are several Macros that I use in 
%/c l o z e
%\begin{cloze}{3.7.0x}
%
%\end{cloze}
%
%/m u l t i
%\begin{multi}[multiple]{3.7.0x}
%       Question
%       \item* True
%       \item False
%\end{multi}
%
%/n u m e r i c a l
%\begin{numerical}[options]{3.7.0x}
%       \item[] answer
%\end{numerical}
%
%/m a t c h
%/\begin{matching}[shuffle=true]{3.7.0x}
%       Question.
%       \item question \answer answer
%       \item question \answer answer
%       \item question \answer answer
%       \item \answer answer
%\end{matching}

Here are the Macros that I use:

\begin{cloze}[feedback={}]{x.y}
        
\end{cloze}

\begin{multi}[multiple,feedback={}]{x.y}
        question
        \item* True
        \item False
\end{multi}

\begin{numerical}[feedback={}]{x.y}
        \item[] answer
\end{numerical

\begin{matching}[shuffle=true,feedback={}]{x.y feedback={}}
        \item question \answer answer
        \item question \answer answer
        \item \answer answer
\end{matching}

Process to include images or .svg files in a quiz

First create the file and convert it to a .png

Make sure it does not have a "." in in it.

Use

b64.exe -e X.png X.enc

Re-run the LaTeX command and see if you get this in the output:

<IMG width=517 height=212 SRC="data:image/png;base64,iVBORw0KGgoAA...