Instantly share code, notes, and snippets.

Embed
What would you like to do?
Git: .gitignore file for LaTeX projects
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl
*.blg
*.dvi
*.glg
*.gls
*.ilg
*.ind
*.lof
*.lot
*.maf
*.mtc
*.mtc1
*.out
*.synctex.gz
@cflewis

This comment has been minimized.

Show comment
Hide comment
@cflewis

cflewis Jun 24, 2010

Excellent! Thanks for this!

I might consider adding '*.synctex.gz'.

cflewis commented Jun 24, 2010

Excellent! Thanks for this!

I might consider adding '*.synctex.gz'.

@kogakure

This comment has been minimized.

Show comment
Hide comment
@kogakure

kogakure Jun 25, 2010

Thank you! Good idea, I added it.

Owner

kogakure commented Jun 25, 2010

Thank you! Good idea, I added it.

@quantumelixir

This comment has been minimized.

Show comment
Hide comment
@quantumelixir

quantumelixir Aug 2, 2010

Why not use this instead:

$ cat .gitignore
*
!myfile.tex

quantumelixir commented Aug 2, 2010

Why not use this instead:

$ cat .gitignore
*
!myfile.tex
@cflewis

This comment has been minimized.

Show comment
Hide comment
@cflewis

cflewis Aug 2, 2010

Because it's decently rare that a .tex file exists by itself, there's BibTeX files, figures, usually some sort of misc notes you want (I even have a rake file using rake-latex from Oxford Uni).

All that said, if you really do have a .tex file in isolation, that's a good solution :)

cflewis commented Aug 2, 2010

Because it's decently rare that a .tex file exists by itself, there's BibTeX files, figures, usually some sort of misc notes you want (I even have a rake file using rake-latex from Oxford Uni).

All that said, if you really do have a .tex file in isolation, that's a good solution :)

@bilderbuchi

This comment has been minimized.

Show comment
Hide comment
@bilderbuchi

bilderbuchi Sep 15, 2010

excellent, just what i need! thanks.

bilderbuchi commented Sep 15, 2010

excellent, just what i need! thanks.

@rbochet

This comment has been minimized.

Show comment
Hide comment
@rbochet

rbochet Mar 16, 2011

Thank you for this great file !
I forked it for Mac users : https://gist.github.com/871983

rbochet commented Mar 16, 2011

Thank you for this great file !
I forked it for Mac users : https://gist.github.com/871983

@welldan97

This comment has been minimized.

Show comment
Hide comment
@welldan97

welldan97 Jun 13, 2011

Cool! Thank you!

welldan97 commented Jun 13, 2011

Cool! Thank you!

@jberger

This comment has been minimized.

Show comment
Hide comment
@jberger

jberger Jun 17, 2011

If using latexmk to manage the compile process, add *.fdb_latexmk

jberger commented Jun 17, 2011

If using latexmk to manage the compile process, add *.fdb_latexmk

@Gecko136

This comment has been minimized.

Show comment
Hide comment
@Gecko136

Gecko136 Jan 23, 2012

I added *#* to my list to not track the emacs backup files.

Gecko136 commented Jan 23, 2012

I added *#* to my list to not track the emacs backup files.

@aramk

This comment has been minimized.

Show comment
Hide comment
@aramk

aramk Jul 1, 2012

I added *.pdf since this is an output file and not a source file. The same could apply to *.dvi.

aramk commented Jul 1, 2012

I added *.pdf since this is an output file and not a source file. The same could apply to *.dvi.

@luisibanez

This comment has been minimized.

Show comment
Hide comment
@luisibanez

luisibanez Aug 26, 2012

Thanks !, very useful.

luisibanez commented Aug 26, 2012

Thanks !, very useful.

@TKAB

This comment has been minimized.

Show comment
Hide comment
@TKAB

TKAB Sep 9, 2012

if using the pagebackref option of the hyperref package you also get a *.brf file.

TKAB commented Sep 9, 2012

if using the pagebackref option of the hyperref package you also get a *.brf file.

@jaseemabid

This comment has been minimized.

Show comment
Hide comment
@jaseemabid

jaseemabid Sep 26, 2012

I would sort it alphabetically :) Good one!

jaseemabid commented Sep 26, 2012

I would sort it alphabetically :) Good one!

