I am trying to run GVim with Vim LaTex-Suite to be able to compile LaTeX documents. I have two ways of running GVim:
- Open Terminal, then type gvim and enter
- Use an application launcher e.g. xfce4-appfinder on Xubuntu or dmenu_run on i3
When I use method 1 and launch GVim through the Terminal, I can compile fine, however when I launch GVim via method 2 through a launcher, I cannot compile when running the command !pdflatex -interaction=nonstopmode main.tex
from GVim. It says:
kpathsea: Running mktexfmt pdflatex.fmt
mktexfmt: No such file or directory
I can't find the format file `pdflatex.fmt'!
I'm not sure this is an issue with GVim or LaTeX-Suite since it's working but only depends on the way I start it.
Would you have any ideas on how to make it work for both methods 1 and 2 and why this is happening?
Thanks!
.bashrc
to.profile
.