@@ -57,8 +57,8 @@ tex2pdf' :: FilePath -- ^ temp directory for output
5757 -> IO (Either ByteString ByteString)
5858tex2pdf' tmpDir program source = do
5959 let numruns = if "\\tableofcontents" `isInfixOf` source
60− then 3
61− else 1
60+ then 3 -- to get page numbers
61+ else 2 -- 1 run won't give you PDF bookmarks
6262 (exit, log', mbPdf) <- runTeXProgram program numruns tmpDir source
6363 let msg = "Error producing PDF from TeX source."
6464 case (exit, mbPdf) of