info > (kpathsea)Supported file formats

πŸ“ Kpathsea: Supported File Formats

πŸš€ Quick Reference

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

πŸ“– Original Content

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

πŸ“Œ Special Cases

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:

(kpathsea)Supported file formats
πŸ“ Kpathsea: Supported File Formats πŸš€ Quick Reference πŸ“– Original Content
πŸ“Œ Special Cases

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/)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^