I am using Linux mint cinnamon. Let's say I have .tex
file in the sub-directory ~/MyTexfiles/Integration
. When I double click on the .tex
file to open it, it opens in vim since vim is my default editor, and when I go to compile this file the .pdf
file and the auxiliary files appear in the home directory. But if I open a new terminal inside ~/MyTexfiles/Integration
, and then open and run the .tex
file, the .pdf
and other files appear inside this sub-directory. This second result is a desirable result for me. I compile from the command line using the following
:!latexmk -pdf %:r.tex<CR>
Is there any change that I can make to this command so that after opening .tex
files by double-clicking, all resulting files after compilation still appear in the sub-directory? I couldn't find a way to do this, any help will be appreciated!