diff options
| author | Albert Krewinkel <[email protected]> | 2025-07-25 07:54:13 +0200 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2025-07-25 08:19:27 +0200 |
| commit | 3dfb25bb6cb57769450a4079bb9ea63b1e74c755 (patch) | |
| tree | dfb6b4fe350a16e563257aea5e81049d8dca6b70 | |
| parent | 37b446a54ca05bc05437944bbe24f12fc92641b4 (diff) | |
PDF: allow `pdflatex-dev` and `lualatex-dev` as PDF engines
These are the development versions of the LaTeX binaries; installable,
e.g., with `tlmgr install latex-base-dev`.
Closes: #10991
| -rw-r--r-- | src/Text/Pandoc/App/CommandLineOptions.hs | 3 | ||||
| -rw-r--r-- | src/Text/Pandoc/PDF.hs | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs index b8a4e2fc9..7f5515ef8 100644 --- a/src/Text/Pandoc/App/CommandLineOptions.hs +++ b/src/Text/Pandoc/App/CommandLineOptions.hs @@ -205,7 +205,8 @@ handleOptInfo engine info = E.handle (handleError . Left) $ do -- | Supported LaTeX engines; the first item is used as default engine -- when going through LaTeX. latexEngines :: [String] -latexEngines = ["pdflatex", "lualatex", "xelatex", "latexmk", "tectonic"] +latexEngines = [ "pdflatex", "lualatex", "xelatex", "latexmk", "tectonic" + , "pdflatex-dev", "lualatex-dev" ] -- | Supported HTML PDF engines; the first item is used as default -- engine when going through HTML. diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs index 715be0e84..ef37b8cab 100644 --- a/src/Text/Pandoc/PDF.hs +++ b/src/Text/Pandoc/PDF.hs @@ -133,7 +133,9 @@ makePDF program pdfargs writer opts doc = withTempDir (program == "typst") "medi "tectonic" -> tectonic2pdf program pdfargs tmpdir source "latexmk" -> tex2pdf program pdfargs tmpdir source "lualatex" -> tex2pdf program pdfargs tmpdir source + "lualatex-dev" -> tex2pdf program pdfargs tmpdir source "pdflatex" -> tex2pdf program pdfargs tmpdir source + "pdflatex-dev" -> tex2pdf program pdfargs tmpdir source "xelatex" -> tex2pdf program pdfargs tmpdir source _ -> return $ Left $ UTF8.fromStringLazy $ "Unknown program " ++ program |
