Skip to content

Instantly share code, notes, and snippets.

@kogakure
Last active December 17, 2023 08:21
Show Gist options
  • Save kogakure/149016 to your computer and use it in GitHub Desktop.
Save kogakure/149016 to your computer and use it in GitHub Desktop.
Git: .gitignore file for LaTeX projects
*.acn
*.acr
*.alg
*.aux
*.bak
*.bbl
*.bcf
*.blg
*.brf
*.bst
*.dvi
*.fdb_latexmk
*.fls
*.glg
*.glo
*.gls
*.idx
*.ilg
*.ind
*.ist
*.lof
*.log
*.lol
*.lot
*.maf
*.mtc
*.mtc1
*.nav
*.nlo
*.nls
*.out
*.pdf
*.pyg
*.run.xml
*.snm
*.synctex.gz
*.tex.backup
*.tex~
*.thm
*.toc
*.vrb
*.xdy
*.xml
*blx.bib
.bak
.mtc
build/
@cadoiz
Copy link

cadoiz commented Aug 18, 2020

Maybe also .out.ps?

@ArmelZy
Copy link

ArmelZy commented Jan 16, 2021

For those who use JetBrains and TeXiFy-IDEA plugin.
Create MyLatexProject/.gitignore and copy/paste this content instead:
/out/.aux
/out/
.glo
/out/.idx
/out/
.log
/out/.toc
/out/
.ist
/out/.acn
/out/
.acr
/out/.alg
/out/
.bbl
/out/.blg
/out/
.dvi
/out/.glg
/out/
.gls
/out/.ilg
/out/
.ind
/out/.lof
/out/
.lot
/out/.maf
/out/
.mtc
/out/.mtc1
/out/
.out
/out/*.synctex.gz

@olvegam
Copy link

olvegam commented Sep 5, 2022

¡great! Very useful.

¿someone have them classified by use or tool that generates those files?

Thanks in advance.

@linden-yuan
Copy link

Can you add *.brf (for backreferences)?

@kogakure
Copy link
Author

I’ve added most suffixes suggested here to the list and sorted it alphabetical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment