I've been using TextMate and TextMate 2 for years writing LaTeX. I recently switched to Sublime Text, but still miss a key feature there.
The LaTeX package of TextMate 2 has the Watch Document
function, which is "[...] a live pdf preview of the LaTeX document you're editing that automatically updates while you make changes." (Source).
These changes do not only include any Tex file included in a master document, but also extends to changes in images and other files included in the document.
I've already learned that it is possible in LaTeXTools for Sublime Text to build a project consisting of many files by including %!TEX root = MyMasterFile.tex
on top of each document. However, I really do not like the tedious workflow of always triggering the build process by hand. I want LaTeXTools to rebuild my document as soon as any file associated with it changes.
My current workflow is triggering the Watch Document
using Textmate 2 and then switching over to Sublime Text 3 to work on the project.
Is it possible to achieve this functionality with Sublime Text and LaTeXTools only?
latexmk -pvc main
which will recompile whenever any file changes