I am not an expert in LaTeX, but I was writing a paper, everything was going fine, until it suddenly crashed giving me the error:
The fontspec package requires either XeTeX or LuaTeX to function.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.
xelatex <document>orlualatex <document>instead ofpdflatex <document>to compile your document if you want to use thefontspecpackage. For some background, try tex.stackexchange.com/q/36/86 – Andrew Stacey Oct 4 '12 at 8:49pdflatexinstead ofxelatexfor example) or you addedfontspecexplicitly or a package that loadsfontspecimplicitly. – cgnieder Oct 4 '12 at 11:07