LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-19-2009, 01:46 PM   #1
thethinker
Member
 
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 297
Blog Entries: 2

Rep: Reputation: 37
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!

Any suggestions?
 
Old 11-19-2009, 02:17 PM   #2
thethinker
Member
 
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 297

Original Poster
Blog Entries: 2

Rep: Reputation: 37
It is not possible for me to solve a question myself without first asking the world.

I got it; giving a command

Code:
bash-3.1$ kpsewhich --show-path bst
.:!!/home/cduston/.texmf-config/bibtex/bst//:!!/home/cduston/.texmf-var/bibtex/bst//:/home/cduston/texmf/bibtex/bst//:!!/usr/share/texmf-config/bibtex/bst//:!!/usr/share/texmf-var/bibtex/bst//:!!/usr/share/texmf/bibtex/bst//:!!/usr/share/texmf-local/bibtex/bst//:!!/usr/share/texmf-dist/bibtex/bst//
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...
 
Old 11-22-2009, 05:14 PM   #3
Bourdieu
Member
 
Registered: Jan 2006
Location: Paris
Distribution: Slackware current
Posts: 38

Rep: Reputation: 11
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.
 
Old 11-23-2009, 05:29 AM   #4
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Rep: Reputation: 55
Thanks to Robby texlive 2009 is already available to download in slackbuilds.org.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
some question with latex in slackware 12.1 jr_bob_dobbs Slackware 3 04-05-2009 01:38 PM
why complxity of BST is O(log n)? xeon123 Programming 4 04-11-2007 11:06 PM
Finding files and then finding content within those files... Maeltor Linux - Software 5 03-13-2007 12:06 PM
Storing BibTex bst files in home directory drben Linux - Software 1 11-01-2005 02:31 PM
latex .sty directory in debian feri79 Linux - Software 2 04-18-2005 12:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration