[tex-live] include directory and aux directory

Zdenek Wagner zdenek.wagner at gmail.com
Mon Mar 16 14:49:49 CET 2009


2009/3/16 Peter Meier <peter.meier998 at gmail.com>:
> 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


> 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


More information about the tex-live mailing list