I have a tex project using a custom .cls which builds in Windows 7 with TeXlipse + MikTeX. The .cls has a number of CTAN LaTeX contrib package dependencies, which I installed one-by-one with MikTeX (something is wrong with my auto-installer).
This project has the directory structure:
src/ <- .tex files here
fig/ <- .pdf figures etc
style/ <- .cls file here
This project is checked into a CVS repo and a Mac user needs to be able to checkout and build the latest revision. This user has: Mac OSX 10.5.8, pdfTeXk, Version 3.1415926-1.40.9.
What I'd like is to be able to check in these contrib packages into the style/ directory, and then using some commandline arguments include the style/ directory in pdfTeXk's search path so it can find the .sty files when the user builds src/document.tex.
I don't have access to a Mac, but I did try to accomplish the same thing with CentOS 5.6 with no luck. It seems most pdflatex packages (ie tetex-latex-3.0-33.8.el5_5.6.x86_64.rpm) expect .sty files to be in a strict folder hierarchy. I tried the -input-directory argument and TEXINPUT environment variable with no avail.
I'm aware that TeXShop has a package manager which could download and install the required packages for this user, but I'd like to avoid this for a couple reasons:
I'd rather not encourage messing with their already-working environment with pdfTeXk.
My understanding is that TeXShop won't auto-install packages during the build, which is painful because this
.clshas like 10-20 contrib dependencies.
Is there an easy solution here? Perhaps I am just spoiled by the ease of MikTex, but this seems to be a pretty basic functionality.
EDIT: It's worth pointing out that I'm using the commandline on CentOS and I believe the user is doing the same in OSX.
which pdftex. If MacTeX is installed, this should return/usr/texbin/pdftex. If it returns something like/opt/...or/sw/...then they are using a MacPorts or Fink TeX distribution, which is really not recommended. – Alan Munn May 15 '11 at 19:25/styledirectory. – Alan Munn May 15 '11 at 20:04