I have a pdflatex
program located in
/usr/local/texlive/2014/bin/i386-linux/pdflatex
I added it's folder to $PATH
both in .bashrc and .bash_profile:
PATH=$PATH:/usr/local/texlive/2014/bin/i386-linux/
When I run this command in ordinary shell: both in X and console, it works. I wanted to run pdflatex upon the current file in buffer using this elisp command:
(start-process-shell-command
"pdflatex"
"*async pdflatex*"
(concat "pdflatex " file-name))
It works in Windows, worked in Linux previously. But now I get an error:
/usr/bin/bash: pdflatex: command not found
How to fix?