Leo Stein <leo.st...@gmail.com> writes:

> Regarding multifile documents, do I understand correctly that this is
> the job of reftex?

No, this has nothing to do with RefTeX, it's exclusively AUCTeX's
business to cater for completion candidates of graphics files.

> It would indeed be nice to avoid regexing the whole document each time
> you do \includegraphics.  But, if somebody goes back and edits their
> previous \graphicspath command, a re-parse would be needed... I don't
> know what is the best way to handle this.

I think the easiest way is to plug this into AUCTeX's parsing abilities.
Search the files under style/ directory for `TeX-auto-add-regexp' and
you will get a lot of examples.  But since parsing in AUCTeX is
expensive reg. regexp groups, you should make this addition conditional
and provide a custom variable for users who want to enable this feature.

Best, Arash

Reply via email to