I have a directory structure:
maindir (this is where the main latex file is)
and then
subdir1/
subdir2/ ...
in the main file I do
\import{subdir1/}/sub1}
\import{subdir2/}/sub2}
etc.
In sub1.tex I have
\include{fig.pstex_t}.
It compiles ok to dvi, but not really ok, because it does not find the .pstex file. Hence the dvi viewer gets stuck. If I do dvi2ps or dvi2pdf I get a pdf without the figures themselves.
On the other hand if I copy the generated .dvi file into subdir1 and open it from there, then I can see the figures (related to that directory) just fine.
So my question is: how do I tell it the path to the associated .pstex files ?
\inputnot\includefor fig.pstex_t\includeforces a new page and saves counters etc so doesn't really make sense here. The path is relative to where you start tex so you probably want\input(subdir1/fig.pstex_t}but it depends a bit what path to the graphics file is in the generated file. – David Carlisle Mar 12 at 12:24\graphicspathcommand. – David Carlisle Mar 13 at 13:37echo $a | sed s/.fig/.pstex/; done" where $1 is the name of the subdirectory. This puts the path in the \special directive and solves the problem. – user1743977 Mar 14 at 19:03