tex >> BibTex query: sorting of references in authoryear style with "natbib" package

by arthanawalla » Mon, 10 Nov 2003 00:10:03 GMT

Hi,

I'm using BibTex to generate a bibliography. Let's call the
bibliography mybib. I use the "natbib" package and want the references
displayed in "authoryear" style.

When I run Latex and BibTex and then Latex again (twice) on my .tex
source file (let's call it Main.tex), I get this problem:

All the books get listed first by year of publication,
All the articles and miscellaneous other entries get listed afterwards
(by year).

To clarify: the sorting order for the books seems to be the year of
publication (not author's name). Also all the books get listed
separately from the other entries.

But I want the usual authoryear style. I was under the impression that
the "natbib" package does this automatically.

I've racked my brained and still can't figure out why the sorting is
getting messed up like this. Can someone help me "sort it out"?
Thanks,

Other facts which may or may not be relevant:

i) I use the \nocite{*} command to cite all my references.

ii) The following appears at an appropriate place in my Main.tex file
\bibliography{mybib}
\bibliographystyle{plainnat}

iii) I use no cross-references (in my bibliography database)

iv) I use the Emacs editor and have sorted out my bibliography entries
so the database itself (i.e. mybib.bib) is already in desired
alphabetical order by author name (be it book or article).


tex >> BibTex query: sorting of references in authoryear style with "natbib" package

by arthanawalla » Mon, 10 Nov 2003 19:52:56 GMT

> All the books get listed first by year of publication,

Just to make things clearer here's the output from the .bbl file:

*************************************************************
\bibitem[Ros(1995)]{Ros95}
{\em Stochastic Processes}.
\newblock John Wiley and Sons: New York, 1995.

\bibitem[Ber(1996)]{Ber96}
{\em Levy Processes}.
\newblock Cambridge University Press, Cambridge, 1996.

\bibitem[Barraquand and Martineau(1995)]{BM95}
J.~Barraquand and D.~Martineau.
\newblock {Numerical Valuation of High-Dimensional Multivariate
American
Securities}.
\newblock {\em Journal of Financial and Quantative Analysis}, 1995.

\bibitem[Bhar and Chiarella(1997)]{BR97}
R~Bhar and C~Chiarella.
\newblock {Transformation of HJM Models to Markovian Systems}.
\newblock {\em European Journal of Finance}, 1997.


**************************************************************

Note that the first two entries are books. The sorting for these is by
year and the author's name doesn't even appear in the \bibitem when I
use bibliographystyle "plainnat" ! For articles things work fine. The
sorting there is by authorname, as required.

Anybody out there who can help, please?

Thanks in advance,
Aakruti


tex >> BibTex query: sorting of references in authoryear style with "natbib" package

by arthanawalla » Wed, 26 Nov 2003 21:31:35 GMT

Hi,

I'm using BibTex to generate a bibliography. Let's call the
bibliography mybib.bib . I use the "natbib" package and want the
references
displayed in "authoryear" style. I get this problem:

All the books get listed at the start, by year of publication,
All the articles and miscellaneous other entries get listed afterwards
(by year).

