diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-03-26 20:00:40 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-03-26 20:00:40 +0200 |
commit | 0ae448e63810b5599c21cac7a83e90dd82f07031 (patch) | |
tree | e55f90f09d161541a65ed57066253ab897b8fdf8 /src/Text | |
parent | 453970c6b34ed7cc2f52181e5e77b9182a3639e9 (diff) | |
download | pandoc-0ae448e63810b5599c21cac7a83e90dd82f07031.tar.gz |
PDF: when running pdfroff, don't do second pass to relocate toc.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/PDF.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs index 7e44adeda..696dbacf0 100644 --- a/src/Text/Pandoc/PDF.hs +++ b/src/Text/Pandoc/PDF.hs @@ -110,7 +110,8 @@ makePDF "pdfroff" writer opts verbosity _mediabag doc = liftIO $ do source <- runIOorExplode $ do setVerbosity verbosity writer opts doc - let args = ["-ms", "-mpdfmark", "-e", "-t", "-k", "-KUTF-8", "-i"] + let args = ["-ms", "-mpdfmark", "-e", "-t", "-k", "-KUTF-8", "-i", + "--no-toc-relocation"] ms2pdf verbosity args source makePDF program writer opts verbosity mediabag doc = do let withTemp = if takeBaseName program == "context" |