git.iko.soy/typeable/pandoc
on master help sign in
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.

commitac79429a128bf7efeb0ad3896968c29392af7b1a authorJohn MacFarlane <jgm@berkeley.edu> dateWed 8 Jul 2015, 17:37 (11 years ago) parent4667f92
1 file changed+1−1
src/Text/Pandoc/PDF.hs+1−1
src/Text/Pandoc/PDF.hs+1−1
@@ -190,7 +190,7 @@ runTeXProgram verbose program args runNumber numRuns tmpDir source = do
190190 let file' = file
191191#endif
192192 let programArgs = ["-halt-on-error", "-interaction", "nonstopmode",
193− "-output-directory", tmpDir', file'] ++ args
193+ "-output-directory", tmpDir'] ++ args ++ [file']
194194 env' <- getEnvironment
195195 let sep = searchPathSeparator:[]
196196 let texinputs = maybe (tmpDir' ++ sep) ((tmpDir' ++ sep) ++)