TeXworks / texworks

Main codebase for TeXworks, a simple interface for working with TeX documents
https://tug.org/texworks/
GNU General Public License v2.0
694 stars 127 forks source link

Enchancement: better cleaning of aux (and other) files #539

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
At the moment, TeXworks does only clean aux, log, and out files, and it has to 
be manual.

1) Would it be possible to have the possibility to add new file types to the 
list? In particular, it's tedious to have to remove synctex.gz files manually 
after every work session.

2) Could this cleaning be made automatically when TeXworks quits? I've seen 
this behavior on other TeX editors, it's very convenient.

Thanks for your attention.

Original issue reported on code.google.com by informat...@thibaut-cousin.net on 23 Sep 2011 at 2:54

GoogleCodeExporter commented 9 years ago
You can edit texworks-config.txt file and add new types to the list.

I did it to add some beamer auxiliary files which are missing.

On windows is under C:\Documents and settings\username\texworks\configuration.

Original comment by nign...@gmail.com on 24 Sep 2011 at 8:58

GoogleCodeExporter commented 9 years ago
Thank you. :) On Mac OS, the file is in ~/Library/TeXworks/configuration.

I edited it to remove the .synctex.gz file as well. Until it can be made 
automatic, this will do nicely.

Original comment by informat...@thibaut-cousin.net on 25 Sep 2011 at 8:17

GoogleCodeExporter commented 9 years ago
I have modified the latexErrors script, such that it suggests the user to 
remove aux files when the error "File ended while scanning use of ..." is 
detected.

The script is available at

https://github.com/henrikmidtiby/autocompleteForTexworks/blob/master/scripts/Hoo
ks/latexErrors.js

Original comment by henrikmidtiby@gmail.com on 15 Nov 2011 at 12:31

GoogleCodeExporter commented 9 years ago
I am editing a large project with many source files. Each chapter is \inputed 
from its own subfolder and then it itself pulls in additional .tex files from 
its folder. 

When the remove .aux files script is run, it only finds the files in the main 
directory, but does not eliminate those generated in the subdirectories where 
the chapter files reside.

Is there some way of getting that menu option to scan all the subfolders?

Original comment by ignacy.s...@gmail.com on 16 Dec 2013 at 5:49