Kile ⇒ search path
-
- Posts: 32
- Joined: Sun Mar 01, 2009 8:29 am
search path
I have a tex file using beamer and a couple of other packages. It can be compiled in the machines of my previous department. Now I moved to a new department, and the same file cannot be compiled and I get an error
"/usr/share/texmf-texlive/tex/latex/caption/caption.sty:197:\@makecaption undefined. \renewcommand\@makecaption"
I guess it is due to some compatibility issue. How can I make Kile to look for the package files in my home directory first? I try to set up ~/texmf-texlive/tex/latex/caption/, but it does not work. Thanks.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
search path
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 32
- Joined: Sun Mar 01, 2009 8:29 am
Re: search path
search path
kpsepath (notice the first p) is a command line program you can use to check which paths are searched when latex compiles something and in what order. It can't be used to set the search path. "man kpsepath" in a terminal should tell you how to use it.
To set the file search path, you would probably need to edit a texmf.cnf file. The instructions for doing this for TeXlive 2010 are here; but you may be using an older version. I highly doubt this is the best way to tackle your problem, however, unless you're dealing with a very out of date tex system, and a very stubborn system administrator who refuses to update it.
I suggest reading this.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
search path
I don't accuse anybody. I just requested a MWE. But since you are not new here and had your difficulties with that in the past, I simply forwarded you to a topic where everything is explained. Not to mention your problems with feedback to provided solutions.neumannturing wrote:I guess localhost accusing me of not posting MWE. But I am looking for a general information about the path searching of TeX, not a solution to a particular problem. I though it was just controlled by some environment variable. But I did some googling and find it is more complicated than that. It is related to another utility call ksepath.
Your post itself to me didn't indicate at all that you are searching for a general solution. You presented an error message which came from a package and has nothing to do with a wrong search path. Thus there must be some code which produces this message. And this code should be reduced to a MWE. Nothing less and nothing more. The error message might indicate a version problem.
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10