added hook to compile tex on save