Generate latex in accessible tempdir, fixes #137