.gitignore para TeX

170 regras de exclusão para TeX, prontas a copiar para o seu repositório.

Sistema de composição tipográfica

O .gitignore completo para TeX

# Gerado pelo LFGitignore - https://lfgitignore.com
# Criado: 2026-10-13 15:57:35 UTC
# Tecnologias: TeX

### TeX ###
*.lof
*.lot
*.fls
*.toc
*.fmt
*.fot
# Ficheiro de registo
*.log
*.cb
*.cb2
.*.lb
*.dvi
*.xdv
*-converted-to.*
*.aux
.pdf
*.bbl
*.bbl-SAVE-ERROR
# Resultados executáveis genéricos
*.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*
# Ficheiro de cópia de segurança
*.bak
*.sav
*.bak[0-9]*
.texpadtmp
*.lyx~
# Ficheiro de cópia de segurança
*.backup
# Ficheiro de troca oculto do Vim
.*.swp
*~[0-9]*
*.tps
./auto/*
*.el
*-tags.tex
*.sta
*.lpz
*.xwm

O que estas regras de TeX ignoram

Veja abaixo cada padrão e a razão para o incluir no seu .gitignore.

Geral

Padrão O que ignora
*.lof Geral
*.lot Geral
*.fls Geral
*.toc Geral
*.fmt Geral
*.fot Geral
*.log Ficheiro de registo
*.cb Geral
*.cb2 Geral
.*.lb Geral
*.dvi # Documentos intermédios:
*.xdv Geral
*-converted-to.* Geral
.pdf # Gerado quando é fornecida uma cadeia vazia em "Please type another file name for output:"
*.aux Geral
*.bbl # Ficheiros auxiliares de bibliografia (bibtex/biblatex/biber):
*.bbl-SAVE-ERROR Geral
*.out Resultados executáveis genéricos
*.bcf Geral
*.bcf-SAVE-ERROR Geral
*.blg Geral
*-blx.aux Geral
*-blx.bib Geral
*.run.xml Geral
*.fdb_latexmk # Ficheiros auxiliares das ferramentas de compilação:
*.synctex Geral
*.synctex(busy) Geral
*.synctex.gz Geral
*.synctex.gz(busy) Geral
*.pdfsync Geral
*.rubbercache Geral
rubber.cache Geral
latex.out/ # Diretórios de ficheiros auxiliares da ferramenta latexrun
*.alg # Ficheiros auxiliares e intermédios de outros pacotes: algorithms
*.loa Geral
acs-*.bib achemso
*.thm amsthm
*.atfi attachfile2
*.nav beamer
*.pre Geral
*.snm Geral
*.vrb Geral
*.soc changes
*.loc Geral
*.cut comment
*.cpt cprotect
*.tuc context
*.spl elsarticle (classe de documento das revistas Elsevier)
*.tui Geral
*.ent endnotes
*.tuo Geral
*.lox fixme
*.mf feynmf/feynmp
*.mp Geral
*.t[1-9] Geral
*.t[1-9][0-9] Geral
*.tfm Geral
*.end (r)(e)ledmac/(r)(e)ledpar
*.?end Geral
*.[1-9] Geral
*.[1-9][0-9] Geral
*.[1-9][0-9][0-9] Geral
*.[1-9]R Geral
*.[1-9][0-9]R Geral
*.[1-9][0-9][0-9]R Geral
*.eledsec[1-9] Geral
*.eledsec[1-9]R Geral
*.eledsec[1-9][0-9] Geral
*.eledsec[1-9][0-9]R Geral
*.eledsec[1-9][0-9][0-9] Geral
*.eledsec[1-9][0-9][0-9]R Geral
*.acn glossaries
*.acr Geral
*.glg Geral
*.glg-abr Geral
*.glo Geral
*.glo-abr Geral
*.gls Geral
*.gls-abr Geral
*.glsdefs Geral
*.lzo Geral
*.lzs Geral
*.slg Geral
*.slo Geral
*.sls Geral
*.gnuplot gnuplot
*.table Geral
*-gnuplottex-* gnuplottex
*.gaux gregoriotex
*.glog Geral
*.gtex Geral
*.4ct htlatex
*.4tc Geral
*.idv Geral
*.lg Geral
*.trc Geral
*.xref Geral
*.hd hypdoc
*.brf hyperref
*-concordance.tex knitr
*-tikzDictionary A FAZER: remova o comentário da linha seguinte se utilizar knitr e pretender ignorar os ficheiros tikz gerados *.tikz
*.lol listings
*.ltjruby luatexja-ruby
*.idx makeidx
*.ilg Geral
*.ind Geral
*.maf minitoc
*.mlf Geral
*.mlt Geral
*.mtc[0-9]* Geral
*.slf[0-9]* Geral
*.slt[0-9]* Geral
*.stc[0-9]* Geral
_minted* minted
*.data.minted Geral
*.pyg Geral
*.mw morewrites
*.newpax newpax
*.nlg nomencl
*.nlo Geral
*.nls Geral
*.pax pax
*.pdfpc pdfpcnotes
*.sagetex.sage sagetex
*.sagetex.py Geral
*.sagetex.scmd Geral
*.wrt scrwfile
*.spell.bad Verificação ortográfica
*.spell.txt Geral
svg-inkscape/ svg
*.sout sympy
*.sympy Geral
sympy-plots-for-*.tex/ Geral
*.upa pdfcomment
*.upb Geral
*.pytxcode pythontex
pythontex-files-*/ Geral
*.listing tcolorbox
*.loe thmtools

TikZ & PGF

Padrão O que ignora
*.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 Matrizes e contornos pré-compilados do xypic
*.xyd TikZ & PGF
*.ttt endfloat
*.fff TikZ & PGF

Latexian

Padrão O que ignora
TSWLatexianTemp* Latexian

WinEdt

Padrão O que ignora
*.bak Ficheiro de cópia de segurança
*.sav WinEdt
*.bak[0-9]* latexindent.pl

Texpad

Padrão O que ignora
.texpadtmp Texpad

LyX

Padrão O que ignora
*.lyx~ LyX

Kile

Padrão O que ignora
*.backup Ficheiro de cópia de segurança
.*.swp Ficheiro de troca oculto do Vim

KBibTeX

Padrão O que ignora
*~[0-9]* KBibTeX

TeXnicCenter

Padrão O que ignora
*.tps TeXnicCenter
./auto/* Pasta automática ao utilizar emacs e auctex
*.el TeXnicCenter
*-tags.tex Referências futuras do expex com \gathertags
*.sta Pacotes autónomos

Ficheiros de registo do Makeindex

Padrão O que ignora
*.lpz Ficheiros de registo do Makeindex
*.xwm Pacote xwatermark

Como utilizar este .gitignore para TeX

  1. Copie as regras de TeX acima ou descarregue o ficheiro diretamente.
  2. Crie um ficheiro com o nome .gitignore na raiz do seu repositório Git e cole nele as regras.
  3. Se o Git já acompanhar alguns desses ficheiros, execute git rm -r --cached . e faça um novo commit: o Git só aplica regras de exclusão aos ficheiros que ainda não acompanha.
  4. Faça commit do .gitignore para que toda a equipa utilize as mesmas regras.

Outros modelos .gitignore de Ferramenta

Ver todos os modelos de Ferramenta