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

\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
%\listoftables

\section{Introduction}
\label{sec:5.1}
This is a very bare working example of a chapter I am editing.
The bibliography prints all references; no citations are used in the text.


\subsubsection{Laser-Ring Gyroscopes}
\label{sec:5.4.6.1}

A laser light beam
split and sent in opposite directions around a given path on the
Earth's surface can be made to interfere with itself
upon meeting again, producing a beat pattern.

%
%  BEGIN BIBLIOGRAPHY HERE
%

\bibliography{c05_biblio_short}
\nocite{*}


%
%  BEGIN TABLES HERE
%

%
% BEGIN FIGURES HERE
%

\end{document}
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"
}

@misc{bib:URL_oceantide,
   note = "Ocean tide harmonic selection: \\
           {\tt ftp.csr.utexas.edu/pub/tide}",
   key  = "8"
}

@misc{bib:URL_arg.f,
   note = "ARG.f Software: \\
           {\tt ftp://tai.bipm.org/iers/convupdt/chapter7}",
   key  = "9"
}

@misc{bib:URL_tideservice.f,
   note = "Ocean Tide Loading Service: \\
           {\tt http://www.oso.chalmers.se/$\sim$loading}",
   key  = "10"
}

@misc{bib:URL_poletidemap,
   note = "Ocean Pole Load Tide Coefficients Map: \\
           {\tt ftp://tai.bipm.org/iers/convupdt/chapter7/opoleloadcoefcmcor.txt.gz}",
   key  = "11"
}
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 310 times

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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