1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236
|
# moodle package
# Matthew Bertucci 2022/06/11 for v0.9
#include:environ
#include:xkeyval
#include:amssymb
#include:iftex
#include:etoolbox
#include:xpatch
#include:array
#include:ifplatform
#include:shellesc
#include:fancybox
#include:getitems
#keyvals:\usepackage/moodle#c
draft
handout
final
nostamp
tikz
svg
section
section*
subsection
subsection*
#endkeyvals
#ifOption:handout
#include:randomlist
#endif
#ifOption:svg
#include:graphicx
#endif
#ifOption:tikz
#include:tikz
#include:varwidth
\embedaspict{LaTeX content%text}
#endif
\begin{quiz}{category name%text}
\begin{quiz}[options%keyvals]{category name%text}
\end{quiz}
\moodleset{options%keyvals}
\setcategory{category name%text}
\setsubcategory{subcategory name%text}
\item*
\item[options]
\item[options]*
\begin{truefalse}{question name%text}
\begin{truefalse}[options%keyvals]{question name%text}
\end{truefalse}
\begin{multi}{question name%text}
\begin{multi}[options%keyvals]{question name%text}
\end{multi}
\begin{numerical}{question name%text}
\begin{numerical}[options%keyvals]{question name%text}
\end{numerical}
\begin{shortanswer}{question name%text}
\begin{shortanswer}[options%keyvals]{question name%text}
\end{shortanswer}
\begin{essay}{question name%text}
\begin{essay}[options%keyvals]{question name%text}
\end{essay}
\begin{matching}{question name%text}
\begin{matching}[options%keyvals]{question name%text}
\end{matching}
\begin{cloze}{question name%text}
\begin{cloze}[options%keyvals]{question name%text}
\end{cloze}
\begin{description}{question name%text}
\begin{description}[options%keyvals]{question name%text}
\end{description}
\begin{}{question name%text}
\begin{}[options%keyvals]{question name%text}
\end{}
\begin{}{question name%text}
\begin{}[options%keyvals]{question name%text}
\end{}
#keyvals:\begin{quiz},\moodleset,\begin{truefalse},\begin{multi},\begin{numerical},\begin{shortanswer},\begin{essay},\begin{matching},\begin{cloze}
points=%<number%>
default grade=%<number%>
penalty=%<fraction%>
fraction=%<number%>
fractiontol=%<value%>
feedback={%<text%>}
tags={%<tag1,tag2,...%>}
shuffle#true,false
numbering=#alph,Alph,arabic,roman,Roman,none
single#true,false
multiple#true,false
allornothing#true,false
tolerance=%<value%>
case sensitive#true,false
usecase#true,false
response required
response format=#html,file,html+file,text,monospaced
response field lines=#5,10,15,20,25,30,25,40
attachments allowed=#0,1,2,3,unlimited
attachments required=#0,1,2,3
template={%<text%>}
drag and drop#true,false
dd#true,false
vertical
horizontal
inline
ppi=%<pixels per inch%>
#endkeyvals
\blank
\htmlonly{HTML content}
\htmlonly[LaTeX content%text]{HTML content}
\htmlregister{cmd}
\moodleregisternewcommands
#keyvals:\includegraphics
ppi=%<pixels per inch%>
#endkeyvals
\ghostscriptcommand{executable filename}
\imagemagickcommand{executable filename}
\optipngcommand{executable filename}
\PDFtoSVGcommand{executable filename}
\SVGtoPDFcommand{executable filename}
\optiSVGcommand{executable filename}
\verbatiminput{file}#i
\VerbatimInput{file}#i
\VerbatimInput[options%keyvals]{file}#i
\BVerbatimInput{file}#i
\BVerbatimInput[options%keyvals]{file}#i
\LVerbatimInput{file}#i
\LVerbatimInput[options%keyvals]{file}#i
\inputminted{language}{file}#i
\inputminted[options%keyvals]{languag
e}{file}#i
#keyvals:\VerbatimInput,\BVerbatimInput,\LVerbatimInput,\inputminted
gobble=%<integer%>
autogobble#true,false
tabsize=%<integer%>
numbers=#none,left,right,both
firstnumber=%<auto|last|<integer>%>
firstline=%<integer%>
lastline=%<integer%>
numberblanklines#true,false
highlightlines={%<line ranges%>}
style=%<style name%>
#endkeyvals
# not documented
\ConvertToBaseLXIV{arg1}{arg2}#S
\DeclareGraphicsAlien{arg1}{arg2}{arg3}#S
\DeclareMediaFormat{arg1}{arg2}{arg3}#S
\DeleteFilecommand#S
\ExportTikz#S
\OptimizeExport#S
\OutputFile#S
\SourceFile#S
\TikzExportExtension#S
\TikzExportMIME#S
\advancemathmodecounter{arg1}#S
\aftertext#S
\baselxivcommand#S
\calculateindent{arg1}#S
\closemoodleout#S
\cmdline#S
\converttohtmlmacro{arg1}{arg2}#S
\displaymathleftdelim#S
\displaymathrightdelim{arg1}#S
\ds#S
\endclozemode#S
\filenamewithsuffixtomacro{arg1}{arg2}{arg3}#S
\gscmdline#S
\includegraphics{arg1}{arg2}#S
\inlinemathleftdelim#S
\inlinemathrightdelim{arg1}#S
\jobnamewithsuffixtomacro{arg1}{arg2}#S
\mathtext#S
\newxml#S
\normalcatcodes#S
\oldhref#S
\oldincludegraphics#S
\oldurl#S
\openclozemode#S
\openmoodleout#S
\otherampersand#S
\othercaret#S
\otherdollar#S
\otherhash#S
\otherlbrace#S
\otherlbracket#S
\otherpercent#S
\otherrbracket#S
\othersemicol#S
\otherspace#S
\othertilde#S
\passvalueaftergroup{arg1}#S
\questiontext{arg1}#S
\retokenizingcatcodes#S
\savebaselxivdata#S
\saveclozemultichoiceanswer{arg1}#S
\saveclozenumericalanswer{arg1}#S
\saveclozeshortansweranswer{arg1}#S
\savematchinganswer{arg1}#S
\savemultianswer{arg1}#S
\savenumericalanswer{arg1}#S
\saveshortansweranswer{arg1}#S
\savetruefalseanswer{arg1}#S
\swaptotrueendenvironment{arg1}{arg2}#S
\targetext#S
\targetfmt#S
\testforquote{arg1}{arg2}#S
\texttorescan#S
\tikzifexternalizing{arg1}{arg2}#S
\toadd#S
\verbcatcodes#S
\writeclozequestion#S
\writeessayquestion#S
\writematchingquestion#S
\writemultiquestion#S
\writenumericalquestion#S
\writeshortanswerquestion#S
\writetomoodle[opt]{arg1}#S
\writetomoodle{arg1}#S
\writetruefalsequestion#S
\xa{arg1}#S
\xmlDisplayVerbatimBox#S
|