[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AUCTex in WSL cannot find TeX Live in Win
From: |
Ikumi Keita |
Subject: |
Re: AUCTex in WSL cannot find TeX Live in Win |
Date: |
Tue, 23 Aug 2022 14:22:11 +0900 |
Hi petepetite75,
>>>>> petepetite75@my.mail.de writes:
> AUCTex in WSL cannot find TeX Live in Win When trying to compile/
> pdf-preview a tex-file, minibuffer spits out:
> ERROR: AUCTeX cannot find a working TeX distribution. Make sure you have one
> and that TeX binaries are in PATH environment variable
I don't use wsl, so I'm not at all confident with this issue. Maybe the
output of `M-x TeX-submit-bug-report RET' would be helpful.
> When I tell auctex in wsl-emacs to compile/ 'pdflatex' helloworld.tex,
> it by default tries to do this within _wsl_. So it is bound to
> complain, as there is no TexLive in wsl.
> The right and as we've seen above working command to compile/
> 'pdflatex' the file in TexLive _Windows_ is pdflatex._EXE_.
> So it seems all I would have to do is tell auctex to execute
> pdflatex.exe, instead of just pdflatex.
Currently that seems most probable for me. I guess your emacs thinks
that it's running on linux, and sets up `TeX-shell' to bash. And I guess
that wsl bash needs ".exe" to run windows binaries on the PATH.
> Does this make any sense? If so: now how/ where in auctex can I change
> the default command accordingly?
If the above guess is correct, you have to set at least `TeX-command'
and `LaTeX-command' to "tex.exe" and "latex.exe" respectively (without
"pdf" prepended). Try inserting
(setq TeX-command "tex.exe"
LaTeX-command "latex.exe")
in your personal init file. (Or you can use customize interface using
`M-x customize-option RET TeX-command RET' and `M-x customize-option RET
LaTeX-command RET')
However, I'm not sure whether those treatments are enough or not.
Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine