-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tectonic as an option for --pdf-engine. #5346
Conversation
src/Text/Pandoc/PDF.hs
Outdated
"-output-directory", tmpDir] ++ args ++ [file] | ||
let programArgs | takeBaseName program == "latexmk" = ["-interaction=batchmode", "-halt-on-error", "-pdf", | ||
"-quiet", "-outdir=" ++ tmpDir] ++ args ++ [file] | ||
| takeBaseName program == "tectonic" = args ++ [file] -- outdir defaults to dir of input file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question is what tectonic will put in the output dir. The pandoc policy is not to leave any files on the file system that the user didn't explicitly request (e.g. with -o myfile.pdf
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The answer to that one is nothing.
It has extra flags that optionally enable writing aux files into the output dir (which is, as the comment says, the temp directory in this case), but it never needs them, that’s only so you can speed up reprocessing with the Makefiles it also knows how to generate.
4f3af3b
to
5dd217c
Compare
Closes jgm#5345 - runs tectonic on STDIN instead of a temporary .tex file, so that it looks in PWD for \include and \input like the rest of the engines. - allows overriding the output directory without messing up the args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`
Excellent, thanks! |
Closes #5345