Fixed v1.16 reversion with --latex-engine.
In 1.16 --latex-engine raises an error if a full path is given. This commit fixes this reversion. Closes #2618.
This commit is contained in:
parent
a6d20b32c7
commit
4990350fc7
1 changed files with 2 additions and 2 deletions
|
@ -99,9 +99,9 @@ makePDF program writer opts doc = withTempDir "tex2pdf." $ \tmpdir -> do
|
||||||
doc' <- handleImages opts tmpdir doc
|
doc' <- handleImages opts tmpdir doc
|
||||||
let source = writer opts doc'
|
let source = writer opts doc'
|
||||||
args = writerLaTeXArgs opts
|
args = writerLaTeXArgs opts
|
||||||
case program of
|
case takeBaseName program of
|
||||||
"context" -> context2pdf (writerVerbose opts) tmpdir source
|
"context" -> context2pdf (writerVerbose opts) tmpdir source
|
||||||
_ | program `elem` ["pdflatex", "lualatex", "xelatex"]
|
prog | prog `elem` ["pdflatex", "lualatex", "xelatex"]
|
||||||
-> tex2pdf' (writerVerbose opts) args tmpdir program source
|
-> tex2pdf' (writerVerbose opts) args tmpdir program source
|
||||||
_ -> return $ Left $ UTF8.fromStringLazy $ "Unknown program " ++ program
|
_ -> return $ Left $ UTF8.fromStringLazy $ "Unknown program " ++ program
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue