⇤ ← Revision 1 as of 2017-10-08 19:43:03
1628
Comment:
|
1299
|
Deletions are marked like this. | Additions are marked like this. |
Line 9: | Line 9: |
% 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} |
\documentclass[12pt]{article} \usepackage{moodle} \usepackage{graphicx} \newcommand{\sa}[1]{\begin{shortanswer}#1\end{shortanswer}} \begin{document} \end{document} |
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}" % \documentclass[12pt]{article} \usepackage{moodle} \usepackage{graphicx} \newcommand{\sa}[1]{\begin{shortanswer}#1\end{shortanswer}} \begin{document} \end{document}
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...