[pdftex] Re: Using Hyperref and Harvard and Natbib, nharvard problem with windows

Ross Moore ross at ics.mq.edu.au
Tue Nov 18 22:06:57 CET 2003


Hi Patrick, Sebastian and others.

On Tue, 18 Nov 2003 daly at linmpi.mpg.de wrote:

> >
> > > I have a problem now with natbib, I am using windows and the nharvard option
> > > <\usepackage[nharvard]{natbib}> for natbib is not found. When I do a search
> > > on my pc I only find nharvard.perl, and no nharvard.sty.
> >
> > sorry, I have never heard of the "nharvard" option for natbib. you might
> > want to talk to the natbib author.
> > --
> > Sebastian Rahtz      Information Manager
> > Oxford University Computing Services
> > 13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
>
> As the author of natbib, I too have never heard of this option, nor of
> "harvard" option either. If you want to use harvard style bst files with
> natbib, you simply use them. Natbib understands them automatically, no option
> is needed to activate them.

There is no  nharvard.sty .
The file  nharvard.perl  comes with LaTeX2HTML and is used to load the
code from natbib.perl, with a setting to emulate Harvard-style.
Indeed, the files  harvard.perl and nharvard.perl are identical:

landau.ics.mq.edu.au> more styles/harvard.perl
# nharvard.perl - calls natbib.perl to emulate harvard

package main;

# Setting $HARVARD makes natbib.perl behave differently
$HARVARD=1;

foreach $dir (split(/:/,$LATEX2HTMLSTYLES)) {
    if (-f "$dir/natbib.perl") {
        print "Loading $dir/natbib.perl\n";
        require "$dir/natbib.perl";
        $styles_loaded{"natbib"}=1;
        last
        }
}

1; # This must be the last line


It was done this way since the coding in  natbib.perl
allows for very general styles of output. All of the
LaTeX commands defined in harvard.sty have corresponding
subroutines implemented in terms of subroutines
defined in natbib.perl .  There was no need to have
similar internal coding in two places, which would only
complicate debugging if/when any errors are found.


To the user, the implementation is transparent,
as a LaTeX document should still just call for:

 \usepackage{harvard}


However, due to the method of implementation,
the same result *can* be obtained by using

   \usepackage{nharvard}   (in LaTeX2HTML only)

or with

   \usepackage{natbib}

when also the Perl variable  $HARVARD is set to be non-zero
within some initialisation file.


I hope this clears up the confusion.

Cheers

	Ross Moore


>
> Patrick Daly
>
>
> _______________________________________________
> pdftex mailing list
> pdftex at tug.org
> http://tug.org/mailman/listinfo/pdftex
>


More information about the pdftex mailing list