I want to use my own .sty and .cls file in a project. I know of the following two possibilities of placing them:


in my local tex tree (or the general tex tree, which is worse)
in the same directory as the .tex file


Both of these I find unsatisfactory for the following reasons:

The local tex tree is unsatisfactory since the .sty file is specific for the project, so I want it to be close to the project, so I easily remember where it is etc. Also, I am using dropbox to synchronize the project files between different computers automatically, so the .sty file should be in the dropbox folder.

The 'same directory' is unsatisfactory since the project is in a directory with many subdirectories. The .tex files in all these subdirectories should be able to access the same .sty file.

What I would like to do is: create a subdirectory 'style files' in the project directory, where I put style and class files (there are several for the project), then tell tex somehow where to find them.

How can I do this?

I am using a recent TexLive on  Mac OS X.6

I know there have been questions about placement of .sty files, but I did not find an answer to this question.


Question: How do I find wiper refills for my 2008 Nissan Frontier?
Answer: The aftermarket industry is moving away from refills so it is only going to get harder to find them.

I would suggest using beam blades instead.  In my experience they preform better and look nicer since they take up less space.

Here is an image showing a Neo Form blade next to a traditional blade: