[SOLVED] Latex not finding .sty, .bst files in slackware even with texhash or mktexlsr
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Latex not finding .sty, .bst files in slackware even with texhash or mktexlsr
Ok guys this is very frustrating. I feel like it is a distribution issue, which is why I put it here. Disagreement to that idea is welcome!
So, I'm trying to use some latex style files (specifically, those in the harvard and REVtex pacakges), but after installing as per instructions and running both mktexlsr and texhash, as root and user (covering all the bases...) my latex calls cannot find anything from either of these packages. I tried putting them in the following directories:
/home/username/texmf (did not exist, so I created it)
/usr/share/texmf (existed)
/usr/share/texmf-local (existed)
the installations both required path names, and above is what I tried. Then I ran mktexlsr and texhash as user and root. Latex can find them when I put them in the directory where I am running latex, but this is supposed to work!
I guess means all my stuff was supposed to be in .texmf-config. This file didn't exist (wha?) so I created it, altered all the makefiles of the packages to point there, texhash and it worked. This seems like a bad system; there should be at least an easy way to modify this enviromental variable to make it useful...
Try to put your packages in $HOME/texmf/tex/latex/
Execute mktexlsr as a normal user once and it should work.
I think it is the right way to add a LaTeX package with only normal user rights.
On an almost unrelated topic, I think the situation is becoming critical with tetex package being totally obsolete now. The installation of a package is becoming more and more complicated and there are sometimes conflicts with the version of the packages.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.