aclements / latexrun

A 21st century LaTeX wrapper
MIT License
616 stars 65 forks source link

Add switch for deleting directory for intermediate files and control database on successful compilation #32

Closed apuignav closed 8 years ago

apuignav commented 8 years ago

While the --clean-all switch is provided, it would be a great idea to offer the possibility of removing the latex.out (or whatever name) directory after a successful compilation, ie, with no errors.

Currently --clean-all also deletes the output file, so there is no way to actually only remove temporary files, AFAIK. I want to open this issue to discuss the topic, I can implement whatever we decide myself an open a PR.

janwirth commented 8 years ago

Not sure if this should be in the scope of this library. Would be useful though but the usecase for a single clean compilation would be a build system or something alike, right? In this case it's trivial to just add a line you makefile or whatever tool you use.

aclements commented 8 years ago

I guess I'm not sure what the motivation for this would be. Are you removing latex.out because you're about to submit your paper and know that you'll never ever want to build it again? :) It's also quite easy to remove the temporary files: rm -rf latex.out. This is one of the reasons I put them in a directory.

janwirth commented 8 years ago

+1 the directory makes this entire thing quite handy already :)

apuignav commented 8 years ago

OK! The use case is basically when you finalize a project, have a switch to directly clean things up, but you've convinced me. I'm self-closing :-)