In my .emacs
, I have the following:
(setq org-latex-to-pdf-process (list "latexmk -f -pdf %f"))
However, when exporting an org
it uses the "wrong" version of latexmk
. More precisely, from my shell
(outside of emacs
), I use:
/usr/local/texlive/2014/bin/x86_64-linux/latexmk
But, it seems like, org
is using a different one that is associated to the wrong version of TeXLive. How can I set the right LaTeX to be used when exporting org
files?
PATH
var as in the shell env from where you launched it. What do you see when you dowhich latexmk
in the terminal (from where you launched emacs)?latexmk
. I launchemacs
from a shortcut, so I don't know what's itsPATH
. How can I check it?exec-path
(for example by pressingM-:
and then typingexec-path
) to see what directories are available to Emacs to search forlatexmk
. I'm not 100% sure, but I think that Org will launch a process withlatexmk
rather than executing a shell command with that text.