TeX rules for OSX