Discussion:
[tex-live] include directory and aux directory
Peter Meier
2009-03-16 12:50:31 UTC
Permalink
Hi,

I use Miktex on a windows machine and are now moving to texlive on a linux
platform.
As I use -include-directory and -aux-directory, I wonder if there are
similar options in texlive.

-include-directory uses the given directory as additional tex input
directory. What's imported for me is
that it is only used for this run of tex.

-aux-directory places all the created aux-files into a given folder, like
TEMP, and
uses the files from there for its run. This is used to keep the source
directory clean from
all the created files, except the actual output file (pdf).

Can anyone give me some advice, how to use texlive in a similar fasion?

BTW: bibtex has a similar option in Miktex, which does not exists in LiveTex
either.

Thanks a lot
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/tex-live/attachments/20090316/0352db73/attachment.html
Zdenek Wagner
2009-03-16 13:49:49 UTC
Permalink
Post by Peter Meier
Hi,
I use Miktex on a windows machine and are now moving to texlive on a linux
platform.
As I use -include-directory and -aux-directory, I wonder if there are
similar options in texlive.
-include-directory uses the given directory as additional tex input
directory. What's imported for me is
that it is only used for this run of tex.
-aux-directory places all the created aux-files into a given folder, like
TEMP, and
uses the files from there for its run. This is used to keep the source
directory clean from
all the created files, except the actual output file (pdf).
Can anyone give me some advice, how to use texlive in a similar fasion?
tex has a parameter -output-directory but I really never used it. The
input directory could probably be modified too, it is probably
described in the kpathsea documentation. If I work on something more
complex, I write a Makefile with the "clean" target, or I even put the
source files to a private subversion repository since history is
important on complex projects. Having a working copy I can display
unversioned files by my shell script "nosvn" and remove them
recursively by "nosvn remove". The script even keeps files not yet in
the repository but just scheduled for adding (it is always better
first look what "svn remove" will delete). The script is below:

#!/bin/bash
if [ ! -d .svn ]
then
echo 'Subversion versioning not detected!'
exit 1
fi
cmd="svn st --no-ignore"
if [ "$1" = "remove" ]
then
echo 'Removing files'
for f in `$cmd | awk '/^[I?]/ {print \$2}'`
do
if [ -f $f ]
then
rm $f
fi
done
for f in `$cmd | awk '/^[I?]/ {print \$2}'`
do
if [ -d $f ]
then
rm -rf $f
fi
done
else
echo 'Unversioned files:'
$cmd | awk '/^[I?]/ {print $2}'
fi
Post by Peter Meier
BTW: bibtex has a similar option in Miktex, which does not exists in LiveTex
either.
Thanks a lot
?? Peter
--
Zden?k Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz
Norbert Preining
2009-03-16 14:04:54 UTC
Permalink
Post by Peter Meier
-include-directory uses the given directory as additional tex input
directory. What's imported for me is
that it is only used for this run of tex.
TEXINPUTS=add_dir: tex ...
Post by Peter Meier
-aux-directory places all the created aux-files into a given folder, like
Already mentioned by Zdenek is -output-directory, but I am not sure that
is what you want.
Post by Peter Meier
all the created files, except the actual output file (pdf).
which then can be moved ...

Sorry, I am not sure that this is implemented as is, but you can write
trivial wrappers for that.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining at logic.at> Vienna University of Technology
Debian Developer <preining at debian.org> Debian TeX Group
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
LYDIARD TREGOZE (n.)
The opposite of a mavis enderby (q.v.) An unrequited early love of
your life who still causes terrible pangs though she inexplicably
married a telephone engineer.
--- Douglas Adams, The Meaning of Liff

Loading...