-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Awesome plugin, I love it. LaTeXTools and LaTeXing were not cutting it for me, and this plugin seems like the start to a really good alternative.
One feature request I would like to see, though, is support for putting intermediary files (i.e., anything except the .pdf and maybe the .synctex.gz files) into a separate directory,
LaTeXing supports this by default, by building into the "./Output" subdirectory of the .tex file, then copying the *.pdf and *.synctex.gz files into the source directory on successful build. However, its implementation is buggy. LaTeXing uses the "-outdir=" option of latexmk, but does not 'cd' into the output directory. This means that packages that generate intermediate files and then later read them back during compilation will not be able to find those files when reading them back.
The "-cd" option of latexmk doesn't fix this, as packages will be looking for generated files in "./", and they end up in the output directory.
What you need to do is manually 'cd' to the output directory before executing the latexmk command (which should not use the "-cd" option.) In Python, that just means setting the 'cwd' keyword argument to the output directory when calling subprocess.Popen().
You also need to 'mkdir' (if needed) for the output directory, as well, of course.
Again, great plugin! Looking forward to seeing how it develops.