| Use Case | Command | Description |
|---|---|---|
| Locate a file in the TeX search path | kpsewhich article.sty |
π Find the full path of a file (e.g., .sty, .cls) |
| List all supported file formats | kpsewhich --help-formats |
π Show all file types, variables, and suffixes |
| Override search path for a specific program | export TEXINPUTS_latex=/my/path//: |
π§ Use _ instead of . in environment variable names |
| Find a font metric file (TFM) | kpsewhich cmr10.tfm |
π’ Locate TeX font metric files |
| Find a bitmap font (PK) | kpsewhich cmr10.pk |
πΌοΈ Locate packed bitmap font files |
| Check configuration file (texmf.cnf) | kpsewhich --progname=tex --format=cnf texmf.cnf |
βοΈ Find the runtime configuration file |
Kpathsea has support for a number of file types. Each file type has a list of environment and config file variables that are checked to define the search path, and most have a default suffix that plays a role in finding files (see the next section). Some also define additional suffixes, and/or a program to be run to create missing files on the fly.
Since environment variables containing periods, such as
TEXINPUTS.latex, are not allowed on some systems, Kpathsea looks for
environment variables with an underscore, e.g., TEXINPUTS_latex (Config files).
The following table lists the above information. You can also get
the list by giving the --help-formats option to kpsewhich (Auxiliary tasks).
| π File Type | π§ Environment Variables | π Suffixes | π Notes |
|---|---|---|---|
π afm (Adobe font metrics) |
AFMFONTS |
.afm |
See (dvips)Metric files |
π¦ base (Metafont memory dump) |
MFBASES, TEXMFINI |
.base |
See (web2c)Memory dumps |
π bib (BibTeX bibliography source) |
BIBINPUTS, TEXBIB |
.bib |
See (web2c)bibtex invocation |
π bltxml (BibLaTeXML bibliography files for Biber) |
BLTXMLINPUTS |
.bltxml |
See https://ctan.org/pkg/biber |
π bst (BibTeX style) |
BSTINPUTS |
.bst |
See (web2c)Basic BibTeX style files |
π§ clua (dynamic libraries for Lua) |
CLUAINPUTS |
.dll, .so |
See https://ctan.org/pkg/luatex |
πΊοΈ cmap (character map files) |
CMAPFONTS |
.cmap |
|
βοΈ cnf (Runtime configuration files) |
TEXMFCNF |
.cnf |
See Config files |
π cweb (CWEB input files) |
CWEBINPUTS |
.w, .web; additional: .ch |
|
π¨οΈ dvips config (Dvips config.* files) |
TEXCONFIG |
See (dvips)Config files | |
π€ enc files (encoding vectors) |
ENCFONTS |
.enc |
|
π¦ fmt (TeX memory dump) |
TEXFORMATS, TEXMFINI |
.fmt |
See (web2c)Memory dumps |
πΊοΈ font cid map (CJK mapping) |
FONTCIDMAPS |
.cid |
|
π€ font feature files (primarily for OpenType font features) |
FONTFEATURES |
.fea |
|
πΌοΈ gf (generic font bitmap) |
PROGRAMFONTS, GFFONTS, GLYPHFONTS, TEXFONTS |
gf |
See (dvips)Glyph files |
πΌοΈ graphic/figure (Encapsulated PostScript figures) |
TEXPICTS, TEXINPUTS |
.eps, .epsi |
See (dvips)PostScript figures |
π ist (makeindex style files) |
TEXINDEXSTYLE, INDEXSTYLE |
.ist |
|
π lig files (ligature definition files) |
LIGFONTS |
.lig |
|
π ls-R (Filename databases) |
TEXMFDBS |
See Filename database | |
πΊοΈ map (Fontmaps) |
TEXFONTMAPS |
.map |
See Fontmap |
π¦ mem (MetaPost memory dump) |
MPMEMS, TEXMFINI |
.mem |
See (web2c)Memory dumps |
π§ MetaPost support (MetaPost support files, used by DMP) |
MPSUPPORT |
See (web2c)dmp invocation | |
π mf (Metafont source) |
MFINPUTS |
.mf |
Dynamic creation: mktexmf; see (web2c)mf invocation |
π¦ mfpool (Metafont program strings) |
MFPOOL, TEXMFINI |
.pool |
See (web2c)pooltype invocation |
π mft (MFT style file) |
MFTINPUTS |
.mft |
See (web2c)mft invocation |
π€ misc fonts (font-related files that don't fit the other categories) |
MISCFONTS |
||
π mlbib (MlBibTeX bibliography source) |
MLBIBINPUTS, BIBINPUTS, TEXBIB |
.mlbib, .mlbib |
|
π mlbst (MlBibTeX style) |
MLBSTINPUTS, BSTINPUTS |
.mlbst, .bst |
|
π mp (MetaPost source) |
MPINPUTS |
.mp |
See (web2c)mpost invocation |
π¦ mppool (MetaPost program strings) |
MPPOOL, TEXMFINI |
.pool |
See (web2c)pooltype invocation |
π§ ocp (Omega compiled process files) |
OCPINPUTS |
.ocp |
Dynamic creation: MakeOmegaOCP |
π ofm (Omega font metrics) |
OFMFONTS, TEXFONTS |
.ofm, .tfm |
Dynamic creation: MakeOmegaOFM |
π€ opentype fonts (OpenType fonts) |
OPENTYPEFONTS |
||
π opl (Omega property lists) |
OPLFONTS, TEXFONTS |
.opl |
|
π§ otp (Omega translation process files) |
OTPINPUTS |
.otp |
|
π€ ovf (Omega virtual fonts) |
OVFFONTS, TEXFONTS |
.ovf |
|
π ovp (Omega virtual property lists) |
OVPFONTS, TEXFONTS |
.ovp |
|
βοΈ pdftex config (PDFTeX-specific configuration files) |
PDFTEXCONFIG |
||
πΌοΈ pk (packed bitmap fonts) |
PROGRAMFONTS (PROGRAM being XDVI, etc.), PKFONTS, TEXPKS, GLYPHFONTS, TEXFONTS |
pk |
Dynamic creation: mktexpk; see (dvips)Glyph files |
π¨οΈ PostScript header (downloadable PostScript) |
TEXPSHEADERS, PSHEADERS |
.pro |
See (dvips)Header files |
π ris (RIS bibliography files, primarily for Biber) |
RISINPUTS |
.ris |
See https://ctan.org/pkg/biber |
π€ subfont definition files (subfont definition files) |
SFDFONTS |
.sfd |
|
π tex (TeX source) |
TEXINPUTS |
.tex |
Additional suffixes: none (list cannot be complete); dynamic creation: mktextex; see (web2c)tex invocation |
π TeX system documentation (Documentation files for the TeX system) |
TEXDOCS |
||
π TeX system sources (Source files for the TeX system) |
TEXSOURCES |
||
π§ texmfscripts (Architecture-independent executables) |
TEXMFSCRIPTS |
||
π¦ texpool (TeX program strings) |
TEXPOOL, TEXMFINI |
.pool |
See (web2c)pooltype invocation |
π tfm (TeX font metrics) |
TFMFONTS, TEXFONTS |
.tfm |
Dynamic creation: mktextfm; see (dvips)Metric files |
π€ Troff fonts (Troff fonts, used by DMP) |
TRFONTS |
See (web2c)DMP invocation | |
π€ truetype fonts (TrueType outline fonts) |
TTFONTS |
.ttf, .TTF, .ttc, .TTC, .dfont |
|
π€ type1 fonts (Type 1 PostScript outline fonts) |
T1FONTS, T1INPUTS, TEXPSHEADERS, DVIPSHEADERS |
.pfa, .pfb |
See (dvips)Glyph files |
π€ type42 fonts (Type 42 PostScript outline fonts) |
T42FONTS |
||
π€ vf (virtual fonts) |
VFFONTS, TEXFONTS |
.vf |
See (dvips)Virtual fonts |
π web (WEB input files) |
WEBINPUTS |
.web; additional: .ch |
|
βοΈ web2c files (files specific to the web2c implementation) |
WEB2C |
There are two special cases, because the paths and environment variables always depend on the name of the program: the variable name is constructed by converting the program name to upper case, and then appending INPUTS. Assuming the program is called foo, this gives us the following table.
| π File Type | π§ Environment Variables |
|---|---|
π other text files (text files used by foo) |
FOOINPUTS |
π other binary files (binary files used by foo) |
FOOINPUTS |
If an environment variable by these names are set, the corresponding texmf.cnf definition won't be looked at (unless, as usual, the environment variable value has an extra :). See Default expansion.
For the font variables, the intent is that:
TEXFONTS is the default for everything.GLYPHFONTS is the default for bitmap (or, more precisely, non-metric) files.DVIPSFONTS for Dvipsk. Again, this is for bitmaps, not metrics.Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-16 09:06 @2600:1f28:365:80b0:7cb9:fb:26c1:e368
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)