Context: LaTeX is a typesetting system. When compiling a document, a lot of really in-depth debugging information is printed, which can be borderline incomprehensible to anyone but LaTeX experts. It can also be a visual hindrance when looking for important information like errors.
Use entr it’s a godsend! It watches when you write a buffer and then runs a command, which can be a script. Save your LaTeX often, and you never ger those errors!
For vim users, there’s also vimtex, which, on top of doing what
entr
does, has a “quick fixes” feature that basically creates a split with a concise list of errors that’s much more readable thanpdflatex
(or similar) outputLatexmk has built-in option to watch a Tex file and recompile upon changes.