Skip to content
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

Merged
merged 1 commit into from Mar 7, 2019
Merged

Conversation

cormacrelf
Copy link
Contributor

Closes #5345

src/Text/Pandoc/PDF.hs Outdated Show resolved Hide resolved
MANUAL.txt Outdated Show resolved Hide resolved
changelog Outdated Show resolved Hide resolved
"-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
Copy link
Owner

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).

Copy link
Contributor Author

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.

@cormacrelf cormacrelf force-pushed the master branch 4 times, most recently from 4f3af3b to 5dd217c Compare March 5, 2019 06:45
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"`
@jgm
Copy link
Owner

jgm commented Mar 7, 2019

Excellent, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants