diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2024-01-05 21:35:01 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2024-01-05 21:35:55 -0800 |
| commit | e24002ed7507c8f7f391db16e5c54acaeba532db (patch) | |
| tree | 670709944aa2f82085cd5d44f23a209f4492da66 /src/Text | |
| parent | 80303beb35cff4ae8aab571a65d4e0938f0a7970 (diff) | |
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.
Diffstat (limited to 'src/Text')
| -rw-r--r-- | src/Text/Pandoc/PDF.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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" |
