On Sat, May 02, 2015 at 07:03:53PM -0400, Scott Kostyshak wrote: > > Attached is a patch. I have tested it and it works well for me. I'm > not sure about one part of the implementation. I have > Converters::runLaTeX() check the buffer member storing whether there > was an error, and if so it calls LaTeX::deleteFilesOnError(). I'm > wondering if it would make more sense to have LaTeX check the buffer > variable (and thus I would not have to make > LaTeX::deleteFilesOnError() public), but in LaTeX there is currently > no access to the buffer. > > An alternative would be to add a parameter to LaTeX::LaTeX() that says > whether to do a fresh compile.
This alternative seems the most logical one to me. Add a bool parameter (clean_start or similar) which is false by default to tell the constructor to start afresh by removing previous leftovers. -- Enrico