@restrepo

This comment has been minimized.

Show comment
Hide comment
@restrepo

restrepo Nov 23, 2012

While for AUCTeX you also get files like:
region.*
prv__.fmt
prv__.log

restrepo commented Nov 23, 2012

While for AUCTeX you also get files like:
region.*
prv__.fmt
prv__.log

@agravier

This comment has been minimized.

Show comment
Hide comment
@agravier

agravier Apr 7, 2013

Thank you Stefan, this is nice and useful. You may also want to include *.lol (List of Listings), produced by the listings package.

agravier commented Apr 7, 2013

Thank you Stefan, this is nice and useful. You may also want to include *.lol (List of Listings), produced by the listings package.

@ernie-cordell

This comment has been minimized.

Show comment
Hide comment
@ernie-cordell

ernie-cordell Jun 14, 2013

Thank You, indeed. My "manuscript" got rather large and manually tracking changes piecemeal got unmanageable, thankfully I opted way back then to compose it in \LaTeX so now that I've been able to regenerate it from ancient source, I'll be able to track it, too.

ernie-cordell commented Jun 14, 2013

Thank You, indeed. My "manuscript" got rather large and manually tracking changes piecemeal got unmanageable, thankfully I opted way back then to compose it in \LaTeX so now that I've been able to regenerate it from ancient source, I'll be able to track it, too.

@dr0bz

This comment has been minimized.

Show comment
Hide comment
@dr0bz

dr0bz Jun 21, 2013

Just what i was looking for, great! What about adding *.pdf? And for TexMaker users

*.bak
build/

is useful also.

dr0bz commented Jun 21, 2013

Just what i was looking for, great! What about adding *.pdf? And for TexMaker users

*.bak
build/

is useful also.

@clemenskroell

This comment has been minimized.

Show comment
Hide comment
@clemenskroell

clemenskroell Aug 29, 2013

nice. thanks!

clemenskroell commented Aug 29, 2013

nice. thanks!

@nasenatmer

This comment has been minimized.

Show comment
Hide comment
@nasenatmer

nasenatmer Sep 11, 2013

Yay! Cheers!

nasenatmer commented Sep 11, 2013

Yay! Cheers!

@pquentin

This comment has been minimized.

Show comment
Hide comment
@pquentin

pquentin Sep 18, 2013

Thanks!

BTW, biber creates *.bcf and *.run.xml files.

pquentin commented Sep 18, 2013

Thanks!

BTW, biber creates *.bcf and *.run.xml files.

@palday

This comment has been minimized.

Show comment
Hide comment
@palday

palday Nov 18, 2013

*.snm and *.nav for beamer!

palday commented Nov 18, 2013

*.snm and *.nav for beamer!

@johnedvard

This comment has been minimized.

Show comment
Hide comment
@johnedvard

johnedvard commented Jan 22, 2014

Thanks

@sauloperez

This comment has been minimized.

Show comment
Hide comment
@sauloperez

sauloperez Mar 22, 2014

Thanks for cleaning up my fat repo!

sauloperez commented Mar 22, 2014

Thanks for cleaning up my fat repo!

@joostrijneveld

This comment has been minimized.

Show comment
Hide comment
@joostrijneveld

joostrijneveld Mar 27, 2014

I see multiple comments suggesting adding *.pdf, but as of yet it was not included.. Is there an argument to leave it out?

joostrijneveld commented Mar 27, 2014

I see multiple comments suggesting adding *.pdf, but as of yet it was not included.. Is there an argument to leave it out?

@willfrew

This comment has been minimized.

Show comment
Hide comment
@willfrew

willfrew Mar 27, 2014

This is perfect, Thanks!

willfrew commented Mar 27, 2014

This is perfect, Thanks!

@piazentin

This comment has been minimized.

Show comment
Hide comment
@piazentin

piazentin commented Apr 1, 2014

Thanks!

@mmrko

This comment has been minimized.

Show comment
Hide comment
@mmrko

mmrko Apr 3, 2014

Thanks :)

mmrko commented Apr 3, 2014

Thanks :)

@jostjernberg

This comment has been minimized.

Show comment
Hide comment
@jostjernberg

jostjernberg Apr 8, 2014

joostrijneveld: adding *.pdf to a standard .gitignore is a bad idea since pictures in latex documents often are included in pdf format.

