And, if you ever wanted help with Moodle's native TeX Notation, you can try at the Using TeX Notation doc.
And for the errors on the path statements, the red tick seems to disappear when you remove the double quote marks - for those who missed it im Mauno's comments.
(I know, 8 months behind.. but it take a while to catch up on my homework sometimes.. )