gitignore icon indicating copy to clipboard operation
gitignore copied to clipboard

Added LaTeX gitignore file

Open devceline opened this issue 3 years ago • 5 comments

Reasons for making this change:

  • With more people using latex to write their research papers, books, etc. Having a quick gitignore that includes all the intermediary & build files will make backing things up easier.
  • I've recently started backing up my latex work on github and came here looking for a template like this, didn't find it so I made one.
  • This includes all the different file formats used by the different build systems like latexmk, pdflatex, etc.

Links to documentation supporting these rule changes:

  • Couldn't find documentation listing all the different build files, but here's a github issue mentioning them: https://github.com/lervag/vimtex/issues/1297
  • All these files are generated when vimtex runs the underlying latex build system
  • And here's a link from latexmk docs mentioning it creates a bunch of temporary files: https://mg.readthedocs.io/latexmk.html
  • You can also verify this by building latex files locally.

If this is a new template:

  • Link to application or project’s homepage: https://www.latex-project.org/

devceline avatar Mar 16 '22 11:03 devceline

Hi! great idea! I was just about to create the PR and found this. May I suggest not including .pdf extension? ... many images are in pdf formats so that might be a problem, wouldn't it?

jorgepz avatar Mar 16 '22 14:03 jorgepz

I proposed some additional changes to the @devceline 's PR in https://github.com/devceline/gitignore/pull/1

jorgepz avatar Mar 16 '22 15:03 jorgepz

Hi! great idea! I was just about to create the PR and found this. May I suggest not including .pdf extension? ... many images are in pdf formats so that might be a problem, wouldn't it?

Yep, I did consider that. Will be removing the *.pdf from the template

devceline avatar Mar 16 '22 15:03 devceline

If capitals are relevant....it should be LaTeX.gitignore...

jorgepz avatar Mar 16 '22 15:03 jorgepz

If capitals are relevant....it should be LaTeX.gitignore...

Yep, considering CMake is spelled with proper capitalization, I'll quickly rename the file.

devceline avatar Mar 16 '22 15:03 devceline

TeX.gitignore exists, this is not needed.

devceline avatar Oct 06 '23 09:10 devceline