I'm trying to automate pdftex to generate docs. I'm in some kind of hell where TeX assumes people want to use absolute paths or the working directory.
I have the file main.tex. It imports several files from subdirectories:
pdftex /path/to/main.tex from another directory and tex consistently tries to import relative to the directory 'pdftex' was invoked from rather than the directory of main.tex.
I can't predict what the absolute paths will be on different machines to use those. The 'import' package would only work if I had yet another TeX file in the current working directory that knew what the absolute path to main.tex would be. Is there any way to have main.tex use relative paths without having to include absolute paths in a TeX file? I just want the file to use paths that are relative to where that file is, not relative to the working directory or the phase of the moon.
(As a minor blessing, at least none of those included TeX files needs to include other files or graphics, because that'd be its own problem.)