I would also argue that it's pretty convenient for someone not interested in editing the document to have easy access to the output pdf file, without having to download any non-common packages and building it manually.

jostjernberg commented Apr 8, 2014

joostrijneveld: adding *.pdf to a standard .gitignore is a bad idea since pictures in latex documents often are included in pdf format.

I would also argue that it's pretty convenient for someone not interested in editing the document to have easy access to the output pdf file, without having to download any non-common packages and building it manually.

@pSub

This comment has been minimized.

Show comment
Hide comment
@pSub

pSub Apr 13, 2014

Thanks!

pSub commented Apr 13, 2014

Thanks!

@alexbonhomme

This comment has been minimized.

Show comment
Hide comment
@alexbonhomme

alexbonhomme Apr 23, 2014

Hi,

Thanks for your sharing. I propose to add *.run.xml which is generated by biber.

alexbonhomme commented Apr 23, 2014

Hi,

Thanks for your sharing. I propose to add *.run.xml which is generated by biber.

@pSub

This comment has been minimized.

Show comment
Hide comment
@pSub

pSub Apr 25, 2014

I propose to add *.xdy which is created by xindy, an index processor. You can find the addition in my fork.

pSub commented Apr 25, 2014

I propose to add *.xdy which is created by xindy, an index processor. You can find the addition in my fork.

@ConX

This comment has been minimized.

Show comment
Hide comment
@ConX

ConX Jul 16, 2014

Thank you!

ConX commented Jul 16, 2014

Thank you!

@ahsegar

This comment has been minimized.

Show comment
Hide comment
@ahsegar

ahsegar Jul 28, 2014

Thank you from a very new git and latex user!

ahsegar commented Jul 28, 2014

Thank you from a very new git and latex user!

@faheemawan

This comment has been minimized.

Show comment
Hide comment
@faheemawan

faheemawan Aug 1, 2014

i am new to git, and i want to share latex project over here, with all the figures, bib files and tex file.

faheemawan commented Aug 1, 2014

i am new to git, and i want to share latex project over here, with all the figures, bib files and tex file.

@frschu

This comment has been minimized.

Show comment
Hide comment
@frschu

frschu Sep 6, 2014

thanks as well!
would it be possible to add a line that excludes the .pdf file if there is a corrisponding .tex file?

frschu commented Sep 6, 2014

thanks as well!
would it be possible to add a line that excludes the .pdf file if there is a corrisponding .tex file?

@HBadertscher

This comment has been minimized.

Show comment
Hide comment
@HBadertscher

HBadertscher Dec 4, 2014

Nice, thanks for sharing. I suggest adding *eps-converted-to.pdf to remove the PDF files generated by epstopdf.

HBadertscher commented Dec 4, 2014

Nice, thanks for sharing. I suggest adding *eps-converted-to.pdf to remove the PDF files generated by epstopdf.

@tobiasschuerg

This comment has been minimized.

Show comment
Hide comment
@victorhaggqvist

This comment has been minimized.

Show comment
Hide comment
@magnli10

This comment has been minimized.

Show comment
Hide comment
@magnli10

magnli10 Jan 19, 2015

Thanks a bunch!

magnli10 commented Jan 19, 2015

Thanks a bunch!

@rumpelsepp

This comment has been minimized.

Show comment
Hide comment
@rumpelsepp

rumpelsepp Jan 29, 2015

Thx. Some things to add:

  • *.fdb_latexmk
  • *.xml
  • *.pdf
  • *.fls
  • *.bcf
  • *.pyg

rumpelsepp commented Jan 29, 2015

Thx. Some things to add:

  • *.fdb_latexmk
  • *.xml
  • *.pdf
  • *.fls
  • *.bcf
  • *.pyg
@trodrigu

This comment has been minimized.

Show comment
Hide comment
@trodrigu

trodrigu commented Feb 21, 2015

Thank you

@shreyaspotnis

This comment has been minimized.

Show comment
Hide comment
@shreyaspotnis

shreyaspotnis Mar 29, 2015

Thanks! This is very useful

shreyaspotnis commented Mar 29, 2015

Thanks! This is very useful

@jan-glx

This comment has been minimized.

Show comment
Hide comment
@jan-glx

