From e24002ed7507c8f7f391db16e5c54acaeba532db Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 5 Jan 2024 21:35:01 -0800 Subject: T.P.PDF: increase max number of LaTeX runs to 4. On some documents, 4 runs are needed (e.g. when a LastPage reference is used). Closes #9299. --- src/Text/Pandoc/PDF.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs index 1d58721b0..521f8c14c 100644 --- a/src/Text/Pandoc/PDF.hs +++ b/src/Text/Pandoc/PDF.hs @@ -426,7 +426,7 @@ runTeXProgram program args tmpDir = do then readFileLazy logFile else return mempty let rerunWarnings = checkForRerun logContents - if not (null rerunWarnings) && runNumber < 3 + if not (null rerunWarnings) && runNumber < 4 then do report $ MakePDFInfo "Rerun needed" (T.intercalate "\n" -- cgit v1.2.3