Kattis / problemtools

Tools to manage problem packages using the Kattis problem package format.
MIT License
105 stars 72 forks source link

verifyproblem creates data/sample/1.interaction.pstmp for interactive problems #136

Closed simonlindholm closed 4 years ago

thorehusfeldt commented 4 years ago

My guess is that this happens here:

https://github.com/Kattis/problemtools/blob/063b68a98237773a11555c14fd2da07a25f68860/problemtools/templates/latex/problemset.cls#L375

As far as I know, LaTeX can’t remove files, at least not easily, so it would be somebody else’s responsibility to remove the temporary file in data/sample/*.pstmp.

I’m not sure what is a good place for that task. problem2pdf.__exit__() ?

austrin commented 4 years ago

My plan is to fix it by using a more standard latex tempfile name, something of the form <name-of-main-tex-file>.<something>.