finding locations of many files via kpse

Norbert Preining norbert at preining.info
Tue Jul 2 11:01:56 CEST 2024


Hi everyone,

For a given set of input file names (arguments to includegraphics or
usepackage or ...), I would like to check the availability/location
quickly.

Of course I could call
	kpsewhich $i
for each and every file, but I think this is not the most effective way.

My ideas are in decreasing preference:
* call kpsewhich with as many arguments as possible, reducing the
  calling overhead
	kpsewhich file1 file2 file3 ...
  (up to maximal possible)
* use a lua script and the built-in kpse module
* write a C program that links to libkpathsea and does that

Any other suggestions?

Thanks a lot

Norbert

--
PREINING Norbert                              https://www.preining.info
arXiv / Cornell University   +   IFMGA Guide   +   TU Wien  +  TeX Live
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13


More information about the texhax mailing list.