.gitignore per TeX
170 regole di esclusione per TeX, pronte da copiare nel repository.
Sistema di composizione tipografica
Il .gitignore completo per TeX
# Generato da LFGitignore - https://lfgitignore.com
# Creato: 2026-10-13 15:58:02 UTC
# Tecnologie: TeX
### TeX ###
*.lof
*.lot
*.fls
*.toc
*.fmt
*.fot
# File di log
*.log
*.cb
*.cb2
.*.lb
*.dvi
*.xdv
*-converted-to.*
*.aux
.pdf
*.bbl
*.bbl-SAVE-ERROR
# Eseguibili generici prodotti
*.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*
# File di backup
*.bak
*.sav
*.bak[0-9]*
.texpadtmp
*.lyx~
# File di backup
*.backup
# File di scambio nascosto di Vim
.*.swp
*~[0-9]*
*.tps
./auto/*
*.el
*-tags.tex
*.sta
*.lpz
*.xwm
Cosa escludono le regole di TeX
Tutti i pattern e i motivi per includerli nel tuo .gitignore.
Generale
| Schema di esclusione | Cosa esclude |
|---|---|
*.lof |
Generale |
*.lot |
Generale |
*.fls |
Generale |
*.toc |
Generale |
*.fmt |
Generale |
*.fot |
Generale |
*.log |
File di log |
*.cb |
Generale |
*.cb2 |
Generale |
.*.lb |
Generale |
*.dvi |
# Documenti intermedi: |
*.xdv |
Generale |
*-converted-to.* |
Generale |
.pdf |
# Generato se si inserisce una stringa vuota alla richiesta «Please type another file name for output:» |
*.aux |
Generale |
*.bbl |
# File ausiliari della bibliografia (bibtex/biblatex/biber): |
*.bbl-SAVE-ERROR |
Generale |
*.out |
Eseguibili generici prodotti |
*.bcf |
Generale |
*.bcf-SAVE-ERROR |
Generale |
*.blg |
Generale |
*-blx.aux |
Generale |
*-blx.bib |
Generale |
*.run.xml |
Generale |
*.fdb_latexmk |
# File ausiliari degli strumenti di compilazione: |
*.synctex |
Generale |
*.synctex(busy) |
Generale |
*.synctex.gz |
Generale |
*.synctex.gz(busy) |
Generale |
*.pdfsync |
Generale |
*.rubbercache |
Generale |
rubber.cache |
Generale |
latex.out/ |
# Directory ausiliarie dello strumento di compilazione latexrun |
*.alg |
# File ausiliari e intermedi di altri pacchetti: algorithms |
*.loa |
Generale |
acs-*.bib |
achemso |
*.thm |
amsthm |
*.atfi |
attachfile2 |
*.nav |
beamer |
*.pre |
Generale |
*.snm |
Generale |
*.vrb |
Generale |
*.soc |
changes |
*.loc |
Generale |
*.cut |
comment |
*.cpt |
cprotect |
*.tuc |
context |
*.spl |
elsarticle (classe di documento delle riviste Elsevier) |
*.tui |
Generale |
*.ent |
endnotes |
*.tuo |
Generale |
*.lox |
fixme |
*.mf |
feynmf/feynmp |
*.mp |
Generale |
*.t[1-9] |
Generale |
*.t[1-9][0-9] |
Generale |
*.tfm |
Generale |
*.end |
(r)(e)ledmac/(r)(e)ledpar |
*.?end |
Generale |
*.[1-9] |
Generale |
*.[1-9][0-9] |
Generale |
*.[1-9][0-9][0-9] |
Generale |
*.[1-9]R |
Generale |
*.[1-9][0-9]R |
Generale |
*.[1-9][0-9][0-9]R |
Generale |
*.eledsec[1-9] |
Generale |
*.eledsec[1-9]R |
Generale |
*.eledsec[1-9][0-9] |
Generale |
*.eledsec[1-9][0-9]R |
Generale |
*.eledsec[1-9][0-9][0-9] |
Generale |
*.eledsec[1-9][0-9][0-9]R |
Generale |
*.acn |
glossaries |
*.acr |
Generale |
*.glg |
Generale |
*.glg-abr |
Generale |
*.glo |
Generale |
*.glo-abr |
Generale |
*.gls |
Generale |
*.gls-abr |
Generale |
*.glsdefs |
Generale |
*.lzo |
Generale |
*.lzs |
Generale |
*.slg |
Generale |
*.slo |
Generale |
*.sls |
Generale |
*.gnuplot |
gnuplot |
*.table |
Generale |
*-gnuplottex-* |
gnuplottex |
*.gaux |
gregoriotex |
*.glog |
Generale |
*.gtex |
Generale |
*.4ct |
htlatex |
*.4tc |
Generale |
*.idv |
Generale |
*.lg |
Generale |
*.trc |
Generale |
*.xref |
Generale |
*.hd |
hypdoc |
*.brf |
hyperref |
*-concordance.tex |
knitr |
*-tikzDictionary |
TODO Decommenta la riga seguente se usi knitr e vuoi ignorare i file tikz generati: *.tikz |
*.lol |
listings |
*.ltjruby |
luatexja-ruby |
*.idx |
makeidx |
*.ilg |
Generale |
*.ind |
Generale |
*.maf |
minitoc |
*.mlf |
Generale |
*.mlt |
Generale |
*.mtc[0-9]* |
Generale |
*.slf[0-9]* |
Generale |
*.slt[0-9]* |
Generale |
*.stc[0-9]* |
Generale |
_minted* |
minted |
*.data.minted |
Generale |
*.pyg |
Generale |
*.mw |
morewrites |
*.newpax |
newpax |
*.nlg |
nomencl |
*.nlo |
Generale |
*.nls |
Generale |
*.pax |
pax |
*.pdfpc |
pdfpcnotes |
*.sagetex.sage |
sagetex |
*.sagetex.py |
Generale |
*.sagetex.scmd |
Generale |
*.wrt |
scrwfile |
*.spell.bad |
spelling |
*.spell.txt |
Generale |
svg-inkscape/ |
svg |
*.sout |
sympy |
*.sympy |
Generale |
sympy-plots-for-*.tex/ |
Generale |
*.upa |
pdfcomment |
*.upb |
Generale |
*.pytxcode |
pythontex |
pythontex-files-*/ |
Generale |
*.listing |
tcolorbox |
*.loe |
thmtools |
TikZ & PGF
| Schema di esclusione | Cosa esclude |
|---|---|
*.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 |
Matrici e contorni precompilati di xypic |
*.xyd |
TikZ & PGF |
*.ttt |
endfloat |
*.fff |
TikZ & PGF |
Latexian
| Schema di esclusione | Cosa esclude |
|---|---|
TSWLatexianTemp* |
Latexian |
WinEdt
| Schema di esclusione | Cosa esclude |
|---|---|
*.bak |
File di backup |
*.sav |
WinEdt |
*.bak[0-9]* |
latexindent.pl |
Texpad
| Schema di esclusione | Cosa esclude |
|---|---|
.texpadtmp |
Texpad |
LyX
| Schema di esclusione | Cosa esclude |
|---|---|
*.lyx~ |
LyX |
Kile
| Schema di esclusione | Cosa esclude |
|---|---|
*.backup |
File di backup |
.*.swp |
File di scambio nascosto di Vim |
KBibTeX
| Schema di esclusione | Cosa esclude |
|---|---|
*~[0-9]* |
KBibTeX |
TeXnicCenter
| Schema di esclusione | Cosa esclude |
|---|---|
*.tps |
TeXnicCenter |
./auto/* |
Cartella auto quando si usano Emacs e AUCTeX |
*.el |
TeXnicCenter |
*-tags.tex |
Riferimenti in avanti di expex con \gathertags |
*.sta |
Pacchetti autonomi |
File di log di Makeindex
| Schema di esclusione | Cosa esclude |
|---|---|
*.lpz |
File di log di Makeindex |
*.xwm |
Pacchetto xwatermark |
Come usare questo .gitignore per TeX
- Copia le regole di TeX qui sopra oppure scarica direttamente il file.
- Crea un file chiamato .gitignore nella radice del repository Git e incolla le regole al suo interno.
- Se Git tiene già traccia di alcuni di questi file, esegui git rm -r --cached . e crea un nuovo commit: Git applica le regole di esclusione solo ai file non tracciati.
- Includi .gitignore in un commit affinché tutto il team condivida le stesse regole.