aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-03-26 20:00:40 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-03-26 20:00:40 +0200
commit0ae448e63810b5599c21cac7a83e90dd82f07031 (patch)
treee55f90f09d161541a65ed57066253ab897b8fdf8 /src/Text
parent453970c6b34ed7cc2f52181e5e77b9182a3639e9 (diff)
downloadpandoc-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.hs3
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"