As suggested here, latexmk
is a handy way to continually compile your document whenever the source changes. But often when you\'re working on a document you\'ll en
Another possible hack is simply to use:
yes x | latexmk source.tex
You could always create an alias for 'yes x | latexmk' if you're going to use this option lots. The main advantage of this that I can see above the other suggestions is that it is very quick for when you occasionally want latexmk to behave like this.
Mehmet