Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


I use winedt. I prefer to only have .tex files, or just dvi, pdf files that I need. i don't need these other files. Anyone knows how to disable them? Coz too many files look really messy. Thank you. :)

There are several ways I can think of of achieving this, but maybe I haven't thought of the cleanest and easiest, and I want to have this question as a reference.

So what are the alternatives, and what drawbacks might they have? Any platform (Miktex, Texlive, etc.). Maybe nice to have one technique per answer

share|improve this question
Why community wiki? There doesn't seem to be a need. – dmckee Jan 14 '10 at 14:37
Because (i) it is not my question, I just copied it across from another site, and (ii) there are an awful lot of ways to solve this problem, because there are an awful lot of tex and latex build tools. I'm not going choose a right answer, except in the unlikely case that someone posts a good survey of all the tools. – Charles Stewart Jan 16 '10 at 12:51

There's a script out there called latexmk. It basically runs latex enough times to get cross-referencing correct, and when used with the -c option, it cleans up the auxiliary files. It's included in TeXLive.

share|improve this answer
A lot of people say good things about latexmk. Note though, that it doesn't try to handle non-Latex technologies: if you use Context, Xetex, or Eplain Tex, then it is not a whole lot of help. – Charles Stewart Jan 16 '10 at 12:53
there is no way to cleanup the files after a make without running it again.. :/ – vonhogen Jan 17 '10 at 18:45

I use make to build my latex documents (no, it is not as smart as latexmk, but it is installed on all the systems I encounter and all my colleagues have it, so I can distribute documents with a build system that way), and I always have clean and cleaner targets to remove stray latex droppings and editor backup files.

share|improve this answer
The most flexible, but one you will always be having to tweak. I mostly use this for Latex docs. – Charles Stewart Jan 16 '10 at 12:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .