Skip to content

Commit 81c60f5

Browse files
committed
kpsewhich: add page
1 parent d185054 commit 81c60f5

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

pages/common/kpsewhich.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# kpsewhich
2+
3+
> Standalone path lookup and variable expansion for the Kpathsea TeX library.
4+
> More information: <https://manned.org/kpsewhich>.
5+
6+
- Locate a TeX or LaTeX file in the TeX directory structure:
7+
8+
`kpsewhich {{file_or_package.sty}}`
9+
10+
- Locate all matches for a specific file:
11+
12+
`kpsewhich --all {{file_or_package.sty}}`
13+
14+
- Locate a file with a specific format:
15+
16+
`kpsewhich --format={{tfm|bib|sty|cls|tex}} {{filename}}`
17+
18+
- Print the value of a specific TeX configuration variable:
19+
20+
`kpsewhich --var-value={{TEXMFDIST}}`
21+
22+
- Locate a file under a specific TeX engine context:
23+
24+
`kpsewhich --progname={{pdflatex}} {{filename}}`

0 commit comments

Comments
 (0)