Sometimes for certain languages, classes and packages it may be necessary to use a different compiler than the default
pdflatex. With ShareLaTeX, you can choose between pdfLaTeX, LaTeX, XƎLaTeX, and LuaLaTeX.
To change the compiler, simply click into the left hand menu
and click on the Compiler menu under Settings: