kpsewhich
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| kpsewhich [May 17, 2026 at 15:17] – created Ivan Janevski | kpsewhich [May 17, 2026 at 15:33] (current) – Ivan Janevski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| # kpsewhich | # kpsewhich | ||
| - | **kpsewhich** is a command | + | **kpsewhich** is a LaTeX-related |
| + | 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 " | ||
| + | ```latex | ||
| + | % Compile: pdflatex main.tex | ||
| + | % Result: | ||
| + | \documentclass{article} | ||
| + | \begin{document} | ||
| + | ... | ||
| + | \end{document} | ||
| + | ``` | ||
| - | ## Help | + | Where `article.cls` located? You can find out with `kpsewhich` command! |
| - | Running | + | ``` |
| + | $ kpsewhich article.cls | ||
| + | / | ||
| + | ``` | ||
| + | |||
| + | ## Run | ||
| + | |||
| + | ### No arguments | ||
| + | You can't run it without arguments. | ||
| + | ``` | ||
| + | $ kpsewhich | ||
| + | Missing argument. Try `kpsewhich --help' for more information. | ||
| + | ``` | ||
| + | |||
| + | ### Non-existent file | ||
| + | If you put something nonsensical it's just going to return nothing. | ||
| + | ``` | ||
| + | $ kpsewhich fdsafdsafdsa | ||
| + | ``` | ||
| + | ### Help | ||
| ``` | ``` | ||
| + | $ kpsewhich --help | ||
| Usage: kpsewhich [OPTION]... [FILENAME]... | Usage: kpsewhich [OPTION]... [FILENAME]... | ||
kpsewhich.1779031076.txt.gz · Last modified: by Ivan Janevski
