aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-07-08 17:37:54 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-07-08 17:37:54 -0700
commitac79429a128bf7efeb0ad3896968c29392af7b1a (patch)
tree44be06218a198330f5cae413df419746610fb740 /src
parent4667f92987b2b38f881a1515da6086eb82de7ba2 (diff)
downloadpandoc-ac79429a128bf7efeb0ad3896968c29392af7b1a.tar.gz
PDF: Make sure `--latex-engine-opt` goes before the filename...
on the command line. LaTeX needs the argument to come after the options. Closes #1779 - again! Thanks to squisher for pointing out the problem.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/PDF.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs
index 1711c0f36..8f92a3321 100644
--- a/src/Text/Pandoc/PDF.hs
+++ b/src/Text/Pandoc/PDF.hs
@@ -190,7 +190,7 @@ runTeXProgram verbose program args runNumber numRuns tmpDir source = do
let file' = file
#endif
let programArgs = ["-halt-on-error", "-interaction", "nonstopmode",
- "-output-directory", tmpDir', file'] ++ args
+ "-output-directory", tmpDir'] ++ args ++ [file']
env' <- getEnvironment
let sep = searchPathSeparator:[]
let texinputs = maybe (tmpDir' ++ sep) ((tmpDir' ++ sep) ++)