0

I have an Ubuntu machine and I'm using the Atom text editor to edit and compile .tex files. It's able to use all of the standard packages, so it must have them stored somewhere. Now I want to download and install a new .sty file, however, I'm not able to find the directory where the existing ones are stored. When I run sudo texhash I get

texhash: Updating /usr/local/share/texmf/ls-R... 
texhash: Updating /var/lib/texmf/ls-R-TEXLIVEDIST... 
texhash: Updating /var/lib/texmf/ls-R-TEXMFMAIN... 
texhash: Updating /var/lib/texmf/ls-R... 
texhash: Done.

However, in each location I don't find any .sty files. When I run kpsewhich -var-value=TEXMFHOME I get

/home/billybob/texmf

However, when I navigate to /home/billybob there is no folder named texmf there. I've seen instructions elsewhere about creating a tree structure to store .sty files and I guess also .tex files--however, I'm worried that if I do, Atom will look only there for any \usepackage commands and therefore I might lose access to my standard packages.

Should I just go ahead and manually make the tree structure? Or should I find where Atom is accessing the already stored .sty files?

  • look at the log of any file you produce, the full path for every input file is given in there. Your editor Atom isn't really involved, it does not need to know where packages are installed, it os simply a matter of the tex setup. – David Carlisle Apr 20 '17 at 19:22
  • @DavidCarlisle Worked like a charm! But I saved my new .sty file in the sub-directory called "base". Probably a mistake, but not sure what else to do. Ran it, and it said it couldn't find the file. Should I save this file somewhere else in the tree structure? – Addem Apr 20 '17 at 19:29
  • @DavidCarlisle I see a lot of other pages suggesting to put it in the "local" subdirectory but I don't have one ... I have "locality", would that be the same? – Addem Apr 20 '17 at 19:32
  • 2
    don't put it in base (that's my job:-) and it will be removed if you ever update. why don't you just create the directory /home/billybob/texmf/tex/latex/whatever and put whatever.sty in there? – David Carlisle Apr 20 '17 at 19:41
  • Wasn't sure it would automatically know to look in newly created folders. I made the folder /home/billybob/texmf/tex/latex/fitch and put the file fitch.sty in it. Re-ran a simple test .tex file and it says it still can't find it. @David Carlisle – Addem Apr 20 '17 at 19:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.