Sample Header Ad - 728x90

Emacs can't find latexmk

1 vote
0 answers
510 views
I've been using org-mode in Emacs for a while now; specifically, I've installed emacs-mac with brew install --cask emacs-mac and then installed Doom Emacs. A problem I've consistently had with my setup, however, is that when running org-latex-export-to-pdf or running latex code is an org-mode source code block, I always get the same error: zsh:1: command not found: latexmk. I've been trying to fix this forever; I installed and set up the exec-path-from-shell package, I gave Emacs full disk access, I gave Ruby full disk access (though emacs-mac doesn't seem to be run from a Ruby script anyway), and I've tried adding /Library/TeX/texbin to my exec-path and $PATH variable in emacs through my config multiple times. Nothing's been working, and I can't figure out why. Is there anyone that could help me with this? UPDATE: I've simply hardcoded org-latex-pdf-process with the full path to pdflatex, which works fine. I'm still not sure why Emacs can't find it when all the paths are set, but whatever, it's working now I guess.
Asked by luardemin (11 rep)
Oct 17, 2021, 01:54 AM
Last activity: Oct 17, 2021, 04:46 AM