This is a patch that allows specifying the work dir where the latex command is run. It also allows specifying that the workdir should not be removed, and the base where the work dir is created
Why? I use latexmk for generating pdf, which does not run again if the tex source is unchanged. I specify a fixed workdir for each resource (the url path for the corresponding resource), and this way the pdf is cached. This can save a lot of cpu.
The new options are:
basedir a string or a path specifying the base dir
workdir a lambda for computing the work dir
preservework a boolean specifying whether the workdir should be preserved
Hi There,
This is a patch that allows specifying the work dir where the latex command is run. It also allows specifying that the workdir should not be removed, and the base where the work dir is created
Why? I use
latexmk
for generating pdf, which does not run again if thetex
source is unchanged. I specify a fixed workdir for each resource (the url path for the corresponding resource), and this way the pdf is cached. This can save a lot of cpu.The new options are:
basedir
a string or a path specifying the base dirworkdir
a lambda for computing the work dirpreservework
a boolean specifying whether the workdir should be preserved