I have a dedicated directory for my project; within that are nested directories
styles/ that contain the
I was surprised to find that while
source/main.tex did work as expected, I have to use the same path in the incantation from within
In other words, relative paths in a file included with
\usepackage would appear to be resolved with respect to the including file, not the included one.
This seems problematic since it couples sources and styles—and indeed, moving the source to, say,
/tmp/main.tex breaks the document! this is, to say the least, surprising.
Am I doing something wrong? is there a package that allows me to do the equivalent of a
\usepackage with a path that is resolved relative to the including file?
I know I could probably set up environment variables and/or edit some TeX configuration file, but I'd prefer not to in order to keep everything working with a standard TeXlive/MacTex installation.