Tip for people who want to compile LaTeX from the command line: latexmk is basically a build tool for latex, which can also do things like incremental compilation and listen for changes. It's part of MacTex and can also be installed with the package manager of your choice if you use texlive.
Another tip: If you usually write markdown, pandoc can turn Markdown interspersed with LaTeX code into pdfs.
Another tip: If you usually write markdown, pandoc can turn Markdown interspersed with LaTeX code into pdfs.