[Fix #484] Set OS X specific latex settings conditionally
Merge remote-tracking branch 'upstream/master'