adds command to compile LaTex files on the fly