Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have just installed BasicTeX on OSX 10.5 and I'm trying to locate the texmf directory to copy the llncs (LaTeX .cls and .sty files) folder into. According to the install log the location should be ~/Library/texmf, but this folder does not exist.

So where are the packages stored on OSX?

Background: the llncs package is not in the usual repositories so it cannot be installed with any of the package-management tools. On the Windows machine at work I use MikTeX and installed the package manually by copying it to the texmf directory and updating the DB as explained in How can I manually install a package on MiKTeX (Windows).

share|improve this question
5  
The directory is not created as the installer doesn't touch users' homes. Just create it: open your home Library folder and hit the "New folder" menu entry, naming the new folder texmf. –  egreg Jun 2 '12 at 13:23
    
I created the texmf directory and put the package there, but latex can't find it. –  Ivana Jun 2 '12 at 23:26
    
You have to create the entire path ~/Library/texmf/tex/latex/llncs, that is, a folder llncs inside latex inside tex inside texmf, and finally put the llncs.cls file in the last folder. There's nothing else to do. –  egreg Jun 2 '12 at 23:29
    
Thank you! It works like charm. Meta: can i mark comment as an answer somehow? –  Ivana Jun 4 '12 at 8:16

1 Answer 1

up vote 4 down vote accepted

The "personal tree" on Mac OS X is rooted in the Library folder for each user. However the installer doesn't touch the users' home directories, so the

~/Library/texmf

folder has to be created. Inside it one has to rebuild the usual TDS structure, so llncs.cls should go into

~/Library/texmf/tex/latex/llncs

and all folders must be created manually. So, open Library in your folder, create texmf, open it, create tex, open it, create latex, open it, create llncs and finally put llncs.cls in the last created folder.

This is necessary in order that the TeX programs can correctly find the file.

Note that no "hashing" operation needs to be performed: the "personal tree" is always searched, since it's assumed not to be very big.


On GNU/Linux systems one should omit the "Library" level.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.