You will need a few things in order to use this software:
If you are not a local user, you will first need to download the latest version. You can get it from http://ads.harvard.edu/pubs/bibtex/astronat/ and unpack it using a command like
gunzip -c astronat.tar.gz | tar xvf -
The installation is a simple matter. You will need the natbib
style file (
natbib209.sty is the LaTeX 2.09 version);
the ones included here have not been edited from their original
forms. You will also need
one of the
bst files from the sub-directory with the
appropriate journal name (
apj for AAS,
mnras for Monthly
Notices). These sub-directories also contain
which define journal abbreviations for use in your
which contains all your references. There are only two steps:
bibfiles where LaTeX/BibTeX can see them.
nat2jour.plsomwhere in your
PATH, and make sure it is executable (
chmod +x nat2jour.pl).
There are two options for the first step:
TEXINPUTStells LaTeX where to find
BSTINPUTStells BibTeX where to find
bst(bibliography style) files.
BIBINPUTStells BibTeX where to look for
bib(bibliography database) files.
Local users at Berkeley should set their environment variables
to include the directory
and do not need to copy any files, except that you will want to put
then Perl script
nat2jour.pl in your
Suppose you have all the files in sub-directories of
/somewhere/tex/inputs/. Then the environment variables
can be set as follows. For C-shell (put these in your
setenv TEXINPUTS .:/somewhere/tex/inputs//:$TEXINPUTS
and for sh, ksh, or bash (put in
and similarly for the other two variables. The trailing // means recurse through any sub-directories. Note that the directories in the colon-separated list are searched in order, so you'll want to have the path to these files ahead of any directories that have any files of the same name (otherwise the wrong ones will be used).
If you can become root you can install the files in a standard
TEXINPUTS points. Even if you are able to
do this, you may still need to explicitly set the
other two variables. According to the BibTeX documentation it looks
TEXINPUTS by default, but in practice it doesn't actually
seem to do this.
Go to the first, previous, next, last section, table of contents.