Hi,
Is it normal that I'm not able to compile Xelatex or Luatex files? I have some scripts that use the {fontspec} packages and I do not seem to be able to compile my code ...
Is there any solution?
Hi. You should be able to use Xelatex or Luatex. However, this should be specified in your latexmkrc file, for example:
$pdflatex = 'xelatex --shell-escape %O %S';
I do not plan to or want to add this as an option to vimtex. Even though I've hidden many "complexeties" of latexmk from most users, I still think that people should learn about latexmk and know how to run and use it outside of vimtex.
Sounds great, thank you lervag, I already had a look at pdflatex and yes it is full of nice features!
You can have a latexmkrc for each project?
@xerron: yes. From the manual, latexmk will look for a config file in the current directory:
The RC file in the current working directory. This file can be named either "latexmkrc" or ".latexmkrc", and the first of these to be found is used, if any.
Configuration for Lualatex:
#$pdflatex = 'xelatex -file-line-error -shell-escape -synctex=1';
$pdflatex = 'lualatex --interaction=nonstopmode --shell-escape --synctex=1';
work fine!
Is this (I mean $pdflatex ...) the precise line to add in the latexmkrc in the working dir?
Yes, you can have both a latexmkrc in your home dir as well as per-project ones in each working dir. The latter are read after the former, so they can override any general settings for a particular project.
@lervag : thanks, finally got it working with latexmkrc
Most helpful comment
Yes, you can have both a
latexmkrcin your home dir as well as per-project ones in each working dir. The latter are read after the former, so they can override any general settings for a particular project.