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













21















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?










share|improve this question




























    21















    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?










    share|improve this question


























      21












      21








      21


      1






      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?










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 22 at 13:01









      David Carlisle

      508k4311561911




      508k4311561911










      asked May 22 at 12:22









      muxovejimuxoveji

      3119




      3119




















          2 Answers
          2






          active

          oldest

          votes


















          23














          Karl's Path SEarch Library WHICH






          share|improve this answer























          • 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


















          16














          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



          1. 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 which builtin of these shells finds it right away without any need to run hash -r or rehash (this may not be the case for command completion).


          2. See for instance /usr/share/texlive/texmf-dist/web2c/texmf.cnf on Debian.






          share|improve this answer

























            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
            );



            );













            draft saved

            draft discarded


















            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









            23














            Karl's Path SEarch Library WHICH






            share|improve this answer























            • 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















            23














            Karl's Path SEarch Library WHICH






            share|improve this answer























            • 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













            23












            23








            23







            Karl's Path SEarch Library WHICH






            share|improve this answer













            Karl's Path SEarch Library WHICH







            share|improve this answer












            share|improve this answer



            share|improve this answer










            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

















            • 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











            16














            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



            1. 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 which builtin of these shells finds it right away without any need to run hash -r or rehash (this may not be the case for command completion).


            2. See for instance /usr/share/texlive/texmf-dist/web2c/texmf.cnf on Debian.






            share|improve this answer





























              16














              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



              1. 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 which builtin of these shells finds it right away without any need to run hash -r or rehash (this may not be the case for command completion).


              2. See for instance /usr/share/texlive/texmf-dist/web2c/texmf.cnf on Debian.






              share|improve this answer



























                16












                16








                16







                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



                1. 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 which builtin of these shells finds it right away without any need to run hash -r or rehash (this may not be the case for command completion).


                2. See for instance /usr/share/texlive/texmf-dist/web2c/texmf.cnf on Debian.






                share|improve this answer















                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



                1. 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 which builtin of these shells finds it right away without any need to run hash -r or rehash (this may not be the case for command completion).


                2. See for instance /usr/share/texlive/texmf-dist/web2c/texmf.cnf on Debian.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited May 25 at 8:34

























                answered May 22 at 12:35









                frougonfrougon

                2,695917




                2,695917



























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

                    What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

                    Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos