3

I'm trying to use a template from online and when I upload the zip into Texmaker it gives the following error

"! 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 ."

What I have tried

I've looked at several posts in this forum, but none seem to have worked. I tried making a custom command for both XeLatex and LuaLaTeX, but neither has worked. I think maybe I don't have something properly downloaded? My custom commands look like this

XeLaTeX: xelatex --interaction=nonstopmode %.tex

LuaLaTeX: lualatex --interaction=nonstopmode %

Possibly these are wrong though. When I run either command, it just says "Error : could not start command"

Thanks for the help, and once again I've read most of the threads related to this, but to no avail, so I think I'm doing something else wrong.

Below is what my texmaker preferences look like...let me know how to change them in order for this to work. Running quick build or my custom command doesn't work and results in the same error

enter image description here

enter image description here

  • 1
    Change pdflatex for xelatex in the toolbar, it should work. – Bernard Oct 22 '13 at 21:36
  • Not quite sure what you mean....I will post pictures of what my preferences looks like – spaderdabomb Oct 22 '13 at 21:43
  • 1
    The XeLaTeX command is totally wrong (and has been modified). Just reset the settings : Options -> Settings file -> Reset settings and then select the "XeLaTeX + View Pdf " option for the "Quick build" command. – user27168 Oct 23 '13 at 06:44

0 Answers0