Skip to main content

find

Function find 

Source
pub fn find(pathname: &str, options: PathnameFindOptions) -> Option<String>
Expand description

find the requested pathname using the options search configuration. Mirrors Perl pathname_find (LaTeXML/Util/Pathname.pm L376-392): directory search with strict-case match preferred, falling back to a case-insensitive directory scan. The fallback is required for arxiv papers shipping uppercase filenames (e.g. PASJ95.STY referenced as PASJ95.sty) — Perl’s regex pair pushes both strict and /i matches and returns the strict ones if any exist, otherwise the case-insensitive matches. kpsewhich is the caller’s responsibility (see LaTeXML::Package::FindFile_aux).