Using Texmaker 5.0.3, MikTeX 2.9 & Windows 7 x64,
I am currently trying to write a document using \includepackage{fontspec}. This has required me to switch from pdflatex to xelatex. Quick Build is set to XeTeX + Show PDF.
Everytime I compile, despite choosing the XeLaTeX option, it throws me a
Fatal Fontspec Error: "cannot-use-pdftex"
Error, pretty much exactly as in this question.
After fiddling for a bit, I then realized: It works. It's using XeLaTeX and compiling without error...but then it still throws me the above error and a log output which implies it's using PDFLateX, which really confuses me.
In addition, the built-in pdf viewer does not show the resulting *.pdf file (which was the main reason it took me so long to realized that it did, in fact, compile). Manually opening the resulting pdf, however, shows that any changes applied to the source did in fact make it through.
Does anyone know what might cause this and how to fix it? Mostly, it's annoying because it overrides any log output the XeTeX compilation might throw out and because it prevents the updated PDF from automatically showing up.