Functions for calling TeX from Haskell.