jan-glx Apr 30, 2015

*.bcf
*.run.xml

jan-glx commented Apr 30, 2015

*.bcf
*.run.xml

@cciotti-ge

This comment has been minimized.

Show comment
Hide comment
@cciotti-ge

cciotti-ge May 3, 2015

This is great, thanks.

cciotti-ge commented May 3, 2015

This is great, thanks.

@bispojr

This comment has been minimized.

Show comment
Hide comment
@bispojr

bispojr May 29, 2015

Thanks... very good!

I might consider adding '*.brf'.

bispojr commented May 29, 2015

Thanks... very good!

I might consider adding '*.brf'.

@SuzanaK

This comment has been minimized.

Show comment
Hide comment
@SuzanaK

SuzanaK Aug 13, 2015

I usually add *.tex~ and *.tex.backup.

SuzanaK commented Aug 13, 2015

I usually add *.tex~ and *.tex.backup.

@HarryLong

This comment has been minimized.

Show comment
Hide comment
@HarryLong

HarryLong commented Oct 1, 2015

Thanks !

@oliviaguest

This comment has been minimized.

Show comment
Hide comment
@oliviaguest

oliviaguest Oct 13, 2015

I needed to also add:

    *.nav
    *.snm
    *.vrb

oliviaguest commented Oct 13, 2015

I needed to also add:

    *.nav
    *.snm
    *.vrb
@rodolphopivetta

This comment has been minimized.

Show comment
Hide comment
@rodolphopivetta

rodolphopivetta commented Oct 24, 2015

I add:

*.ps
@felixfbecker

This comment has been minimized.

Show comment
Hide comment
@felixfbecker

felixfbecker Oct 27, 2015

I added

*.log
*.pdf

felixfbecker commented Oct 27, 2015

I added

*.log
*.pdf
@klauswarzecha

This comment has been minimized.

Show comment
Hide comment
@klauswarzecha

klauswarzecha Dec 16, 2015

Excellent! Thank you very much for sharing.

klauswarzecha commented Dec 16, 2015

Excellent! Thank you very much for sharing.

@mdyzma

This comment has been minimized.

Show comment
Hide comment
@mdyzma

mdyzma Feb 13, 2016

*.brf
*.bst
*.nls
*.nlo

mdyzma commented Feb 13, 2016

*.brf
*.bst
*.nls
*.nlo

@adamjak

This comment has been minimized.

Show comment
Hide comment
@adamjak

adamjak Sep 20, 2016

Thanks you so much. 💯 👍

adamjak commented Sep 20, 2016

Thanks you so much. 💯 👍

@qin-nz

This comment has been minimized.

Show comment
Hide comment
@qin-nz

qin-nz commented Oct 12, 2017

*.thm

@fernandohds564

This comment has been minimized.

Show comment
Hide comment
@fernandohds564

fernandohds564 commented Nov 11, 2017

Thanks!

@pacoaguayo

This comment has been minimized.

Show comment
Hide comment
@pacoaguayo

pacoaguayo Nov 30, 2017

Thanks a lot!

pacoaguayo commented Nov 30, 2017

Thanks a lot!

@brainabilgh

This comment has been minimized.

Show comment
Hide comment
@brainabilgh

brainabilgh Dec 12, 2017

Thank you, I added some entries

*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl
*.blg
*.dvi
*.glg
*.gls
*.ilg
*.ind
*.lof
*.lot
*.maf
.mtc
*.out
*.bak
*.run.xml
*blx.bib
*.synctex.gz

brainabilgh commented Dec 12, 2017

Thank you, I added some entries

*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl
*.blg
*.dvi
*.glg
*.gls
*.ilg
*.ind
*.lof
*.lot
*.maf
.mtc
*.out
*.bak
*.run.xml
*blx.bib
*.synctex.gz

@amix73

This comment has been minimized.

Show comment
Hide comment
@amix73

amix73 Jan 15, 2018

How nice! Thank you very much!

amix73 commented Jan 15, 2018

How nice! Thank you very much!

@amannougrahiya

This comment has been minimized.

Show comment
Hide comment
@amannougrahiya

amannougrahiya Mar 31, 2018

Thanks! This was a good thing to share.

amannougrahiya commented Mar 31, 2018

Thanks! This was a good thing to share.

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