danielleontiev
danielleontiev

Reputation: 899

How your .gitignore for Latex projects looks like?

I am wondering what files I should exclude from VSC in LaTeX projects

Upvotes: 12

Views: 14635

Answers (3)

A P
A P

Reputation: 2548

Github provides a good one over here, I modified theirs slightly because i normally put my latex files in a nested folder in my git repo, so this solves that minor change:

## Core latex/pdflatex auxiliary files:
**/*.aux
**/*.lof
**/*.log
**/*.lot
**/*.fls
**/*.out
**/*.toc
**/*.fmt
**/*.fot
**/*.cb
**/*.cb2
**/*.lb

and if you use the additional libraries, you can do something similar for them too!

Upvotes: 0

Fanpeng
Fanpeng

Reputation: 332

Here is the .gitignore I found quite comprehensive for latex projects.

Also since I have tex file in multiple sub-directories, I remove the auto folders in those sub-directories by adding **/auto/** to the .gitignore file.

Upvotes: 7

danielleontiev
danielleontiev

Reputation: 899

I've looked into Kile's (LaTeX editor) preferences and found Automatically clean-up files list. I think that it is surely unnecessary files. The List:

.aux .bit .blg .bbl .lof .log .lot .glo .glx .gxg .gxs .idx .ilg .ind .out .url .svn .toc

I think it is enough for .gitignore.

Upvotes: 11

Related Questions