Article View: aus.computers.tex
Article #298Re: natbib
From: Stephen Harker
Date: Sun, 22 Jun 1997 00:00
Date: Sun, 22 Jun 1997 00:00
75 lines
3676 bytes
3676 bytes
In article <tpradvuxdq.fsf@yarra.vut.edu.au> dunne@yarra.vut.edu.au (Robert Dunne) writes:
> I have a couple of questions about the natbib package.
> See the .tex and .bib files below.
I have not used natbib, but will have a go at the questions I do know
the answer to. I did look at the documentation for natbib.
> 1) Hampshire.and.Perlmutter.1990 comes out as
> Hampshire II, J. B. and Perlmutter, B. A.
> is the references, which is good, but how do I stop it coming out as
> Hampshire II and Perlmutter (1990) in the text.
> ^^^^
> this looks very silly, and can't be correct!
This one definitely follows from a problem with the way you have
entered the authors in the .bib file. You should check the
information about defining names, possibly the newer version of
Lamport's manual has more information than the older version. I got
the information from a document called `BibTeXing' by Oren Patashnik
(I don't remember the file name, but it is available on a CTAN archive
or mirror such as ctan.unsw.edu.au).
Your entry starts as follows:
@inproceedings{Hampshire.and.Perlmutter.1990,
author="Hampshire II, J. B. and
Perlmutter, B. A.",
BibTeX takes Author names as composed of four parts: First, von, Last
and Jr. You can enter these in various ways, but often can confuse
BibTeX. The way you have this entered tells BibTeX that the first
author's name has a `last' part composed of Hampshire II. This is not
what you want, I would guess that you want II to be a `Jr' part. One
way to do this is to enter the author names as follows:
author="Hampshire, II, J. B. and
Perlmutter, B. A.",
You are supposed to be able to enter names in three possible forms:
First von Last
von Last, First
von Last, Jr, First
Personally I usually find I have similar problems and often have to
take a couple of tries! Another thing that BibTeX has problems with
is titles, for example Admiral, luckily it does not affect anything I
have had to do.
> 2) is there an easier way to get
> Bishop (1995, chapter 6.8)
> than
> \citeauthor{Bishop.1995} (\citeyear{Bishop.1995}, chapter 6.8)
As far as I can see this is a function of the way the optional
arguments are used for natbib. I can't see a way around it. If you
need the above format the simplest thing I can suggest is that you
define a TeX macro. You could try emailing the author of the package.
> 3) why doesn't \citeauthor{Bishop.1995} (\citeyear{Bishop.1995},
> chapter 6.8) work unless
> there is a \cite{Bishop.1995} also in the document. I currently
> put \cite{Bishop.1995} it,
> get things working, and then remove it.
I don't have any answer for this, but one thing you can do is to put a
nocite{Bishop.1995} near the first citation. That will guarantee it
appears in the bibliography.
--
Stephen Harker s-harker@adfa.edu.au
School of Physics Baloney Baffles brains: Eric Frank Russell
University College
UNSW, ADFA
Technical Details
Message-ID:
<SJH.97Jun22143700@phadfa.ph.adfa.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<tpradvuxdq.fsf@yarra.vut.edu.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b0c4,709baf8983dc231a,start X-Google-Attributes: gid10b0c4,public From: sjh@phadfa.ph.adfa.edu.au (Stephen Harker) Subject: Re: natbib Date: 1997/06/22 Message-ID: <SJH.97Jun22143700@phadfa.ph.adfa.edu.au> X-Deja-AN: 251717467 References: <tpradvuxdq.fsf@yarra.vut.edu.au> Organization: School of Physics, ADFA, UNSW, Canberra, Australia Newsgroups: aus.computers.tex