And I've configured AUCTex to automatically use LatexMk when compiling new .tex documents, but I keep getting this error message:
ERROR: Fatal fontspec error: "cannot-use-pdftex"
--- TeX said ---
!
! 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".
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.28 \msg_fatal:nn {fontspec} {cannot-use-pdftex}
But I only get this error in Emacs, when I run latexmk -pvc file.tex in my terminal everything goes swimmingly and I get no error messages. Any idea why? It's fairly annoying since it messes the preview of the PDF-document because it doesn't align to where I'm actually editing it, it just jumps around.
Hello, I have a strange problem with LatexMk and LuaLaTex together with Emacs and AUCTex. I have the following
.latexmk
file:And I've configured AUCTex to automatically use LatexMk when compiling new
.tex
documents, but I keep getting this error message:But I only get this error in Emacs, when I run
latexmk -pvc file.tex
in my terminal everything goes swimmingly and I get no error messages. Any idea why? It's fairly annoying since it messes the preview of the PDF-document because it doesn't align to where I'm actually editing it, it just jumps around.