Tell me more ×
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've searched online, but I have not found any clear instructions how to permanently add .sty files to my TeXShop installation. I'm using a Mac with OSX (TeXShop is a mac only program).

What is the best way of doing this? The one comprehensive set of instructions I found here.

I've got as far as extracting the files (running LaTeX on the .ins and . dtx files) but after that I don't know what to do. I also don't understand how to update the index of my distribution, and whether there are particular OSX specifics (the instructions are for Windows).

share|improve this question
Are you sure the package isn't already on your system? If it's from CTAN, then it most likely is. – Alan Munn Feb 4 '11 at 15:02

1 Answer

up vote 15 down vote accepted

The first question you should ask is whether the package you are trying to install is already installed on your system. If you are using MacTeX as your distribution (which you probably are) then most packages are already available. Within TeXShop you can choose the "Show Help for Package" item from the Help menu and enter your package name. (Or make a simple document that loads the package to see if it doesn't exist.)

If the package doesn't exist, then this answer: How to have local package override default package covers everything you need to know.

On a Mac, local additions go into the Library/texmf folder of your Home folder. (~/Library/texmf) You never need to update the file database for local additions to this folder. If the folder doesn't exist, you will need to create it yourself. For a one-click version of this you can use this utility: Make Local texmf Folder (Disclaimer: I am the author of this).

Note for OS 10.7 (Lion)

If you are running OS 10.7 (Lion), your user Library is unfortunately a hidden folder. It is, however, easy to access it through the Finder's Go menu: hold down the Option key while choosing the Go menu, and the local Library folder will appear in the list. Alternatively if you type Command-Shift-G you can enter the folder path directly (~/Library/texmf)

share|improve this answer
Perhaps you should mention something about the TDS... – Seamus Feb 4 '11 at 15:09
1  
@Seamus that's what the linked answer is. – Alan Munn Feb 4 '11 at 15:46
3  
Alternatively to permanently unhide your ~/Library directory on 10.7 (Lion), simply run chflags nohidden ~/Library/ in Terminal. :-) – user2473 Jan 26 '12 at 0:26

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.