BibTeX, biblatex and biberWrong citation order with natibib and chicago style

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
bethes
Posts: 8
Joined: Mon Jan 11, 2010 7:33 pm

Wrong citation order with natibib and chicago style

Post by bethes »

Hello,

I am having a similar (I think) issue with bibliography numbers not appearing in the right order, though it has to do with the key assignment for URL references (no author).

The package being used is natlib, and it is using the bibliography style "chicago.bst". A colleague on a Windows platform has the bibliography appearing normally for him. For me, I have URL 10 and 11 appearing after URL 1 instead of URL 2 following URL 1. I had to download the chicago.bst file since I did not have it on my Red Hat TeTeX distribution. In the real version, author references appear after the URL references. They are listed based on the chicago style.

Here is my code:

Code: Select all

Code, edit and compile here:
\documentclass{book}
\usepackage{amsmath}
\usepackage{natbib}
\usepackage{graphicx}
\usepackage{wasysym} % For \aries symbol mostly
\usepackage[figuresright]{rotating} % For extra wide tables
\bibliographystyle{chicago}
\textwidth=5.5in
\textheight=8.50truein
\setcounter{secnumdepth}{3}
% Measurements of Arc signs
\newcommand{\arcdeg}{\mbox{$^{\circ}$}}
\newcommand{\arcmin}{\mbox{$^{\prime}$}}
\newcommand{\arcsec}{\mbox{$^{\prime\prime}$}}
\newcommand{\fdg}{\mbox{$.\!\!^\circ$}}
\newcommand{\farcm}{\mbox{$.\!^{\prime}$}}
\newcommand{\farcs}{\mbox{$.\!\!^{\prime\prime}$}}
% Measurement of time signs
\newcommand{\dy}{\mbox{$^{\mathrm d}$}}
\newcommand{\h}{\mbox{$^{\mathrm h}$}}
\newcommand{\m}{\mbox{$^{\mathrm m}$}}
\newcommand{\s}{\mbox{$^{\mathrm s}$}}
\newcommand{\fd}{\mbox{$.\!\!^{\mathrm d}$}}
\newcommand{\fh}{\mbox{$.\!\!^{\mathrm h}$}}
\newcommand{\fm}{\mbox{$.\!\!^{\mathrm m}$}}
\newcommand{\fs}{\mbox{$.\!\!^{\mathrm s}$}}
% Other useful symbols (only when in math mode already)
% Table commands
\setlength{\doublerulesep}{0.5pt}
\setlength{\abovecaptionskip}{6pt} % 0.5cm as an example
\setlength{\belowcaptionskip}{6pt} % 0.5cm as an example
% Website bibliographic aliases
\begin{document}
%\tableofcontents
%\listoffigures
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Bibliography file:

Code: Select all

@misc{bib:URL_ggm,
note = "GGM Series Gravitational Model: \\
{\tt http://www.csr.utexas.edu/grace/gravity/}",
key = "1"
}
@misc{bib:URL_eigen,
note = "EIGEN Series Gravitational Model: \\
{\tt http://www.gfz-potsdam.de/portal/} \\
follow Structure $>$ Departments $>$ Department 1 $>$ Earth Observing Satellites $>$ Projects $>$ GRACE $>$ Science Results $>$ Gravity Results",
key = "2"
}
@misc{bib:URL_champ,
note = "The CHAMP Mission: \\
{\tt http://op.gfz-potsdam.de/champ/ }",
key = "3"
}
@misc{bib:URL_grace,
note = "The Grace Mission: \\
{\tt http://www.csr.utexas.edu/grace/}",
key = "4"
}
@misc{bib:URL_egm2008,
note = "The EGM2008 Gravity Model: \\
{\tt http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm2008/index.html}",
key = "5"
}
@misc{bib:URL_grace03,
note = "ITG-Grace03 Gravity Field Model: \\
{\tt http://www.geod.uni-bonn.de/itg-grace03.html}",
key = "6"
}
@misc{bib:URL_dehant,
note = "DEHANTTIDEINEL Software: \\
{\tt ftp://tai.bipm.org/iers/convupdt/chapter7/dehanttideinel.f}",
key = "7"
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Here is the output pdf file I created. The numbering should be 1-11. Instead, it gives 1, 10, 11, 2-9.

Thanks for looking!
Attachments
mwe.pdf
(44.42 KiB) Downloaded 313 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Wrong citation order with natibib and chicago style

Post by kaiserkarl13 »

The reason this looks different than expected is the "key" fields you have. The purpose of the "key" field is to provide a replacement for the "author" field, which is used by chicago.bst for ordering. Note that chicago.bst is an author-year style, not a numerical style, so it alphabetizes as if "1" and "11" are characters (i.e., in "alphabetical" [ASCII] order, not numerical order). If you delete the "key" fields, it will alphabetize according to the title instead.
bethes
Posts: 8
Joined: Mon Jan 11, 2010 7:33 pm

Re: Wrong citation order with natibib and chicago style

Post by bethes »

Thanks for the explanation of what is happening. I think the order of the URLs is supposed to be in the order 1-xx. I'll talk to my colleague and see how he wants the bibliography to appear. What is odd is that for him the order was treated numerically! I don't know how he was able to produce the desired result. In the text, the URL references are hard coded (not the way I would do it, but maybe dynamic referencing will come later) so removing the keys might not help.
bethes
Posts: 8
Joined: Mon Jan 11, 2010 7:33 pm

Re: Wrong citation order with natibib and chicago style

Post by bethes »

Anyone have another solution besides removing keys? In the text, URL references are hard coded. URL[1] is the bibliography item with key = "1" and so on. I was going to suggest key = "a" and so on, but I welcome suggestions.
Post Reply