[texhax] Is there a way to instruct a (la)tex where to find /include files?

Schwartz, Steven J s.schwartz at imperial.ac.uk
Fri Jul 15 16:35:03 CEST 2011


> Rather, a user should create a separate directory and build the package in that directory instead.

So why not have autotools copy the .tex files to the build directory, build it there, then cleanup by deleting what you don't want. Or copy to a templet directory, build, move the dvi or PDF or whatever to the desired destination and then delete the temporary directory? This isn't much in the way of shell commands, eg

cd build_dir
mkdir tmp
cd tmp
cp ../../source/*.tex .
latex main.tex
mv *.pdf ..
rm *
cd ..
rmdir tmp
cd ..

(untested but pretty simple). Easily extended to more complicated cases, eg with subdirectories and can only really go wrong (?) if there's not enough disk space for both the copy and build.


Steve Schwartz
Space and Atmospheric Physics
Imperial College London
Tel 020 7594 7660

More information about the texhax mailing list