[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 10:32:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi Keita,
Ikumi Keita <ikumi@ikumi.que.jp> writes:
> It basically looks good to me. I'd like to ask one question. It searches
> for \graphicspath{...} repeatedly by
> (while (re-search-forward graphicspath-regex nil t)
> loop. Is it expected that \graphicspath{...} appears multiple times in a
> document?
I had a brief look at the patch. I think the change will not work in a
.tex file when used like this:
\graphicspath{{eps/}{tiff/}}
>From grfguide.pdf:
A list of directories, each in a {} group (even if there is only one
in the list). For example:
\graphicspath{{eps/}{tiff/}}
would cause the system to look in the subdirectories eps and tiff of
the current directory.
So the regexp for matching the argument should look like this (or
something more appropriate):
"\\\\graphicspath{\\([^}{]*\\(?:{[^}{]*}[^}{]*\\)*\\)}"
and then the match must be splitted before passing the results to other
functions. And I would assume that this declaration is usually
somewhere in the master file, and not used repeatedly.
Best, Arash
- Re: Provide advice to ffap (find-file-at-point) from \input@path?, Arash Esbati, 2024/09/01
- Parse graphicspath for searching [was: Provide advice to ffap (find-file-at-point) from \input@path?], Leo Stein, 2024/09/16
- Re: Parse graphicspath for searching [was: Provide advice to ffap (find-file-at-point) from \input@path?], Ikumi Keita, 2024/09/18
- Re: Parse graphicspath for searching [,
Arash Esbati <=
- Re: Parse graphicspath for searching [, Ikumi Keita, 2024/09/18
- Re: Parse graphicspath for searching [, Arash Esbati, 2024/09/18
- Re: Parse graphicspath for searching [, Leo Stein, 2024/09/18
- Re: Parse graphicspath for searching [, Arash Esbati, 2024/09/18
- Re: Parse graphicspath for searching [, Leo Stein, 2024/09/18
- Re: Parse graphicspath for searching, Arash Esbati, 2024/09/19
- Re: Parse graphicspath for searching [was: Provide advice to ffap (find-file-at-point) from \input@path?], Leo Stein, 2024/09/18
- Re: Parse graphicspath for searching [was: Provide advice to ffap (find-file-at-point) from \input@path?], Ikumi Keita, 2024/09/19
- Re: Parse graphicspath for searching [was: Provide advice to ffap (find-file-at-point) from \input@path?], Leo Stein, 2024/09/19