On 11/06/99, Damon Muller scribbled about "Adding a style to TeX":
> However, I'm at a loss as to how to do this with my slink tetex. I make
> a couple of directories in /usr/local/lib/texmf and put in the required
> files (apacite.bst and apacite.sty). The tetex doc said to run `texhash'
> to update the ls-R file, which I did (as root).

The file /etc/texmf/texmf.cnf must contain a line describing where to
find your "local" TeX directory tree.  I have a line like this:
TEXMFLOCAL = /usr/local/lib/texmf

You can also have local ones that are on a per-user basis, though when
root runs texhash, I don't think it gets each user's directory -- only
when that user runs texhash.  The relevant line in my
/etc/texmf/texmf.cnf:
HOMETEXMF = $HOME/texmf

With that, I'm able to put local additions under /usr/local/lib/texmf
or $HOME/texmf.  Usually I use the former, unless I'm trying something
that I consider very experimental.

> While I'm at it, is there any way to view a compressed dvi file without
> having to decompress it? I have not had any luck with gunzip blah.dvi.gz
> | xdvi (it just pops up xdvi's open dialog box). I presume there is some
> way to do it, but I can't for the life of me work it out.

I ended up writing a little shell script to do it.  I put it in my
user's $HOME/bin directory, which is in the user's path, but you could
also use /usr/local/bin.  I call it zxdvi.  Here it is:

#/bin/sh
TMPFILE="/tmp/xzdvi.$$"
gunzip -c $1 > $TMPFILE
xdvi $TMPFILE
rm $TMPFILE


Happy TeXing!

Jesse

-- 
Jesse Jacobsen, Pastor          [EMAIL PROTECTED]
Grace Lutheran Church (ELS)     http://www.jvlnet.com/~jjacobsen/
Madison, Wisconsin              GnuPG public key ID: 2E3EBF13

Attachment: pgp1efIBWzh0A.pgp
Description: PGP signature

Reply via email to