Home » programming » .hgignore for LaTeX projects

.hgignore for LaTeX projects

# use glob syntax.
syntax: glob
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl
*.blg
*.dvi
*.glg
*.gls
*.ilg
*.ind
*.lof
*.lot
*.maf
*.mtc
*.mtc1
*.out
*.synctex.gz
*.thm
*.nav
*.snm

What .hgignore is. It is easy to modify it to obtain the corresponding gitignore file. Just remove the first two lines.

Advertisements

1 Comment

  1. Panos says:

    Nice! And here is a useful shell alias for removing these files with a single command

    alias rmtex=”find . -type f \( -name ‘*.aux’ -o -name ‘*.glo’ -o -name ‘*.idx’ -o -name ‘*.log’ -o -name ‘*.toc’ -o -name ‘*.ist’ -o -name ‘*.acn’ -o -name ‘*.acr’ -o -name ‘*.alg’ -o -name ‘*.bbl’ -o -name ‘*.blg’ -o -name ‘*.dvi’ -o -name ‘*.glg’ -o -name ‘*.gls’ -o -name ‘*.ilg’ -o -name ‘*.ind’ -o -name ‘*.lof’ -o -name ‘*.lot’ -o -name ‘*.maf’ -o -name ‘*.mtc’ -o -name ‘*.thm’ -o -name ‘*.nav’ -o -name ‘*.snm’ -o -name ‘*.out’ -o -name ‘*.synctex.gz’ -o -name ‘*.mtc1’ \) -delete”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: