In addition to the .tex
and .dvi
or .pdf
files, TeX/LaTeX/ConTeXt produces and uses lots of other files. What do they do? Which ones are used to create the document and which ones are automatically created by the compiler. What files can I safely delete?
[Tex/LaTex] File extensions related to LaTeX, etc
auxiliary-filescontexttex-general
Best Answer
.fd
= Font definition; used in generating the output..bst
= BibTeX Style File (e.g., a certain journal's preferred Bibliography layout settings); used by BibTeX when generating the bibliography..aux
= LaTeX auxiliary file; created when LaTeX is run, these contain information LaTeX records which is then used by either BibTeX or LaTeX itself on later runs (e.g., about cross-references), and can contain other things as well. This file is created by running LaTeX but also used the next time LaTeX is run. It can be deleted, but then you may need to run multiple times in the future to regenerate it..bbl
= Bibliography; this is what is outputted by BibTeX for insertion into LaTeX the next time LaTeX is run..blg
= Bibliography (BibTeX) log -- just like.log
but for BibTeX; generated by BibTeX and can be safely deleted if there's no need to check it for errors..brf
= BackReference file for the backref package, I think. I'm not very familiar with these, but I suspect they're created by LaTeX when a file using that package is compiled..cls
= Documentclass (like article, or report - if you have them cluttering up your folders, you must use a lot of custom classes for individual journals or universities, etc.) This is obviously used to generate the output..dtx
= Documented source file; can be used to generate a LaTeX package or other file along with its associated documentation.Of these,
.aux
and.blg
can be safely deleted. Probably.bbl
too if you don't mind rerunning BibTeX and have access to the.bib
files needed. The rest should not be deleted but maybe moved somewhere more appropriate. In particular.fd
,.cls
, and.dtx
are better taking up space on a (personal) TeX tree, not in the folder of the document you're working on.