[Tex/LaTex] Open included files in emacs+AUCTeX

auctexemacsinclude

When working with emacs+AUCTeX I would like to consider a project with one main.tex in which you have many include's. Is it possible somehow to open the included files from within the buffer where main.tex is loaded? Somehow make emacs understand that

\include{./path/to/foo}

in main.tex is a filename (with relative path) and open it either by clicking on it or hitting some keybinding when the courser is within the curly brackets?

A "bonus" question is probably the next step, that is to have some integrated "project manager" in emacs, where the included files are listed and one can browse the projects components. Does it sound reasonable? feasible? Any ideas?

Best Answer

I use find-file-at-point. It also works for #includes in C, sometimes imports in Python, URLs, etc.

(global-set-key (kbd "C-x f") 'find-file-at-point) ;; I hardly ever set the fill-column