Customizing Texmaker

I use LaTeX a lot but I find quite obnoxious all the crappy files it leaves behind when you compile: .aux, .log...

Fortunately TeXMaker has the option "clean" that deletes all of these.

However, I don't like having to remember to click on it every time I'm going to close a document, ie I'd like a button that both closes a document and cleans all that stuff.

Any hint as how to do it? I suppose if I knew how to access the program code I'd be able to do it as I'd just have to put together two options that already exist.

Thanks

2 Answers

You can go to the menu:

Options → Configure → QuickBuild → User and define there (in User) the actions that you want by specifying the command pipeline.

For example, I have the following pipeline:

latex -interaction=nonstopmode %.tex | bibtex %.aux | bibtex %.aux | bibtex %.aux | 
latex -interaction=nonstopmode %.tex | latex -interaction=nonstopmode %.tex | 
dvipdf %.dvi | rm %.aux %.bbl %.blg %.dvi %.log %.out %.toc

Note that at the end of the pipe, I removed files specifying them by their extension (.toc, .aux, etc)

Hope it helps.

1

Finally, what worked best for me was to compile TexMaker from source merging the methods to clean and to close. So any time I close a file the auxiliary files are removed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest