auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parse graphicspath for searching [


From: Arash Esbati
Subject: Re: Parse graphicspath for searching [
Date: Wed, 18 Sep 2024 20:56:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]