The sorting order for the books seems to be the year of
publication (not author's name). Also all the books get listed
separately from the other entries. Here's some sample output generated
in the
.bbl file :

*************************************************************************
begin{thebibliography}{10}
\expandafter\ifx\csname natexlab\endcsname\relax\def\natexlab#1{#1}\fi
\expandafter\ifx\csname url\endcsname\relax
\def\url#1{{\tt #1}}\fi

\bibitem[Jar(1996)]{Jar96}
{\em Over The Rainbow: Developments in Exotic Options \& Complex
Swaps}.
\newblock Risk Books, 1996.

\bibitem[EAM(1997)]{EAM97}
{\em Hidden Marbov Models : Estimates and Control}.
\newblock Springer--Verlag: London, 1997.

...

\bibitem[Amin et~al.(1999)Amin, Ng, and Pierong]{ANP99}
K.~Amin, V.~Ng, and C.~Pierong.
\newblock {Arbitrage Free Valuation of Energy Derivatives}.
\newblock In 2nd, editor, {\em Managing Energy Price Risk}. Risk
Books: London,
1999.

\bibitem[Deng et~al.(2001)Deng, Johnson, and Sogomonian]{DJS01}
Shi-Jie Deng, B.~Johnson, and A.~Sogomonian.
\newblock {Exotic Electricity Options and the Valuation of Electricity
Generation and Transmission Assets}.
\newblock {\em Decision Support Systems}, 2001.

***********************************************************************

where the first two are books and last two are articles (or the
"InCollection" entry-type).

I want the usual authoryear style. I was under the impression that
the "natbib" package does this automatically.

I've racked my brained and still can't figure out why the sorting is
getting messed up like this. Can someone help me "sort it out"?


Rutang
************************************************************
Here's an extract of the relevant bits from the tex file:

\documentclass[12pt]{article}
\usepackage[sort]{natbib}
\bibliographystyle{plainnat}
\bibpunct{ ( }{ ) }{;}{a}{,}{,}
\bibliography{mybib}
\nocite{*}

*************************************************************


tex >> BibTex query: sorting of references in authoryear style with "natbib" package

by Ralf Stubner » Tue, 02 Dec 2003 19:06:03 GMT

XXXX@XXXXX.COM (Aakruti) writes:

[...]

You have posted this problem for several times now without anybody being
able to guess your problem based on your description. I can only repeat
my last suggestion: Provide a minimal example (both tex and bib file)
which produce the error when run through latex and bibtex. I don't know
how to help you without this.

cheerio
ralf


Similar Threads

1. BiBTeX style for references sorted by year and type of publication (including header)

2. sort authoryear style index authorlast name ascending and year descending

3. bibtex/natbib/revtex: several references under one reference number

Hello, everyone!

I encountered the following problem with bibtex: I want to put several
references quoted together on the same line (under the same #) in the
reference list, as the are always quoted together in the document, and the
journal allows this. More specifically I am using revtex' apsrev.bst style
that in turn uses natbib.sty package. I would expect there was an option in
natbib/apsrev.bst/revtex4.cls but don't seem to be able to find it.

Does anyone have an idea how to do it intelligently, or am I destined to
hack my .bbl file by hand?

Thanks a lot -- any input is greatly appreciated!
victor


4. [SOLVED] references in ieeetr style, but sorted by authors name

5. references in ieeetr style, but sorted by authors name

Hello,

I am using ieeetr style in my latex document. Does this style have an
option of sorting the list of references based on authors' last name? I
did some search on google and couldn't find anything. For now, I am just
using plain style to get the list sorted by authors name but eventually
I would want to use ieeetr style.

Thanks.

6. Biblatex: sortcites=true, style=alphabetic but the references to the literature are not sorted

7. sortcites=true, style=alphabetic but the references to the literature are not sorted

Hi,

I wonder if it is possible to make biblatex sort the elements that are
referring to the authors. I tried every example I found and it does
not work for me. Then I installed TexLive 2009 an hour ago and it
still doesnt work. So does it work at all?

I invoke biblatex with the following settings:

\usepackage[%
sorting=anyt,%
sortcites=true,%
firstinits=true,%
uniquename=init,%
bibencoding=inputenc,%
sortlos=bib,%
style=alphabetic,%
bibstyle=alphabetic,%
citestyle=alphabetic,%
minnames=3,%
maxnames=3,%
date=long,%
abbreviate=false,%
useprefix=true,%
autopunct=true,%
%indexing=true,%bib/cite
backref=true,%
hyperref=auto%
]{biblatex}

Whatever I try I get  [Tau00; FDC03; HP04; LP05; MDS+03; Sim94; YZX
+04; CDR00] in the pdf. I would like to have it sorted as [CDR00;
FDC03; HP04; LP05; MDS+03; Sim94; Tau00; YZX+04].
Again: Is this possible to let biblatex do the work?

Cheers,
Dave

8. spanish bibtex style for natbib?