|
From: | Leo Stein |
Subject: | Re: Parse graphicspath for searching [ |
Date: | Wed, 18 Sep 2024 14:05:37 -0500 |
Leo Stein <leo.stein@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
[Prev in Thread] | Current Thread | [Next in Thread] |