From 1ab21530b4500885a8e4ed27e4f32faa6b243583 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 19 Feb 2012 19:11:40 -0800 Subject: PDF: run latex 3 times if --toc specified. Closes #424. --- src/Text/Pandoc/PDF.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs index cc19e1c50..59cce2e45 100644 --- a/src/Text/Pandoc/PDF.hs +++ b/src/Text/Pandoc/PDF.hs @@ -57,7 +57,7 @@ tex2pdf' :: FilePath -- ^ temp directory for output -> IO (Either ByteString ByteString) tex2pdf' tmpDir program source = do let numruns = if "\\tableofcontents" `isInfixOf` source - then 2 + then 3 else 1 (exit, log', mbPdf) <- runTeXProgram program numruns tmpDir source let msg = "Error producing PDF from TeX source." -- cgit v1.2.3