doomemacs / doomemacs/core

Can't change latex-to-pdf compiler for org

Open
#5,172 2 comments 0 reactions 0 assignees View on GitHub
is:bug needs-triage
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.

![image](https://user-images.githubusercontent.com/48189369/121792319-16398e80-cbfc-11eb-9d15-289102d20f7a.png)

### 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.

![image](https://user-images.githubusercontent.com/48189369/121792288-9b707380-cbfb-11eb-8140-d339bd19fd97.png)
---
![image](https://user-images.githubusercontent.com/48189369/121792292-aa572600-cbfb-11eb-85cb-b7f3901280a4.png)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.