Latex-workshop: Disable pdflatex.fls file gerneration

Created on 12 Jul 2017  路  3Comments  路  Source: James-Yu/LaTeX-Workshop

When working with large tex file, the building time is often longer than the interval of hitting ctrl-s. It seems that every time I hit ctrl-s while last build hasn't finish yet, latexmk will generate a pdflatex**.fls file. After a while, my dir accumulates a large amount of such files.

How do I disable the pdflatex.fls file generation. I highly suggest disable this feature in default setting.

Most helpful comment

Where exactly would I add this command to implement this workaround?

All 3 comments

This is a latexmk issue. We do not develop that.

Though there is a simple workaround. You can add a new step in your toolchain, which executes rm pdflatex*.fls (in linux) after all latex-related command. So the extension will execute this command after latexmk, which deletes all matching files.

Where exactly would I add this command to implement this workaround?

You could write a bash script to compile your .tex files. In this case, simply add rm pdflatex*.fls e.g.

latexmk -pdf
rm pdflatex*.fls
Was this page helpful?
0 / 5 - 0 ratings

Related issues

TiemenSch picture TiemenSch  路  6Comments

mdrozdo picture mdrozdo  路  4Comments

s-ilic picture s-ilic  路  3Comments

kookma picture kookma  路  4Comments

jlelong picture jlelong  路  4Comments