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 created a mypackage.sty file using all the packages, new-commands, other command shortcuts. Instead of loading packages I just load mypackage which mostly contains everything for my needs.

I recently switched from a Linux machine to a Macbook. Where should I keep the mypackage files in OS X?

share|improve this question
    
What are mypackage files? I never heard of them and Google doesn't enlighten me. –  Caramdir Sep 17 '11 at 17:23
1  
While it may be necessary at times to create a new tag (or even several ones) when asking a question, it seems highly unlikely that no existing tag is applicable to this question. –  lockstep Sep 17 '11 at 17:29
1  
I created a .sty file using all the packages, new-commands, other command shortcuts. Instead of loading packages I just load mypackage which mostly contains everything for my needs. Does this help? –  Aku Sep 17 '11 at 17:34
    
@Aku: I rewrote the question to add the info from your comment. I hope this is okay and I understood your problem correctly. –  Caramdir Sep 17 '11 at 17:46

2 Answers 2

up vote 2 down vote accepted

MacTex will automatically search for files in your "personal" part of the TeX directory tree system. Assuming your userid on your Mac system is "aku", the root of this personal part would be at /Users/aku/Library/texmf. MacTeX's installation routine should have already created this folder -- as well as several subfolders such as tex, bibtex, and probably a few others -- at the time it set up all other folders. Since your aim is to store the file mypackage.sty in a texlive/mactex-compliant way, I suggest you put it in the folder

/Users/aku/Library/texmf/tex/latex/mypackage

The folder mypackage will need to be created by you, obviously, before you can save the file mypackage.sty in it. Because you'll probably be installing other packages as well in your personal part of the TeX directory tree over time, it's advisable (but it's not required!) to create separate folders for each LaTeX package. Happy TeXing!

share|improve this answer

You can put it into the same places as under Linux: either in the same directory as the .tex file or into the local texmf tree, which is under ~/Library/texmf in OS X (so you'd put the file in ~/Library/texmf/tex/latex, see also this answer).

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.