Texstudio and windows error

If you are using TexStudio and build a document and receive the following error:

Fatal fontspec error: “cannot-use-pdftex” The fontspec package requires either XeTeX or LuaTeX. You must change your typesetting engine to, e.g., “xelatex” or “lualatex”instead of plain “latex” or “pdflatex”. For immediate help type H .

You simply need to change the build type from pdflatex to xelatex in the options (tool -> options -> build) section.

https://tex.stackexchange.com/questions/71436/fontspec-luatex-error

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.