- ! Fatal fontspec error: "cannot-use-pdftex"
! The fontspec package requires either XeTeX or LuaTeX to function.
! You must change your typesetting engine to, e.g., "xelatex" or "lualatex"
! instead of plain "latex" or "pdflatex".
! See the fontspec documentation for further information.
! For immediate help type H <return>.
which is quite confusing since I did run it via XeTeX or XeLaTeX. I also changed my fonts but to no avail. Lyx ran fine with the file so I think this has something to do with the settings in TeXworks but I couldn't find anything more I could do.
Thanks in advance.