I was working with a Tex file in the standard font, and another in Calibri in Tex Studio.
The problem is that I have to switch compiler between the two files.
I don't want to use Configure -> Build -> Default Compiler. When I do that, it sets the default compiler for every Tex file. So I would need to switch between PdfLatex and XeLatex (and back) every time I work on the files.
So instead I would need to go into Tools every time I work on the one with Calibri font to compile using XeLatex. I cannot click on "compile" because that will run the PdfTex compiler and I will get an error involving fontspec package.
Is there a way to set the compiler for just a single Tex file? So I can work on different files with different fonts without having to do extra steps?
pdflatex file
if I want to use pdflatex andxelatex file
if i want to use xelatex. If you find getting the editor to type this for you is easier then that is fine, but if it is not easier then you don't have to do it.