kpsewhich
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| kpsewhich [May 17, 2026 at 15:30] – Ivan Janevski | kpsewhich [May 17, 2026 at 15:33] (current) – Ivan Janevski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| # kpsewhich | # kpsewhich | ||
| - | **kpsewhich** is a LaTeX command that's used to look up a full path of a file that you know a LaTeX compiler would implicitly | + | **kpsewhich** is a LaTeX-related command. It's a diagnostic |
| For example, when you use `\documentclass{article}` in a TeX document, and you compile the document with `pdflatex`, the compiler is going to load the " | For example, when you use `\documentclass{article}` in a TeX document, and you compile the document with `pdflatex`, the compiler is going to load the " | ||
| Line 12: | Line 12: | ||
| ``` | ``` | ||
| - | Where `article.cls` located? You can find out with `kpsewhich` command. | + | Where `article.cls` located? You can find out with `kpsewhich` command! |
| ``` | ``` | ||
| $ kpsewhich article.cls | $ kpsewhich article.cls | ||
| Line 25: | Line 25: | ||
| $ kpsewhich | $ kpsewhich | ||
| Missing argument. Try `kpsewhich --help' | Missing argument. Try `kpsewhich --help' | ||
| + | ``` | ||
| + | |||
| + | ### Non-existent file | ||
| + | If you put something nonsensical it's just going to return nothing. | ||
| + | ``` | ||
| + | $ kpsewhich fdsafdsafdsa | ||
| ``` | ``` | ||
kpsewhich.1779031848.txt.gz · Last modified: by Ivan Janevski
