add LaTeX file detection