Can't change latex-to-pdf compiler for org
- Dominant language
- Emacs Lisp
- Stars
- 22.7k
- Forks
- 3.1k
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 4
Description
###
- [X] I have searched [the FAQ](https://doomemacs.org/docs/faq.org) and [the documentation](https://doomemacs.org/docs/getting_started.org) for solutions.
- [X] I have searched [the issue tracker](https://github.com/hlissner/doom-emacs/issues) for similar issues (the closed issues too).
- [X] I have searched [the Discourse](https://doomemacs.org/d/docs) for any errors and solutions.
- [X] I can reproduce my issue on [the latest commit](https://github.com/hlissner/doom-emacs/commit) of Doom Emacs.
- [X] I have read [How to Debug Issues](https://doomemacs.org/d/how2debug) and found no solution.
### What did you expect to happen?
I need to change latex compiler from `pdflatex` to `xelatex`. I've expected that changing `org-latex-compiler` and/or `org-latex-compilers` variables and/or setting `#+LATEX_COMPILER` org header will change my latex compiler.
### What actually happened?
Latex compiler didn't change. pdflatex is used instead of xelatex.

### Describe your attempts to resolve the issue
I've searched all standard ways of changing latex compiler for org's export.
I've set variables in my config.el:
```elisp
(after! org
(setq org-latex-compiler 'xelatex)
(setq org-latex-compilers '("xelatex")))
```
Also I've set header `#+LATEX_COMPILER: xelatex` in my org file.
After that, I've synced my configuration with doom sync and confirmed that those variables is set.

---

Googling "doom emacs change org compiler" and "doom emacs change latex compiler" gives nothing useful up to 3d page.
Setting those variables in vanilla emacs works as expected.
### Steps to reproduce
In my `init.el` those flags is set for latex and org:
```
(org +brain +dragndrop +gnuplot +noter +pomodoro +present +pretty +roam)
(latex +lsp +cdlatex +latexmk)
```
### System Information
https://pastebin.com/sptznH9H
Contributor guide
Assessment
This issue has not been assessed yet.