Skip to main content

ambient_kpsewhich_selfautoparent

Function ambient_kpsewhich_selfautoparent 

Source
pub fn ambient_kpsewhich_selfautoparent() -> Option<&'static str>
Expand description

The ambient kpsewhich -var-value=SELFAUTOPARENT, memoized, validated to be a directory containing texmf-dist (i.e. a real TeX Live root — Debian’s /usr and other yearless layouts return None). Shared by the kpathsea backend agreement probe above; latexml_engine::dump_paths keys its dump-year detection off the same variable. The ambient kpsewhich -var-value=SELFAUTOPARENT output, memoized for the process so select_kpaths and latexml_engine::dump_paths share one spawn.

NOT gated on the kpathsea feature: it is a plain subprocess probe (no C library), matching ambient_kpsewhich_version.