From 931030d95d85ca3059516d15ef1b632131a84a20 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 8 Jun 2019 11:53:37 -0700 Subject: PDF via ms: make TOC appear at beginning and in PDF bookmarks. Previously the TOC appeared at the end of the document, and was not bookmarked. If you want it to continue appearing at the end, add `--pdf-engine-opt=--no-toc-relocation` to your command line. Closes #5553. --- src/Text/Pandoc/PDF.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs index 4f232bf4f..5826f9856 100644 --- a/src/Text/Pandoc/PDF.hs +++ b/src/Text/Pandoc/PDF.hs @@ -77,8 +77,8 @@ makePDF program pdfargs writer opts doc = liftIO $ html2pdf verbosity program pdfargs source "pdfroff" -> do source <- writer opts doc - let args = ["-ms", "-mpdfmark", "-e", "-t", "-k", "-KUTF-8", "-i", - "--no-toc-relocation"] ++ pdfargs + let args = ["-ms", "-mpdfmark", "-mspdf", + "-e", "-t", "-k", "-KUTF-8", "-i"] ++ pdfargs verbosity <- getVerbosity liftIO $ generic2pdf verbosity program args source baseProg -> do -- cgit v1.2.3