LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Gvim and Latex: PCManfm does not produce pdf in right folder. (https://www.linuxquestions.org/questions/linux-general-1/gvim-and-latex-pcmanfm-does-not-produce-pdf-in-right-folder-4175610190/)

rng 07-19-2017 11:21 AM

Gvim and Latex: PCManfm does not produce pdf in right folder.
 
I am using Gvim text editor with tex_pdf.vim ( https://github.com/vim-scripts/TeX-PDF ) for converting tex files to pdf files. I use following steps to create pdf from tex file kept in ~/mytexfolder, while I am logged in as abcd with home folder as /home/abcd:

* Open file manager, open ~/mytexfolder
* Double click on tex file to open it in Gvim
* Press F9 in Gvim to create a pdf file.

Above steps produce pdf files all right.

The problem is this: If I use Dolphin or Thunar file manager, the pdf file is created in ~/mytexfolder (and this is the desired location). However, if I use PFManFM file manager (in LXDE desktop), it creates pdf file (also intermediate files) in my home folder (/home/abcd) and I have to manually transfer them to ~/mtexfolder every time.

Firstly, where is the problem: in Gvim, tex_pdf.vim or in PCManFM? Secondly, how can I correct this problem so that the pdf file is created in the folder from which tex file was loaded (~/mytexfolder in above example) when I use PCManFM? Thanks for your help.

Note: If I open the tex file from commandline after cd to mytexfolder, Gvim creates pdf file in that folder only.

Also, other files (like text files) opened in Gvim from PCManFM folder, get saved to correct folder, when saved from Gvim after editing.


All times are GMT -5. The time now is 11:06 AM.