TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. 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

Version: Kile 2.1 OS: Windows 7 SP1

I wanted to delete the files that Kile generates at the time it creates a .pdf file from a given .tex file. I can easily compile a program into a .exe file (say using python) to delete all the files from the folder which don't have the extensions I need (I want to keep the .tex, .pdf files, but I haven't found a use for the files having .log .tex~ and other similar extensions).

Is there a way to assign a shortcut or maybe a button in Kile to call that kind of a .exe file?

share|improve this question
But the other files are necessary too. See e.g. Prevent pdflatex from writing a bunch of files. or What files are used in the TeX world?. – Tobi May 13 '12 at 23:04
up vote 6 down vote accepted

In my Kile version (2.1.0) I do have a "Settings" Menu which has a "Configure Kile" entry. Then I can configure "Build" and "Tools" execute any program I like. In fact, I have it configured to use either latexmk or my Makefile. You can even add buttons to the quick menu.

enter image description here

share|improve this answer
Thank you very much! – Shashank Sawant May 14 '12 at 0:06
@FrederickNord May I ask which command you use(d) to configure your latexmk entry? Would a simple latexmk -pdf %.tex (as seen elsewhere in TeX.SE) be enough? – Nikos Alexandris Oct 9 '12 at 21:45
@FrederickNord ...or maybe similar to latexmk -bibtex ... (taken from tex.stackexchange.com/a/11239/8272)? – Nikos Alexandris Oct 9 '12 at 22:35
@FrederickNord Complete your answer by showing your configuration for the command. I cannot get it invoke just make without any options. – user877329 Feb 2 '15 at 11:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.