.gitignore untuk TeX

170 peraturan pengabaian untuk TeX, sedia untuk disalin ke repositori anda.

Sistem penetapan taip

.gitignore yang lengkap untuk TeX

# Dijana oleh LFGitignore - https://lfgitignore.com
# Dicipta: 2026-10-31 21:50:49 UTC
# Teknologi: TeX

### TeX ###
*.lof
*.lot
*.fls
*.toc
*.fmt
*.fot
# Fail log
*.log
*.cb
*.cb2
.*.lb
*.dvi
*.xdv
*-converted-to.*
*.aux
.pdf
*.bbl
*.bbl-SAVE-ERROR
# output boleh laksana generik
*.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*
# Fail sandaran
*.bak
*.sav
*.bak[0-9]*
.texpadtmp
*.lyx~
# Fail sandaran
*.backup
# Vim fail swap tersembunyi
.*.swp
*~[0-9]*
*.tps
./auto/*
*.el
*-tags.tex
*.sta
*.lpz
*.xwm

Apa yang sebenarnya diabaikan oleh peraturan TeX ini

Setiap corak di bawah disertakan dengan sebab ia perlu berada dalam .gitignore anda.

Umum

Corak Perkara yang diabaikan
*.lof Umum
*.lot Umum
*.fls Umum
*.toc Umum
*.fmt Umum
*.fot Umum
*.log Fail log
*.cb Umum
*.cb2 Umum
.*.lb Umum
*.dvi # Dokumen perantaraan:
*.xdv Umum
*-converted-to.* Umum
.pdf # Dijana jika rentetan kosong diberikan di "Sila taip nama fail lain untuk output:"
*.aux Umum
*.bbl # Fail tambahan bibliografi (bibtex/biblatex/biber):
*.bbl-SAVE-ERROR Umum
*.out output boleh laksana generik
*.bcf Umum
*.bcf-SAVE-ERROR Umum
*.blg Umum
*-blx.aux Umum
*-blx.bib Umum
*.run.xml Umum
*.fdb_latexmk # Bina fail tambahan alat:
*.synctex Umum
*.synctex(busy) Umum
*.synctex.gz Umum
*.synctex.gz(busy) Umum
*.pdfsync Umum
*.rubbercache Umum
rubber.cache Umum
latex.out/ # Bina direktori alat untuk fail tambahan lateksrun
*.alg # Fail tambahan dan perantaraan daripada pakej lain: algoritma
*.loa Umum
acs-*.bib achemso
*.thm amsthm
*.atfi attachfile2
*.nav beamer
*.pre Umum
*.snm Umum
*.vrb Umum
*.soc perubahan
*.loc Umum
*.cut komen
*.cpt cprotect
*.tuc konteks
*.spl elsarticle (kelas dokumen jurnal Elsevier)
*.tui Umum
*.ent endnotes
*.tuo Umum
*.lox fixme
*.mf feynmf/feynmp
*.mp Umum
*.t[1-9] Umum
*.t[1-9][0-9] Umum
*.tfm Umum
*.end (r)(e)ledmac/(r)(e)ledpar
*.?end Umum
*.[1-9] Umum
*.[1-9][0-9] Umum
*.[1-9][0-9][0-9] Umum
*.[1-9]R Umum
*.[1-9][0-9]R Umum
*.[1-9][0-9][0-9]R Umum
*.eledsec[1-9] Umum
*.eledsec[1-9]R Umum
*.eledsec[1-9][0-9] Umum
*.eledsec[1-9][0-9]R Umum
*.eledsec[1-9][0-9][0-9] Umum
*.eledsec[1-9][0-9][0-9]R Umum
*.acn glossaries
*.acr Umum
*.glg Umum
*.glg-abr Umum
*.glo Umum
*.glo-abr Umum
*.gls Umum
*.gls-abr Umum
*.glsdefs Umum
*.lzo Umum
*.lzs Umum
*.slg Umum
*.slo Umum
*.sls Umum
*.gnuplot gnuplot
*.table Umum
*-gnuplottex-* gnuplottex
*.gaux gregoriotex
*.glog Umum
*.gtex Umum
*.4ct htlatex
*.4tc Umum
*.idv Umum
*.lg Umum
*.trc Umum
*.xref Umum
*.hd hypdoc
*.brf hyperref
*-concordance.tex knitr
*-tikzDictionary TODO Nyahkomen baris seterusnya jika anda menggunakan knitr dan ingin mengabaikan fail tikz yang dihasilkannya *.tikz
*.lol listings
*.ltjruby luatexja-ruby
*.idx makeidx
*.ilg Umum
*.ind Umum
*.maf minitoc
*.mlf Umum
*.mlt Umum
*.mtc[0-9]* Umum
*.slf[0-9]* Umum
*.slt[0-9]* Umum
*.stc[0-9]* Umum
_minted* minted
*.data.minted Umum
*.pyg Umum
*.mw morewrites
*.newpax newpax
*.nlg nomencl
*.nlo Umum
*.nls Umum
*.pax pax
*.pdfpc pdfpcnotes
*.sagetex.sage sagetex
*.sagetex.py Umum
*.sagetex.scmd Umum
*.wrt scrwfile
*.spell.bad ejaan
*.spell.txt Umum
svg-inkscape/ svg
*.sout sympy
*.sympy Umum
sympy-plots-for-*.tex/ Umum
*.upa pdfcomment
*.upb Umum
*.pytxcode pythontex
pythontex-files-*/ Umum
*.listing tcolorbox
*.loe thmtools

TikZ & PGF

Corak Perkara yang diabaikan
*.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 matriks dan garis besar tersusun xypic
*.xyd TikZ & PGF
*.ttt endfloat
*.fff TikZ & PGF

Latexian

Corak Perkara yang diabaikan
TSWLatexianTemp* Latexian

WinEdt

Corak Perkara yang diabaikan
*.bak Fail sandaran
*.sav WinEdt
*.bak[0-9]* latexindent.pl

Texpad

Corak Perkara yang diabaikan
.texpadtmp Texpad

LyX

Corak Perkara yang diabaikan
*.lyx~ LyX

Kile

Corak Perkara yang diabaikan
*.backup Fail sandaran
.*.swp Vim fail swap tersembunyi

KBibTeX

Corak Perkara yang diabaikan
*~[0-9]* KBibTeX

TeXnicCenter

Corak Perkara yang diabaikan
*.tps TeXnicCenter
./auto/* folder auto apabila menggunakan emacs dan auctex
*.el TeXnicCenter
*-tags.tex rujukan ke hadapan expex dengan \gathertags
*.sta pakej kendiri

Fail log Makeindex

Corak Perkara yang diabaikan
*.lpz Fail log Makeindex
*.xwm pakej xwatermark

Bagaimana untuk menggunakan .gitignore ini untuk TeX

  1. Salin peraturan TeX di atas, atau muat turun fail terus.
  2. Cipta fail bernama .gitignore di akar repositori Git anda dan tampal peraturan ke dalamnya.
  3. Jika beberapa fail tersebut telah dijejaki, jalankan git rm -r --cached . kemudian komit semula — Git hanya menggunakan peraturan mengabaikan kepada fail yang tidak dijejaki.
  4. Masukkan .gitignore dalam commit supaya semua ahli pasukan berkongsi peraturan yang sama.

Templat alat .gitignore yang lain

Lihat setiap templat alat