dandavison / xenops

An editing environment for LaTeX mathematical documents
MIT License
228 stars 14 forks source link

Inconsistency between Xenops external command input and latex engine #70

Open deshearth opened 8 months ago

deshearth commented 8 months ago

In tex file generated by Xenops (located at /var/folder/... and it can be found by click copy failing command), it uses a package called "fontspec". But the compiling engine is latex. So if I run failing command in terminal, the error is that lualatex or xelatex is required to use the package. I wonder how this tex file is generated and is there any way to customize the preamble. I know that variable org-format-latex-header can be set. But in the tex file generated by Xenops, there are a few other packages, such as "fontspec".