On Fri, Oct 05, 2001 at 05:24:41PM -0400, Dave Chapeskie wrote:
> On Fri, Oct 05, 2001 at 08:20:51PM +0200, Michael.Abshoff wrote:
> > If you want to put each chapter with its included files into a
> > subdirectory, you can write yourself a script that copies all
> > files from your subdirectories and the global file in a temp-directory,
> > exports the global document and then deletes the temp-files.
>
> Copying files around is a waste of IO and disk space. Just use
> symlinks. I haven't done this before (but a quick test shows no
> problems) I'd do something like:
Even symbolic links are unnecessary.
You can put
\usepackage{graphics,epsfig}
\newcommand{\setpath}[1]{
\def\input@path{{PATH/#1//}}
\graphicspath{{PATH/#1//}}
}
Where PATH is the path to the directory of the master file e.g /home/me/thesis
and then put \setpath{chap1} in latex mode before including chapter1.
PS: If figure are inserted as EPS and not using pstex format, then
it defining of the \setpath command is unnecessary, and before each chapter,
use \graphicspath{chap1}.