Minor update for latex compilation and ignoring *.d files.