What does kpsewhich stand for?Replacement for MiKTeX's texify in TeX LiveTexLive 2011 does not allow custom installationLatex can't find .sty files altough packages are installed — TexLive, Ubuntu 12.04kpsewhich: command not found. on tlmgr update, MacTex installCannot find TeX Live root using kpsewhich, when updating MacTeXDownloading every package with Tex liveTeXstudio PATH problem with kpsewhichError on MacTeX 2015 that does not happen on Linux TeX LiveWhy does kpsewhich fail to find this file?pdflatex cannot find file but kpsewhich does
Were Alexander the Great and Hephaestion lovers?
Certain search in list
What makes Ada the language of choice for the ISS's safety-critical systems?
Extreme flexible working hours: how to control people and activities?
How does an ordinary object become radioactive?
Union with anonymous struct with flexible array member
How to produce milk that's similar to blood?
English word for "product of tinkering"
How to communicate to my GM that not being allowed to use stealth isn't fun for me?
A IP can traceroute to it, but can not ping
Why didn't Voldemort recognize that Dumbledore was affected by his curse?
How can I tell the difference between unmarked sugar and stevia?
Cascading Switches. Will it affect performance?
What ways have you found to get edits from non-LaTeX users?
Can U.S. Tax Forms Be Legally HTMLified?
Applying Graph Theory to Linear Algebra (not the other way around)
Why can't I use =default for default ctors with a member initializer list
How can I end combat quickly when the outcome is inevitable?
Are there any important biographies of nobodies?
Did Milano or Benatar approve or comment on their namesake MCU ships?
f-type expansion
Longest bridge/tunnel that can be cycled over/through?
How can I get an unreasonable manager to approve time off?
Someone whose aspirations exceed abilities or means
What does kpsewhich stand for?
Replacement for MiKTeX's texify in TeX LiveTexLive 2011 does not allow custom installationLatex can't find .sty files altough packages are installed — TexLive, Ubuntu 12.04kpsewhich: command not found. on tlmgr update, MacTex installCannot find TeX Live root using kpsewhich, when updating MacTeXDownloading every package with Tex liveTeXstudio PATH problem with kpsewhichError on MacTeX 2015 that does not happen on Linux TeX LiveWhy does kpsewhich fail to find this file?pdflatex cannot find file but kpsewhich does
I often have trouble remembering the name of the kpsewhich command. Maybe it would be easier for me to remember it, if I understand where the name come from, so the question is:
What does the kpse stand for?
texlive kpathsea
add a comment |
I often have trouble remembering the name of the kpsewhich command. Maybe it would be easier for me to remember it, if I understand where the name come from, so the question is:
What does the kpse stand for?
texlive kpathsea
add a comment |
I often have trouble remembering the name of the kpsewhich command. Maybe it would be easier for me to remember it, if I understand where the name come from, so the question is:
What does the kpse stand for?
texlive kpathsea
I often have trouble remembering the name of the kpsewhich command. Maybe it would be easier for me to remember it, if I understand where the name come from, so the question is:
What does the kpse stand for?
texlive kpathsea
texlive kpathsea
edited May 22 at 13:01
David Carlisle
508k4311561911
508k4311561911
asked May 22 at 12:22
muxovejimuxoveji
3119
3119
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Karl's Path SEarch Library WHICH
Thank you! This will make it much easier to remember!
– muxoveji
May 22 at 12:29
1
@david-carlisle what a bold answer ;-)
– topskip
May 23 at 13:28
add a comment |
As info kpathsea says (online manual here), Kpathsea is a library for path searching (e.g., for very quickly locating a given .sty file in a set of potentially large TEXMF trees, without doing a recursive directory tree traversal every time a given file is needed; this is important when compiling LaTeX documents using several packages, themselves requiring other packages, possibly various font files, etc.).
This path search gives the pathse part, abbreviated as pse. The “which“ reminds of the Unix which utility, which tells you the path of the executable run for a given command, according to your PATH environment variable. For instance:
$ which find
/usr/bin/find
I believe the “k” stands for “Karl Berry”. :-)
Complements
The comparison between which and kpsewhich goes further than that. As Unix shells often maintain a cache of executables present in directories of the PATH in order to offer efficient lookup for command completion, the Kpathsea library maintains a filename database (comprised of the ls-R files in each TEXMF tree) in order to offer similar fast lookup to TeX-related programs.
In Unix shells, the cache can often be updated with a hash command (hash -r in Bash, rehash in Zsh) when you've added or removed executables from your PATH and wish to refresh the cache without restarting your shell; for the Kpathsea library, the corresponding operation is done with mktexlsr, also known as texhash.
Finally, which looks up a given executable in the directories listed in PATH1, in some way similarly as kpsewhich for finding a TeX-related file using either on-disk lookup or only the filename database (it depends on whether the TEXMF tree is preceded with !! where it is used in texmf.cnf2). kpsewhich is more sophisticated than a typical which builtin, though, as it can return different results depending on what was given as -progname, has a notion of variables that can be set in texmf.cnf, can look up in-cache-only or on-disk depending on the per-directory-settings in texmf.cnf, etc.
Footnotes
In Bash and Zsh at least, it seems to really search the PATH: if you add a new executable to a directory of your PATH, the
whichbuiltin of these shells finds it right away without any need to runhash -rorrehash(this may not be the case for command completion).See for instance
/usr/share/texlive/texmf-dist/web2c/texmf.cnfon Debian.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f492093%2fwhat-does-kpsewhich-stand-for%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Karl's Path SEarch Library WHICH
Thank you! This will make it much easier to remember!
– muxoveji
May 22 at 12:29
1
@david-carlisle what a bold answer ;-)
– topskip
May 23 at 13:28
add a comment |
Karl's Path SEarch Library WHICH
Thank you! This will make it much easier to remember!
– muxoveji
May 22 at 12:29
1
@david-carlisle what a bold answer ;-)
– topskip
May 23 at 13:28
add a comment |
Karl's Path SEarch Library WHICH
Karl's Path SEarch Library WHICH
answered May 22 at 12:28
David CarlisleDavid Carlisle
508k4311561911
508k4311561911
Thank you! This will make it much easier to remember!
– muxoveji
May 22 at 12:29
1
@david-carlisle what a bold answer ;-)
– topskip
May 23 at 13:28
add a comment |
Thank you! This will make it much easier to remember!
– muxoveji
May 22 at 12:29
1
@david-carlisle what a bold answer ;-)
– topskip
May 23 at 13:28
Thank you! This will make it much easier to remember!
– muxoveji
May 22 at 12:29
Thank you! This will make it much easier to remember!
– muxoveji
May 22 at 12:29
1
1
@david-carlisle what a bold answer ;-)
– topskip
May 23 at 13:28
@david-carlisle what a bold answer ;-)
– topskip
May 23 at 13:28
add a comment |
As info kpathsea says (online manual here), Kpathsea is a library for path searching (e.g., for very quickly locating a given .sty file in a set of potentially large TEXMF trees, without doing a recursive directory tree traversal every time a given file is needed; this is important when compiling LaTeX documents using several packages, themselves requiring other packages, possibly various font files, etc.).
This path search gives the pathse part, abbreviated as pse. The “which“ reminds of the Unix which utility, which tells you the path of the executable run for a given command, according to your PATH environment variable. For instance:
$ which find
/usr/bin/find
I believe the “k” stands for “Karl Berry”. :-)
Complements
The comparison between which and kpsewhich goes further than that. As Unix shells often maintain a cache of executables present in directories of the PATH in order to offer efficient lookup for command completion, the Kpathsea library maintains a filename database (comprised of the ls-R files in each TEXMF tree) in order to offer similar fast lookup to TeX-related programs.
In Unix shells, the cache can often be updated with a hash command (hash -r in Bash, rehash in Zsh) when you've added or removed executables from your PATH and wish to refresh the cache without restarting your shell; for the Kpathsea library, the corresponding operation is done with mktexlsr, also known as texhash.
Finally, which looks up a given executable in the directories listed in PATH1, in some way similarly as kpsewhich for finding a TeX-related file using either on-disk lookup or only the filename database (it depends on whether the TEXMF tree is preceded with !! where it is used in texmf.cnf2). kpsewhich is more sophisticated than a typical which builtin, though, as it can return different results depending on what was given as -progname, has a notion of variables that can be set in texmf.cnf, can look up in-cache-only or on-disk depending on the per-directory-settings in texmf.cnf, etc.
Footnotes
In Bash and Zsh at least, it seems to really search the PATH: if you add a new executable to a directory of your PATH, the
whichbuiltin of these shells finds it right away without any need to runhash -rorrehash(this may not be the case for command completion).See for instance
/usr/share/texlive/texmf-dist/web2c/texmf.cnfon Debian.
add a comment |
As info kpathsea says (online manual here), Kpathsea is a library for path searching (e.g., for very quickly locating a given .sty file in a set of potentially large TEXMF trees, without doing a recursive directory tree traversal every time a given file is needed; this is important when compiling LaTeX documents using several packages, themselves requiring other packages, possibly various font files, etc.).
This path search gives the pathse part, abbreviated as pse. The “which“ reminds of the Unix which utility, which tells you the path of the executable run for a given command, according to your PATH environment variable. For instance:
$ which find
/usr/bin/find
I believe the “k” stands for “Karl Berry”. :-)
Complements
The comparison between which and kpsewhich goes further than that. As Unix shells often maintain a cache of executables present in directories of the PATH in order to offer efficient lookup for command completion, the Kpathsea library maintains a filename database (comprised of the ls-R files in each TEXMF tree) in order to offer similar fast lookup to TeX-related programs.
In Unix shells, the cache can often be updated with a hash command (hash -r in Bash, rehash in Zsh) when you've added or removed executables from your PATH and wish to refresh the cache without restarting your shell; for the Kpathsea library, the corresponding operation is done with mktexlsr, also known as texhash.
Finally, which looks up a given executable in the directories listed in PATH1, in some way similarly as kpsewhich for finding a TeX-related file using either on-disk lookup or only the filename database (it depends on whether the TEXMF tree is preceded with !! where it is used in texmf.cnf2). kpsewhich is more sophisticated than a typical which builtin, though, as it can return different results depending on what was given as -progname, has a notion of variables that can be set in texmf.cnf, can look up in-cache-only or on-disk depending on the per-directory-settings in texmf.cnf, etc.
Footnotes
In Bash and Zsh at least, it seems to really search the PATH: if you add a new executable to a directory of your PATH, the
whichbuiltin of these shells finds it right away without any need to runhash -rorrehash(this may not be the case for command completion).See for instance
/usr/share/texlive/texmf-dist/web2c/texmf.cnfon Debian.
add a comment |
As info kpathsea says (online manual here), Kpathsea is a library for path searching (e.g., for very quickly locating a given .sty file in a set of potentially large TEXMF trees, without doing a recursive directory tree traversal every time a given file is needed; this is important when compiling LaTeX documents using several packages, themselves requiring other packages, possibly various font files, etc.).
This path search gives the pathse part, abbreviated as pse. The “which“ reminds of the Unix which utility, which tells you the path of the executable run for a given command, according to your PATH environment variable. For instance:
$ which find
/usr/bin/find
I believe the “k” stands for “Karl Berry”. :-)
Complements
The comparison between which and kpsewhich goes further than that. As Unix shells often maintain a cache of executables present in directories of the PATH in order to offer efficient lookup for command completion, the Kpathsea library maintains a filename database (comprised of the ls-R files in each TEXMF tree) in order to offer similar fast lookup to TeX-related programs.
In Unix shells, the cache can often be updated with a hash command (hash -r in Bash, rehash in Zsh) when you've added or removed executables from your PATH and wish to refresh the cache without restarting your shell; for the Kpathsea library, the corresponding operation is done with mktexlsr, also known as texhash.
Finally, which looks up a given executable in the directories listed in PATH1, in some way similarly as kpsewhich for finding a TeX-related file using either on-disk lookup or only the filename database (it depends on whether the TEXMF tree is preceded with !! where it is used in texmf.cnf2). kpsewhich is more sophisticated than a typical which builtin, though, as it can return different results depending on what was given as -progname, has a notion of variables that can be set in texmf.cnf, can look up in-cache-only or on-disk depending on the per-directory-settings in texmf.cnf, etc.
Footnotes
In Bash and Zsh at least, it seems to really search the PATH: if you add a new executable to a directory of your PATH, the
whichbuiltin of these shells finds it right away without any need to runhash -rorrehash(this may not be the case for command completion).See for instance
/usr/share/texlive/texmf-dist/web2c/texmf.cnfon Debian.
As info kpathsea says (online manual here), Kpathsea is a library for path searching (e.g., for very quickly locating a given .sty file in a set of potentially large TEXMF trees, without doing a recursive directory tree traversal every time a given file is needed; this is important when compiling LaTeX documents using several packages, themselves requiring other packages, possibly various font files, etc.).
This path search gives the pathse part, abbreviated as pse. The “which“ reminds of the Unix which utility, which tells you the path of the executable run for a given command, according to your PATH environment variable. For instance:
$ which find
/usr/bin/find
I believe the “k” stands for “Karl Berry”. :-)
Complements
The comparison between which and kpsewhich goes further than that. As Unix shells often maintain a cache of executables present in directories of the PATH in order to offer efficient lookup for command completion, the Kpathsea library maintains a filename database (comprised of the ls-R files in each TEXMF tree) in order to offer similar fast lookup to TeX-related programs.
In Unix shells, the cache can often be updated with a hash command (hash -r in Bash, rehash in Zsh) when you've added or removed executables from your PATH and wish to refresh the cache without restarting your shell; for the Kpathsea library, the corresponding operation is done with mktexlsr, also known as texhash.
Finally, which looks up a given executable in the directories listed in PATH1, in some way similarly as kpsewhich for finding a TeX-related file using either on-disk lookup or only the filename database (it depends on whether the TEXMF tree is preceded with !! where it is used in texmf.cnf2). kpsewhich is more sophisticated than a typical which builtin, though, as it can return different results depending on what was given as -progname, has a notion of variables that can be set in texmf.cnf, can look up in-cache-only or on-disk depending on the per-directory-settings in texmf.cnf, etc.
Footnotes
In Bash and Zsh at least, it seems to really search the PATH: if you add a new executable to a directory of your PATH, the
whichbuiltin of these shells finds it right away without any need to runhash -rorrehash(this may not be the case for command completion).See for instance
/usr/share/texlive/texmf-dist/web2c/texmf.cnfon Debian.
edited May 25 at 8:34
answered May 22 at 12:35
frougonfrougon
2,695917
2,695917
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f492093%2fwhat-does-kpsewhich-stand-for%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown