In my shell (Bash
), I can switch among several LaTeX
distros setting the $PATH
variable. E.g.:
export PATH=/usr/local/texlive/2016/bin/x86_64-linux:$PATH
or
export PATH=/usr/local/texlive/2018/bin/x86_64-linux:$PATH
This doesn't affect the LaTeX
distro used by emacs when I call the function tex-file
.
Is there a way to set the $PATH
variable used by emacs once it is running.
I need it to test the .pdf
file layout generated by different LaTeX
distros while working on a document.
emacs
you can callsetenv
and then modifyPATH
as you need, which should have the effect you desire. If this works for your use case, you could probably write a small elisp function to ease the switching between varioustexlive
distributions – einfeyn496 Jul 29 '20 at 8:00Latex
distro used byemacs
. Your answer is right, my question was wrong. if you deem it appropriate you can post your comment as an answer so I can accept it. – Gabriele Nicolardi Jul 29 '20 at 8:10