I'm trying to make a simple document which uses the fontspec package in

  1. Tex Maker 4.4.1 with LuaLaTeX engine.

Code I'm using



    This is Introduction


I'm getting this error message (although I've checked LuaLaTeX Engine is set in the drop down menu)

Tex Maker

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

  • 4
    The document is for lualatex and not for luatex. Check in miktex-settings if the lualatex format is enabled. Perhaps you will have to build it. There is type on the document, the command should be \setmainfont. Commented Apr 13, 2015 at 18:59

1 Answer 1


I reinstalled the software and problem got resolved.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .