Re: finding locations of many files via kpse
Norbert Preining <[email protected]>
| Newsgroups | gmane.comp.tex.texhax |
|---|---|
| Message-ID | <ZoU_OgRlNdKfe8YN@burischnitzel> |
Hi Erik, On Wed, 03 Jul 2024, Erik Nijenhuis wrote: > The first would lead to a significant change in the CLI implementation, I > assume. As every path then needs its own option set being preceded/post-ceded, > or all options simply apply to every path given. Both options are tricky to > conclude I guess. In my case, all files are to be opened by LaTeX and all options would be the same, so that would be fine, but ... > I ended up using `kpse.in_name_ok` function in order to check if it's OK to > open, like on line 37 of the following file: > https://github.com/Xerdi/gitinfo-lua/blob/master/scripts/gitinfo-lua-recorder.lua Nice, great, thanks a lot. Honestly, I liked the idea of a texlua script because it is (1) a scripting language so easy to develop and test, and move to other computers, and (2) it uses direct library calls. Thanks for all your suggestions, I will try them out. > Hope it helps. Definitely, thanks a lot ... and I will also checkout gitinfo-lua, first time I see it ;-) Thanks 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