Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# This script automatically runs 'make' whenever any of the LaTeX files in
# this directory are saved. Open the PDF file you want to view in the
# background, and run this script in the shell. Every time you save a
# LaTeX file, the LaTeX will be recompiled and an updated version of the PDF
# will be displayed in your PDF viewer.
# This script requires inotify-tools to be installed. e.g. on Ubuntu:
# sudo apt-get install inotify-tools
cd `pwd`
while true
inotifywait -e close_write *.tex ; make clean && make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.