@@ -57,7 +57,7 @@ tex2pdf' :: FilePath -- ^ temp directory for output
57 -> IO (Either ByteString ByteString)
57 -> IO (Either ByteString ByteString)
58tex2pdf' tmpDir program source = do
58tex2pdf' tmpDir program source = do
59 let numruns = if "\\tableofcontents" `isInfixOf` source
59 let numruns = if "\\tableofcontents" `isInfixOf` source
62 (exit, log', mbPdf) <- runTeXProgram program numruns tmpDir source
62 (exit, log', mbPdf) <- runTeXProgram program numruns tmpDir source
63 let msg = "Error producing PDF from TeX source."
63 let msg = "Error producing PDF from TeX source."