More accurate LaTeX dependencies