Solved: See my answer below. It seems like emacs can't always see what you can see in the terminal. The package mentioned in my answer below solved this issue.
I'm trying to make LaTeXPreviewPane work on osx (Yosemite). When I try to use the pdf preview it never finishes loading, I see this message:
Error running timer `latex-preview-pane-update': (file-error "Searching for program" "no such file or directory" "pdflatex")
1: A installed copy of Emacs 24+ with a working packages system 2: The command pdflatex on your PATH 3: Access to the MELPA package repository
I know I have 1 and 3 and have tried to make sure pdflatex should be in my "PATH" as described below.
I tested the command pdflatex via the terminal, and it worked. It is expandable in the terminal, using bash. However I thought I may have to make sure it might still not be in the "PATH" so I found out where the pdflatex binary I installed via macports is, and added it to the .bashrc:
$ which pdflatex /opt/local/bin/pdflatex
I then added this path to my
.bashrc file like this:
PATH=$PATH:/opt/local/bin/pdflatex export PATH
It still does not work, I'm thinking the problem could be that emacs does not see everything bash sees and that I may need to put a symlink to the binary somewhere, but I'm not sure. I'd really appreciate some advice on how to solve this.