man > kpsewhich(1)

KPSEWHICH(1)                           General Commands Manual                          KPSEWHICH(1)

NAME
       kpsewhich - standalone path lookup and expansion for kpathsea

SYNOPSIS
       kpsewhich [options] [filenames]

DESCRIPTION
       This  manual page is not meant to be exhaustive.  The complete documentation for this version
       of TeX can be found in the info file or manual Kpathsea: A library for path searching.

       kpsewhich is used as a standalone front-end of the kpathsea library that can be used to exam‐
       ine variables and find files.  When the -format option is not given,  the  search  path  used
       when  looking  for  a file is inferred from the name given, by looking for a known extension.
       If no known extension is found, the search path for TeX source files is used.

OPTIONS
       kpsewhich accepts the following options:

       -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.

SEE ALSO
       mktexlsr(1), mktexmf(1), mktexpk(1), mktextfm(1).

Kpathsea 6.3.5                              1 March 2011                                KPSEWHICH(1)
kpsewhich(1)
NAME SYNOPSIS DESCRIPTION OPTIONS
-debug num -D num Use a base resolution of num; the default, set by the installer, is typically 600. -dpi num -engine string -expand-braces string -expand-path string -expand-var string -format name -help Print help message and exit. -interactive -mktex fmt -mode string -must-exist -no-mktex fmt -path string -progname string -show-path name -var-value variable -version
SEE ALSO

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-03 16:21 @216.73.216.51
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^