I'd like to set up a global
.gitignore file in my home suitable for working with TeX files. So typical TeX junk files such as
*.synctex.gz would go in it.
The next step, however, is ignoring the compiled
somefile.pdf if the source file
somefile.tex is present. So my question is:
Is there a syntax in
.gitignore that I can use to tell it to ignore
somefile.pdf only if
somefile.tex is present?