Ludovic Frank Gitignore

.gitignore pour TeX

170 règles d’exclusion pour TeX, prêtes à copier dans votre dépôt.

Système de composition

Le .gitignore complet pour TeX

# Généré par LFGitignore - https://lfgitignore.com
# Créé le : 2026-11-03 18:11:14 UTC
# Technologies : TeX

### TeX ###
*.lof
*.lot
*.fls
*.toc
*.fmt
*.fot
# Fichier journal
*.log
*.cb
*.cb2
.*.lb
*.dvi
*.xdv
*-converted-to.*
*.aux
.pdf
*.bbl
*.bbl-SAVE-ERROR
# Exécutables génériques produits
*.out
*.bcf
*.bcf-SAVE-ERROR
*.blg
*-blx.aux
*-blx.bib
*.run.xml
*.fdb_latexmk
*.synctex
*.synctex(busy)
*.synctex.gz
*.synctex.gz(busy)
*.pdfsync
*.rubbercache
rubber.cache
latex.out/
*.alg
*.loa
acs-*.bib
*.thm
*.atfi
*.nav
*.pre
*.snm
*.vrb
*.soc
*.loc
*.cut
*.cpt
*.tuc
*.spl
*.tui
*.ent
*.tuo
*.lox
*.mf
*.mp
*.t[1-9]
*.t[1-9][0-9]
*.tfm
*.end
*.?end
*.[1-9]
*.[1-9][0-9]
*.[1-9][0-9][0-9]
*.[1-9]R
*.[1-9][0-9]R
*.[1-9][0-9][0-9]R
*.eledsec[1-9]
*.eledsec[1-9]R
*.eledsec[1-9][0-9]
*.eledsec[1-9][0-9]R
*.eledsec[1-9][0-9][0-9]
*.eledsec[1-9][0-9][0-9]R
*.acn
*.acr
*.glg
*.glg-abr
*.glo
*.glo-abr
*.gls
*.gls-abr
*.glsdefs
*.lzo
*.lzs
*.slg
*.slo
*.sls
*.gnuplot
*.table
*-gnuplottex-*
*.gaux
*.glog
*.gtex
*.4ct
*.4tc
*.idv
*.lg
*.trc
*.xref
*.hd
*.brf
*-concordance.tex
*-tikzDictionary
*.lol
*.ltjruby
*.idx
*.ilg
*.ind
*.maf
*.mlf
*.mlt
*.mtc[0-9]*
*.slf[0-9]*
*.slt[0-9]*
*.stc[0-9]*
_minted*
*.data.minted
*.pyg
*.mw
*.newpax
*.nlg
*.nlo
*.nls
*.pax
*.pdfpc
*.sagetex.sage
*.sagetex.py
*.sagetex.scmd
*.wrt
*.spell.bad
*.spell.txt
svg-inkscape/
*.sout
*.sympy
sympy-plots-for-*.tex/
*.upa
*.upb
*.pytxcode
pythontex-files-*/
*.listing
*.loe
*.dpth
*.md5
*.auxlock
*.ptc
*.tdo
*.hst
*.ver
*.lod
*.xcp
*.xmpi
*.xdy
*.xyc
*.xyd
*.ttt
*.fff
TSWLatexianTemp*
# Fichier de sauvegarde
*.bak
*.sav
*.bak[0-9]*
.texpadtmp
*.lyx~
# Fichier de sauvegarde
*.backup
# Fichier d’échange masqué Vim
.*.swp
*~[0-9]*
*.tps
./auto/*
*.el
*-tags.tex
*.sta
*.lpz
*.xwm

Ce que ces règles TeX ignorent vraiment

Chaque motif ci-dessous, et pourquoi il a sa place dans votre .gitignore.

Général

Motif Ce qu’il ignore
*.lof Général
*.lot Général
*.fls Général
*.toc Général
*.fmt Général
*.fot Général
*.log Fichier journal
*.cb Général
*.cb2 Général
.*.lb Général
*.dvi # Documents intermédiaires :
*.xdv Général
*-converted-to.* Général
.pdf # Généré si une chaîne vide est saisie à l’invite « Please type another file name for output: »
*.aux Général
*.bbl # Fichiers auxiliaires de bibliographie (bibtex/biblatex/biber) :
*.bbl-SAVE-ERROR Général
*.out Exécutables génériques produits
*.bcf Général
*.bcf-SAVE-ERROR Général
*.blg Général
*-blx.aux Général
*-blx.bib Général
*.run.xml Général
*.fdb_latexmk # Fichiers auxiliaires de l’outil de compilation :
*.synctex Général
*.synctex(busy) Général
*.synctex.gz Général
*.synctex.gz(busy) Général
*.pdfsync Général
*.rubbercache Général
rubber.cache Général
latex.out/ # Répertoires des fichiers auxiliaires de l’outil de compilation latexrun
*.alg # Fichiers auxiliaires et intermédiaires d’autres paquets : algorithms
*.loa Général
acs-*.bib achemso
*.thm amsthm
*.atfi attachfile2
*.nav beamer
*.pre Général
*.snm Général
*.vrb Général
*.soc Modifications
*.loc Général
*.cut Commentaire
*.cpt cprotect
*.tuc Contexte
*.spl elsarticle (classe de document des revues Elsevier)
*.tui Général
*.ent endnotes
*.tuo Général
*.lox fixme
*.mf feynmf/feynmp
*.mp Général
*.t[1-9] Général
*.t[1-9][0-9] Général
*.tfm Général
*.end (r)(e)ledmac/(r)(e)ledpar
*.?end Général
*.[1-9] Général
*.[1-9][0-9] Général
*.[1-9][0-9][0-9] Général
*.[1-9]R Général
*.[1-9][0-9]R Général
*.[1-9][0-9][0-9]R Général
*.eledsec[1-9] Général
*.eledsec[1-9]R Général
*.eledsec[1-9][0-9] Général
*.eledsec[1-9][0-9]R Général
*.eledsec[1-9][0-9][0-9] Général
*.eledsec[1-9][0-9][0-9]R Général
*.acn glossaries
*.acr Général
*.glg Général
*.glg-abr Général
*.glo Général
*.glo-abr Général
*.gls Général
*.gls-abr Général
*.glsdefs Général
*.lzo Général
*.lzs Général
*.slg Général
*.slo Général
*.sls Général
*.gnuplot gnuplot
*.table Général
*-gnuplottex-* gnuplottex
*.gaux gregoriotex
*.glog Général
*.gtex Général
*.4ct htlatex
*.4tc Général
*.idv Général
*.lg Général
*.trc Général
*.xref Général
*.hd hypdoc
*.brf hyperref
*-concordance.tex knitr
*-tikzDictionary À FAIRE : décommenter la ligne suivante si vous utilisez knitr et souhaitez ignorer ses fichiers tikz générés *.tikz
*.lol listings
*.ltjruby luatexja-ruby
*.idx makeidx
*.ilg Général
*.ind Général
*.maf minitoc
*.mlf Général
*.mlt Général
*.mtc[0-9]* Général
*.slf[0-9]* Général
*.slt[0-9]* Général
*.stc[0-9]* Général
_minted* minted
*.data.minted Général
*.pyg Général
*.mw morewrites
*.newpax newpax
*.nlg nomencl
*.nlo Général
*.nls Général
*.pax pax
*.pdfpc pdfpcnotes
*.sagetex.sage sagetex
*.sagetex.py Général
*.sagetex.scmd Général
*.wrt scrwfile
*.spell.bad Orthographe
*.spell.txt Général
svg-inkscape/ svg
*.sout sympy
*.sympy Général
sympy-plots-for-*.tex/ Général
*.upa pdfcomment
*.upb Général
*.pytxcode pythontex
pythontex-files-*/ Général
*.listing tcolorbox
*.loe thmtools

TikZ & PGF

Motif Ce qu’il ignore
*.dpth TikZ & PGF
*.md5 TikZ & PGF
*.auxlock TikZ & PGF
*.ptc titletoc
*.tdo todonotes
*.hst vhistory
*.ver TikZ & PGF
*.lod easy-todo
*.xcp xcolor
*.xmpi xmpincl
*.xdy xindy
*.xyc Matrices et contours précompilés xypic
*.xyd TikZ & PGF
*.ttt endfloat
*.fff TikZ & PGF

Latexian

Motif Ce qu’il ignore
TSWLatexianTemp* Latexian

WinEdt

Motif Ce qu’il ignore
*.bak Fichier de sauvegarde
*.sav WinEdt
*.bak[0-9]* latexindent.pl

Texpad

Motif Ce qu’il ignore
.texpadtmp Texpad

LyX

Motif Ce qu’il ignore
*.lyx~ LyX

Kile

Motif Ce qu’il ignore
*.backup Fichier de sauvegarde
.*.swp Fichier d’échange masqué Vim

KBibTeX

Motif Ce qu’il ignore
*~[0-9]* KBibTeX

TeXnicCenter

Motif Ce qu’il ignore
*.tps TeXnicCenter
./auto/* Dossier auto lors de l’utilisation d’Emacs et AUCTeX
*.el TeXnicCenter
*-tags.tex Références anticipées expex avec \gathertags
*.sta Paquets autonomes

Fichiers journaux Makeindex

Motif Ce qu’il ignore
*.lpz Fichiers journaux Makeindex
*.xwm Paquet xwatermark

Comment utiliser ce .gitignore pour TeX

  1. Copiez les règles TeX ci-dessus, ou téléchargez directement le fichier.
  2. Créez un fichier nommé .gitignore à la racine de votre dépôt Git et collez-y les règles.
  3. Si certains de ces fichiers sont déjà suivis, lancez git rm -r --cached . puis recommitez — Git n’applique les règles d’exclusion qu’aux fichiers non suivis.
  4. Commitez le .gitignore pour que toute l’équipe partage les mêmes règles.

Autres modèles .gitignore Outil

Voir tous les modèles Outil