KPSEWHICH(1)

๐Ÿ’– KPSEWHICH(1) โ€” the General Commands Manual glow-up ๐Ÿ’–

okay bestie, this is kpsewhich, from the General Commands Manual section of your local man tree. she's the standalone girlie for path lookup and and expansion for kpathsea. (yes the double "and" is canon, i don't make the rules ๐Ÿ’…)


โœจ NAME โœจ

kpsewhich โ€” standalone path lookup and and expansion for kpathsea


๐ŸŒธ SYNOPSIS ๐ŸŒธ

kpsewhich [options] [filenames]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

okay so first things first, this manual page is not meant to be exhaustive. the full โœจcompleteโœจ documentation for this version of TeX lives in the info file or manual Kpathsea: A library for path searching. so if you need the deep lore, that's where you go, not here.

kpsewhich is the standalone front-end of the kpathsea library, and she has two whole jobs: examining variables and finding files. main character energy fr.

here's the tea on how she searches ๐Ÿ‘‡ when the -format option is not given, the search path she uses when looking for a file is inferred from the name you gave her, by looking for a known extension. and if no known extension is found? she just uses the search path for TeX source files. no cap.


๐Ÿ’… OPTIONS ๐Ÿ’…

kpsewhich accepts the following options, and yes we're doing all of them, no skips:

  • -debug num โ€” Set debugging flags.
  • -D num โ€” Use a base resolution of num; the default, set by the installer, is typically 600.
  • -dpi num โ€” As -D.
  • -engine string โ€” Set $engine in the environment, which is used in some search paths.
  • -expand-braces string โ€” Print variable and brace expansion of string.
  • -expand-path string โ€” Print complete path expansion of string.
  • -expand-var string โ€” Print variable expansion of string.
  • -format name โ€” Use file type name. See the info manual for a list of valid names, or use the -help option to print the list.
  • -help โ€” Print help message and exit.
  • -interactive โ€” Ask for additional filenames to look up.
  • -mktex fmt โ€” enable mktexfmt generation. (fmt=pk/mf/tex/tfm)
  • -mode string โ€” Set device name for $MAKETEX_MODE to string; no default.
  • -must-exist โ€” Search the disk as well as ls-R if necessary.
  • -no-mktex fmt โ€” disable mktexfmt generation. (fmt=pk/mf/tex/tfm)
  • -path string โ€” Search in the path string.
  • -progname string โ€” Set program name to string.
  • -show-path name โ€” Output search path for file type name. See the info manual for a list of valid names, or use the -help option to print the list.
  • -var-value variable โ€” Print the expansion of variable.
  • -version โ€” Print version information and exit.
pro tip from me to you: -format and -show-path both want a valid name, and neither of them is gonna guess it for you โ€” hit up the info manual or just run -help and let her list them. ๐Ÿซถ

๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

go give these iconics some love too:


okay that's the whole page bestie, you ate it ๐Ÿ’– this was Kpathsea 6.4.1, dated 1 March 2011, and that's the kpsewhich manual, periodt. now go find some files. ๐ŸŽ€โœจ

๐Ÿ“ฆ where this page comes from