Kilesearch path

Information and discussion about Kile, an integrated LaTeX environment for Linux KDE
Post Reply
neumannturing
Posts: 32
Joined: Sun Mar 01, 2009 8:29 am

search path

Post by neumannturing »

Hi,
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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

search path

Post by localghost »

How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
neumannturing
Posts: 32
Joined: Sun Mar 01, 2009 8:29 am

Re: search path

Post by neumannturing »

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.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

search path

Post by frabjous »

It's not just that, but you've given us almost no information to go on. We can tell you're using texlive, but we don't know which version. You haven't provided any logs to see what version of the caption package is installed, either on your old machine or the new one. We don't know whether or not you get this problem whenever you try to load the caption package, or whether it's just for this document. We don't know whether or not you have root access to the tex installation. We don't know whether other people are using the same server and having the same problem. (You mentioned switching departments: is this a departmental server?) Is the version of caption installed on the server newer or older than you want to install locally? Why do you want to install one locally rather than trying to update the system?

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.
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

search path

Post by localghost »

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.
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.

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.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply